/* ─── GALLERY FILTER ──────────────────────────────────────── */
.gallery { padding-top: 56px; }
.gallery__heading { color: var(--text-on-light); margin-bottom: 48px; }
.gallery__filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px;
}
.filter-btn {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 10px 20px; cursor: pointer;
  border: 1px solid rgba(var(--color-brass-rgb),0.3); background: transparent;
  color: var(--text-muted-dark); transition: all 0.2s;
  font-family: var(--font-brand);
}
.filter-btn:hover { color: var(--text-on-light); border-color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: var(--color-midnight);
  border-color: var(--accent);
}

/* ─── GALLERY GRID ────────────────────────────────────────── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2px;
  row-gap: 0;
  align-items: start;
}
@media (min-width: 768px)  { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  position: relative; cursor: pointer;
}
.gallery__item-image-wrap {
  aspect-ratio: 3/4; overflow: hidden;
}
.gallery__item-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover .gallery__item-img { transform: scale(1.04); }
.gallery__item-meta { padding: 12px 0 32px; }
.gallery__item-caption {
  font-size: 12px; font-weight: 300; line-height: 1.5;
  color: rgba(var(--color-midnight-rgb),0.7); margin-bottom: 6px;
}
.gallery__item-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.gallery__item[data-hidden="true"] { display: none; }

/* ─── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,12,0.95);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 64px 48px 48px; box-sizing: border-box;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__frame {
  display: flex; flex-direction: column; align-items: center;
  max-height: 100%; max-width: 90vw;
}
.lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.lightbox__close {
  position: absolute; top: 24px; right: 28px;
  font-size: 32px; color: var(--text-on-dark); cursor: pointer;
  background: none; border: none; line-height: 1; transition: color 0.2s;
}
.lightbox__close:hover { color: var(--accent); }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-on-dark); font-size: 36px; padding: 16px;
  transition: color 0.2s; line-height: 1;
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--accent); }
.lightbox__caption {
  margin-top: 12px;
  text-align: center; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted-dark);
}
