.gal-filters-wrap { padding-top: 32px; padding-bottom: 8px; }
.gal-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.gal-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--concrete);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: all 200ms;
}
.gal-chip:hover { border-color: var(--ink); }
.gal-chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gal-section { padding-block: 40px var(--section-y); }
.masonry {
  columns: 3;
  column-gap: 16px;
}
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }
.m-item {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--ink);
  display: block;
}
.m-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease-out), opacity 240ms;
}
.m-item.m-tall img { aspect-ratio: 3/4; object-fit: cover; }
.m-item.m-wide img { aspect-ratio: 16/10; object-fit: cover; }
.m-item:not(.m-tall):not(.m-wide) img { aspect-ratio: 4/3; object-fit: cover; }
.m-item:hover img { transform: scale(1.06); opacity: 0.85; }
.m-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms, transform 280ms;
}
.m-item:hover figcaption { opacity: 1; transform: translateY(0); }
.m-item figcaption strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.m-item figcaption span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.m-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lb-stage {
  max-width: 90vw;
  max-height: 80vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.lb-stage img { max-width: 100%; max-height: 75vh; border-radius: 8px; }
.lb-stage figcaption {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--white);
  font-size: 36px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 200ms;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 24px; right: 24px; font-size: 28px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
