/* ── GALERIE PAGE ── */
.galerie-body { background: #0d1a0e; }

/* HERO */
.gal-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gal-hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1.4s ease;
}
.gal-hero__video--a { z-index: 1; opacity: 1; }
.gal-hero__video--b { z-index: 1; opacity: 0; }
.gal-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(13,26,14,.55) 0%,
    rgba(13,26,14,.3) 50%,
    rgba(13,26,14,.85) 100%
  );
}
.gal-hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.gal-hero__eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: .75rem;
}
.gal-hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: .75rem;
}
.gal-hero__sub {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.gal-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
  transition: color .3s;
}
.gal-hero__scroll:hover { color: var(--gold-lt); }
.gal-hero__scroll svg { width: 28px; height: 28px; }

/* MAIN */
.gal-main {
  background: #0d1a0e;
  padding-bottom: 6rem;
}

/* FILTERS */
.gal-filters {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: 3rem 1rem 2.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(13,26,14,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* VIDEO GRID */
.video-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 6px 0;
}
.video-grid__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold-lt);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-left: 6px;
}
.video-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .video-grid__items { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 550px) { .video-grid__items { grid-template-columns: 1fr; } }

/* VIDEO CARD */
.video-card {
  cursor: pointer;
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.video-card__thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.video-card:hover .video-card__thumb video { transform: scale(1.04); }
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.video-card:hover .video-card__overlay { background: rgba(0,0,0,.18); }
.video-card__play {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(184,150,62,.85);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.video-card:hover .video-card__play {
  background: var(--gold);
  transform: scale(1.1);
}
.video-card__play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.video-card__tag {
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(13,26,14,.85);
  color: rgba(255,255,255,.8);
  padding: .2rem .55rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.12);
}
.video-card__label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  margin-top: .6rem;
  padding-left: 2px;
  text-transform: uppercase;
}

/* VIDEO LIGHTBOX */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
}
.video-lightbox.active { display: flex; }
.video-lightbox__close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .2s;
  z-index: 1;
}
.video-lightbox__close:hover { color: #fff; }
.video-lightbox__wrap {
  width: min(960px, 94vw);
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.video-lightbox__player {
  width: 100%; height: 100%;
  background: #000;
}

/* hidden filter state */
.masonry__item.hidden,
.video-card.hidden { display: none; }
.video-grid.hidden { display: none; }
#masonryGrid:empty,
#masonryGrid:has(.masonry__item.hidden:only-child) { display: none; }
.masonry:has(> .masonry__item.hidden) { padding-top: 0; }
