.hero {
  background: url("../img/gallery/web-banner-light.webp") center bottom no-repeat;
  background-size: cover;
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  text-align: center;
}

body[data-theme="dark"] .hero {
  background: url("../img/gallery/web-banner-dark.webp") center bottom no-repeat;
  background-size: cover;
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  text-align: center;
}

h1 {
  font-size: 50px !important;
  font-weight: bold;
}
#gallerySection .section-title {
  font-size: 50px;
  font-family: "Barlow Condensed", sans-serif;
}

/* mobile optimization */
@media (max-width: 480px) {
  .hero {
    background: url("../img/gallery/mobile-banner-light.webp") center bottom
      no-repeat;
    background-size: cover;
    width: 100%;
    height: 30vh;
  }
  body[data-theme="dark"] .hero {
    background: url("../img/gallery/mobile-banner-dark.webp") center bottom
      no-repeat;
    background-size: cover;
    width: 100%;
    height: 30vh;
  }
  #gallerySection .section-title {
    font-size: 40px !important;
  }
  h1 {
    font-size: 45pt;
  }
}

.gallery-item {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  padding-top: 85.58%;
}

.gallery-item img {
  aspect-ratio: 430 / 368;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-img {
  opacity: 0;
  width: 100%;
  height: auto;
}

.gallery-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 430 / 368;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: 0.3s ease;
  animation: shimmer 1.5s infinite;
}

.gallery-skeleton.hidden {
  display: none;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .gallery-skeleton {
    width: 100%;
    height: 100%;
  }
}

/* Navigation Button Styles */
.page-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  padding: 0;
  transition: opacity 0.3s;
}

.page-btn:hover {
  opacity: 0.7;
}

.btn-row {
  margin-top: 5%;
}

.page-info {
  color: #70459b !important; /* default for light theme */
}

body[data-theme="dark"] .page-info {
  color: #ffffff !important;
}


/* Lightbox Styles */
#lightboxContent {
  background-color: rgba(0, 0, 0, 0.9) !important;
}
.lightbox-btn {
  background-color: #202b3e;
  color: #ffffff;
  width: 48px;
  height: 48px;
}
.lightbox-btn:hover {
  opacity: 0.5;
}
#lightboxPrevBtn {
  left: -150px;
}
#lightboxNextBtn {
  right: -150px;
}
.lightbox-img {
  max-height: 70vh;
  max-width: 90vw;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-img.visible {
  opacity: 1;
}
.lightbox-img.landscape {
  aspect-ratio: 779 / 623;
}
.lightbox-img.portrait {
  aspect-ratio: 623 / 779;
}

.lightbox-close-btn {
  top: -50px;
  right: -100px;
  z-index: 2000;
}

.lightbox-skeleton {
  width: 25vw;
  max-width: 90vw;
  max-height: 70vh;
  aspect-ratio: 623/779;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: 0.3s ease;
  animation: shimmer 1.5s infinite;
}

.lightbox-skeleton.hidden {
  display: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* mobile view optimization */
@media (max-width: 480px) {
  .lightbox-skeleton {
    width: 60vw;
    max-width: 60vw;
    max-height: 90vh;
  }
  .lightbox-img {
    width: 70vw;
  }
  .lightbox-close-btn {
    right: -50px;
  }
  #lightboxPrevBtn {
    left: -50px;
    height: 40px;
    width: 40px;
    margin-left: 5px;
  }
  #lightboxNextBtn {
    right: -50px;
    height: 40px;
    width: 40px;
    margin-right: 5px;
  }
  .page-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .btn-row {
    margin-top: 3%;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .lightbox-skeleton {
    width: 60vw;
    max-width: 60vw;
    max-height: 90vh;
  }
  .lightbox-img {
    max-width: 70vw;
    height: 100%;
  }
  .lightbox-close-btn {
    right: -50px;
  }
  #lightboxPrevBtn {
    left: -80px;
    height: 50px;
    width: 50px;
    margin-left: 10px;
  }
  #lightboxNextBtn {
    right: -80px;
    height: 50px;
    width: 50px;
    margin-right: 10px;
  }
}

.gallery-hero-heading {
  font-size: 70px !important;
}