/* ---------- Pages ---------- */

.page {
  display: none;
  padding-top: 72px;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page.page-active {
  display: block;
  opacity: 1;
}

.hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(12, 5, 0, 0.2), rgba(12, 5, 0, 0.65)),
    url("./assets/gallery-bg-hero.webp");
}

/* Swiper Albums (Carrousel vertical) */

.albums-swiper {
  height: 90vh;
  padding-top: 30px;
  padding-bottom: 60px;
  width: 80vw;
  border: 2px solid rgba(219, 168, 90, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.2);
}

.swiper-slide {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.album-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(246, 229, 176, 0.15);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  height: 100%;
  position: relative;
}

.album-card:hover {
  border-color: rgba(246, 229, 176, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.album-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.album-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.album-info {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.6));
  position: absolute;
  bottom: 25%;
  width: 100%;
}

.album-info h3 {
  font-size: 1.7rem;
  color: #f6e5b0;
  margin: 0 0 0.5rem 0;
}

.album-info p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin: 0;
}

/* Swiper Navigation */

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(246, 229, 176, 0.15);
  border: 1px solid rgba(246, 229, 176, 0.3);
  border-radius: 8px;
  color: #f6e5b0;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(246, 229, 176, 0.25);
  color: #f3e4b9;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

.swiper-pagination-bullet {
  background: rgba(246, 229, 176, 0.3);
  opacity: 0.6;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #f6e5b0;
  opacity: 1;
}

/* ---------- Album Detail Page ---------- */

.album-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  padding-left: 4vw;
  border-bottom: 1px solid rgba(246, 229, 176, 0.1);
}

.btn-back {
  padding: 0.75rem 1.5rem;
  background: rgba(246, 229, 176, 0.1);
  border: 1px solid rgba(246, 229, 176, 0.3);
  color: #f6e5b0;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-back:hover {
  background: rgba(246, 229, 176, 0.2);
  border-color: rgba(246, 229, 176, 0.5);
}

#album-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #f6e5b0;
  margin: 0;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  width: 80vw;
  margin: 0 auto;
}

/* Main Gallery (Grande image) */

.main-gallery-swiper {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(246, 229, 176, 0.15);
}

.main-gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-size: 18px;
}

.main-gallery-swiper img {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  
  display: block;
  object-fit: cover;
}

/* Thumbs Gallery (Grille) */

.thumbs-gallery-swiper {
  width: 100%;
}

.thumbs-gallery-swiper .swiper-slide {
  width: 150px;
  height: 150px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbs-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs-gallery-swiper .swiper-slide.swiper-slide-thumb-active {
  border-color: #f6e5b0;
  box-shadow: 0 0 20px rgba(246, 229, 176, 0.4);
}

.thumbs-gallery-swiper .swiper-slide:hover {
  border-color: #f6e5b0;
  opacity: 0.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-gallery-swiper {
    height: 350px;
  }

  .thumbs-gallery-swiper .swiper-slide {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .album-card {
    max-width: 100%;
  }

  .album-image {
    height: 200px;
  }

  .main-gallery-swiper {
    height: 250px;
  }

  .thumbs-gallery-swiper .swiper-slide {
    width: 100px;
    height: 100px;
  }

  #album-title {
    font-size: 1.3rem;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}
