/* ── GALLERY PAGE ──────────────────────────────────────── */

.nav-active { color: var(--gold) !important; }

/* ── HERO ───────────────────────────────────────────────── */
.gallery-hero {
  min-height: 38vh;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gallery-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(192,57,43,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184,150,62,0.10) 0%, transparent 60%);
}

.gallery-hero-inner { position: relative; z-index: 2; }

.gallery-hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #f0ece3;
  line-height: 1.1;
  margin: .6rem 0 1rem;
}

.gallery-hero-title em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
}

.gallery-hero-sub {
  font-size: 1.1rem;
  font-style: italic;
  color: #9e9487;
}

/* ── TABS SECTION ───────────────────────────────────────── */
.gallery-tabs-section {
  background: var(--light-paper);
  min-height: 60vh;
  padding-bottom: 6rem;
}

/* ── TAB BAR ────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  justify-content: center;
  border-bottom: 2px solid rgba(14,12,10,.1);
  padding: 0 5rem;
  background: #fff;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 1.3rem 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn--active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab-btn svg { transition: stroke .25s; }
.tab-btn--active svg { stroke: var(--red); }

/* ── TAB PANELS ─────────────────────────────────────────── */
.tab-panel {
  display: none;
  padding: 3.5rem 5rem 0;
}

.tab-panel--active { display: block; }

/* ── PHOTO GRID ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d4cec6;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s, opacity .3s;
  opacity: .9;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,12,10,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.gallery-overlay span {
  font-family: 'Cormorant Garamond', serif;
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-overlay { background: rgba(14,12,10,0.35); }
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* ── EMPTY STATE ────────────────────────────────────────── */
.gallery-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--muted);
}

.gallery-empty-icon {
  width: 56px;
  height: 56px;
  opacity: .3;
  margin-bottom: 1.5rem;
}

.gallery-empty-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .6rem;
}

.gallery-empty-sub {
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}

/* ── VIDEO GRID ─────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.gallery-video,
.gallery-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--ink);
  border: none;
}

.video-caption {
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5,4,3,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox--open { display: flex; }

.lightbox-inner {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: #f0ece3;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
  z-index: 1000;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #f0ece3;
  font-size: 1.5rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 1000;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.18); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .tab-bar { padding: 0 1.5rem; }
  .tab-btn { padding: 1rem 1.2rem; font-size: .95rem; }
  .tab-panel { padding: 2.5rem 1.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}