/* ═══════════════════════════════════════
   GALLERY PAGE HEADER (text-only, no image)
═══════════════════════════════════════ */
.gallery-page-header {
  background: var(--white);
  padding: 11rem 5vw 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 2rem;
  margin-bottom: -1px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.filter-btn:hover { color: var(--olive); }
.filter-btn.active {
  color: var(--olive-deep);
  border-bottom-color: var(--gold);
}

/* ═══════════════════════════════════════
   FULL GALLERY GRID
═══════════════════════════════════════ */
.gallery-page-section {
  padding: 4rem 5vw 9rem;
  background: var(--cream);
}
.gallery-page-grid {
  max-width: 1280px;
  margin: 0 auto;
  columns: 3;
  column-gap: 0.75rem;
}
.gallery-page-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
/* Override shared img rule — let natural height show in masonry */
.gallery-page-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.gallery-page-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22,25,15,0);
  transition: background 0.4s ease;
}
.gallery-page-item:hover::after { background: rgba(22,25,15,0.15); }
.gallery-page-item:hover img { transform: scale(1.04); }
.gallery-page-item.hidden { display: none; }

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(22,25,15,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2.5rem;
  background: none;
  border: none;
  color: rgba(244,239,227,0.6);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lightbox-close:hover { color: var(--gold-light); }
.lightbox-close svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .gallery-page-grid { columns: 2; }
  .gallery-filters { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .gallery-page-grid { columns: 1; }
  .filter-btn { padding: 0.8rem 1.2rem; }
}
