/* =============================================
   IRONLUNN — gallery.css
   Gallery page carousel + filmstrip layout
   ============================================= */

/* Scroll-reveal override — sections visible immediately on this page */
.gallery-page section {
  opacity: 1;
  transform: none;
}

/* === GALLERY HERO === */
#gallery-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

#gallery-hero .section-label {
  margin-bottom: 0.5rem;
}

.gallery-hero-sub {
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
}

/* === CAROUSEL SECTION === */
#gallery-carousel {
  padding: 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Counter — top-right of carousel-wrap, positioned relative to it */
.carousel-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
}

.carousel-counter {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

/* Main image + arrows row */
.carousel-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding-top: 1.8rem; /* clear the counter */
}

.carousel-arrow {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  font-family: 'Bebas Neue', cursive;
}
.carousel-arrow:hover { opacity: 0.7; }

.carousel-img-wrap {
  flex: 1;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

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

/* Date + caption below image */
.carousel-meta {
  text-align: center;
}

.carousel-date {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.carousel-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === FILMSTRIP === */
.filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  max-width: 600px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface);
}

.filmstrip::-webkit-scrollbar {
  height: 4px;
}
.filmstrip::-webkit-scrollbar-track {
  background: var(--surface);
}
.filmstrip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.filmstrip-thumb {
  flex: 0 0 64px;
  height: 64px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.filmstrip-thumb:hover {
  opacity: 0.85;
}

.filmstrip-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .carousel-arrow {
    font-size: 1.8rem;
    padding: 0.3rem;
  }

  .filmstrip-thumb {
    flex: 0 0 48px;
    height: 48px;
  }
}
