/* =====================================================================
   SECTION 9 — PHOTO GALLERY + LIGHTBOX
   ===================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.gallery-grid {
  columns: 3 220px;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1/1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item .photo-fallback {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-item:hover img, .gallery-item:hover .photo-fallback { transform: scale(1.08); }
.gallery-cat {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.lightbox {
  position: fixed; inset: 0; z-index: 210;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,5,7,0.92); }
.lightbox-image {
  position: relative; z-index: 2;
  max-width: 88vw; max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-deep);
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--ivory);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; width: 42px; height: 42px; font-size: 1.4rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 900px) {
  .gallery-grid { columns: 2 180px; }
}
@media (max-width: 720px) {
  .gallery-grid { columns: 1 100%; }
}
