/* Galerie page — onglets sur une ligne + panneau dessous */
.gal-page { padding-top: 1.5rem; }
.gal-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.gal-tabs__btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.gal-tabs__btn:hover {
  border-color: rgba(233, 30, 140, 0.45);
  color: var(--cream);
}
.gal-tabs__btn.is-active {
  border-color: var(--fuchsia);
  color: var(--fuchsia);
  background: rgba(233, 30, 140, 0.08);
}
.gal-panels { min-height: 16rem; }
.gal-panel[hidden] { display: none !important; }
.gal-panel.is-active { display: block; animation: galPanelIn 0.4s var(--ease); }
@keyframes galPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.gal-empty { color: var(--muted); margin: 0; padding: 1rem 0; text-align: center; }

.gal-carousel {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2.9rem auto 2.9rem;
  grid-template-areas:
    "prev stage next"
    "meta meta meta";
  justify-content: center;
  justify-items: center;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.75rem;
}
.gal-carousel__viewport {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  width: min(72vw, 26rem);
  aspect-ratio: 3 / 4;
  max-height: 34rem;
  background: #1a1714;
  border: 1px solid var(--line);
  justify-self: center;
}
.gal-carousel__track { position: absolute; inset: 0; }
.gal-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.gal-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.gal-carousel__slide.is-active { cursor: zoom-in; }
.gal-carousel__slide.is-video,
.gal-band__shot.is-video {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
}
.gal-carousel__slide img,
.gal-carousel__slide video,
.gal-band__shot img,
.gal-band__shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gal-carousel__nav {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.gal-carousel__nav:hover:not(:disabled) {
  border-color: var(--fuchsia);
  color: var(--fuchsia);
  transform: scale(1.05);
}
.gal-carousel__nav:disabled { opacity: 0.28; cursor: default; }
.gal-carousel__nav--prev { grid-area: prev; justify-self: center; }
.gal-carousel__nav--next { grid-area: next; justify-self: center; }
.gal-carousel__count {
  grid-area: meta;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  justify-self: center;
}

.gal-band { overflow: hidden; padding-block: 0.35rem; }
.gal-band__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gal-band__track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  animation: galBandMove 38s linear infinite;
  will-change: transform;
}
.gal-band:hover .gal-band__track { animation-play-state: paused; }
.gal-band__shot {
  flex: 0 0 min(48vw, 13rem);
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1714;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.gal-band__shot:hover { border-color: rgba(233, 30, 140, 0.45); }
.gal-band__shot:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 2px;
}
.gal-band__shot img,
.gal-band__shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s;
}
.gal-band--logos .gal-band__shot {
  flex: 0 0 min(40vw, 9.5rem);
  aspect-ratio: 1;
  background: #1f1b17;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.gal-band--logos .gal-band__shot img,
.gal-band--logos .gal-band__shot video {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: grayscale(0.2) brightness(1.05);
}
.gal-band--interactive .gal-band__shot img,
.gal-band--interactive .gal-band__shot video {
  opacity: 0.28;
  filter: grayscale(0.6) brightness(0.75);
  transform: scale(0.96);
}
.gal-band--interactive .gal-band__shot:hover img,
.gal-band--interactive .gal-band__shot.is-on img,
.gal-band--interactive .gal-band__shot:hover video,
.gal-band--interactive .gal-band__shot.is-on video {
  opacity: 1;
  filter: none;
  transform: scale(1);
}
.gal-band--interactive .gal-band__shot { cursor: zoom-in; }

@keyframes galBandMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .gal-band__track { animation: none !important; }
  .gal-panel.is-active { animation: none; }
}

@media (max-width: 640px) {
  .gal-carousel {
    grid-template-columns: 2.5rem auto 2.5rem;
    column-gap: 0.55rem;
  }
  .gal-carousel__viewport {
    width: min(68vw, 20rem);
    max-height: 28rem;
  }
  .gal-carousel__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}
