/* /gallery — masonry of photos and cover art on black, tight gutters, no captions. BRIEF.md §7. */

.ga { padding-block: var(--s-5); }
.ga__grid { list-style: none; padding: 0; columns: 1; column-gap: var(--s-2); }
@media (min-width: 600px) { .ga__grid { columns: 2; } }
@media (min-width: 1000px) { .ga__grid { columns: 3; column-gap: var(--s-3); } }

.ga__item { break-inside: avoid; margin-bottom: var(--s-2); }
@media (min-width: 1000px) { .ga__item { margin-bottom: var(--s-3); } }
.ga__open { display: block; width: 100%; cursor: zoom-in; }
.ga__open img { width: 100%; height: auto; }
/* crowd-small is 480x640 — never render wider than 400px. */
.ga__item--small .ga__open { max-width: 400px; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: var(--s-3);
  border: 0;
  background: var(--void);
  color: var(--ink-900);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: var(--s-2); place-items: center; }
.lightbox::backdrop { background: var(--void); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; gap: var(--s-1); }
.lightbox__btn {
  min-height: 44px; padding: 0 var(--s-2);
  border: 1px solid var(--concrete-700);
  font-size: var(--fs-ui); letter-spacing: 0.02em;
}
.lightbox__btn:hover { border-color: var(--ink-900); }
