
:root{ --main-color: #393939;

  /* text colors */
  --text-dark-gray: hsl(0, 0%, 25%);
  --text-x-dark-gray: hsl(0, 0%, 10%);
  --text-black: hsl(0, 0%, 0%);

  /* bg colors */
  --bg-light-yellow: #FFFFFF;
  --bg-x-light-yellow: #f6ab06;

  /* border colors */
  --border-dark: hsla(0, 0%, 0%, 0.1);
  --border-x-dark: hsla(0, 0%, 0%, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-light-yellow);
}


section ul {
  display: flex;
  margin-bottom: 1vw;
  justify-content: center;

}

section ul li {
  list-style: none;
  background-color: var(--main-color);
  padding: 3vw 3vw;
  margin: 1vw;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 15px;
  font-size: small;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
  color: var(--bg-light-yellow);
}

@media (min-width : 600px){
  section ul li {
    font-size: large;
  }
}

section ul li.active {
  background: var(--bg-x-light-yellow);
  color: var(--text-black);
}

.grid-gallery {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.grid-item {
  position: relative;
  background-color: var(--bg-x-light-yellow);
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 10px;
}

.grid-gallery .grid-item:hover img {
  transform: scale(1.1);
}

.grid-gallery .grid-item a {
  cursor: zoom-in;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  grid-column: span 2;
  grid-row: span 2;
}

.float-arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: none;
}

.float-arrow.arrow-show {
  display: inline-flex;
}

.float-arrow a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: goldenrod;
  padding: .8rem;
  text-decoration: none;
  border-radius: 50%;
}

.float-arrow i {
  font-size: 1.2rem;
  color: #000;
  text-align: center;
}


/* Write the media query */
@media (max-width: 996px) {
  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 280px;
  }
}

@media (max-width: 640px) {
  .grid-item:nth-child(1n) {
    grid-row: unset;
    grid-column: unset;
  }
}

/* Your existing CSS styles */
/* ... */

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  text-align: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

.download-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 40px;
  background-color: #3def40;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {

}

@media (max-width : 600px) {
  .download-btn {
    bottom: 60px;
  }
}
@media (max-width: 480px) {
  .download-btn {
    bottom: 100px;
  }
}
@media (max-width: 360px) {
  .download-btn {
    bottom: 155px;
  }
}





