/* ============================================================
   gallery.css — Maná 1979
   ============================================================ */

/* === GALERÍA MODERNIZADA === */
.gallery-section {
  padding: 4rem 2rem;
  background: #0a0a0a;
  text-align: center;
}

.carousel-container {
  max-width: 1240px;
  margin: 0 auto 6rem auto;
  text-align: center;
  display: block; /* Ensure title stays on top */
}

.carousel-title {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 2.22rem;
  margin-top: 0;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  letter-spacing: 1px;
  width: 100%;
}

.carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.photo-carousel, .video-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.photo-carousel::-webkit-scrollbar, .video-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-item {
  flex: 0 0 auto;
  width: 270px;
  aspect-ratio: 9 / 16;
  border-radius: 15px;
  scroll-snap-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  background: #111;
}

.carousel-item:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.carousel-item img, .carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carousel-item:hover .video-overlay {
  opacity: 1;
  background: rgba(0,0,0,0.1);
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 201, 122, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(232, 201, 122, 0.4);
}

/* Glass Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--gold-light);
  color: #000;
  box-shadow: 0 0 15px rgba(232, 201, 122, 0.5);
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

/* Lightbox */
.glb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glb.open { display: flex; }

.glb-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.glb-media {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.glb-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .carousel-item { width: 65vw; max-width: 320px; aspect-ratio: 9 / 16; height: auto; }
  .carousel-wrapper { padding: 0 45px; }
  .glb-close { top: -40px; right: 0; }
  .carousel-title { font-size: 1.6rem; margin-bottom: 1.5rem; gap: 10px; }
}

@media (max-width: 480px) {
  .carousel-item { width: 90vw; max-width: none; aspect-ratio: 9 / 16; height: auto; }
  .carousel-wrapper { padding: 0 10px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 1.1rem; }
  .carousel-btn--prev { left: -8px; }
  .carousel-btn--next { right: -8px; }
  .carousel-title { font-size: 1.5rem; }
}

/* ── Sub-etiqueta pequeña encima del título ── */
.gallery-section-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light, #E8C97A);
  margin-bottom: 0.5rem;
}

/* ── Título principal de la sección galería ── */
.gallery-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-light, #E8C97A);
  margin-bottom: 3rem;
}
