.gallery-wrap { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: var(--space-6); }
.photo-wall { columns: 3; column-gap: clamp(1.2rem, 2.8vw, 3rem); }
.photo-thumb { display: inline-block; width: 100%; margin: 0 0 clamp(2.5rem, 5vw, 5.5rem); padding: 0; break-inside: avoid; border: 0; background: transparent; text-align: left; cursor: zoom-in; color: inherit; }
.photo-thumb__meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; color: var(--color-muted); }
.photo-thumb__meta strong { max-width: 70%; overflow-wrap: anywhere; font-weight: 400; color: var(--color-text); }
.photo-thumb:hover .photo-mat, .photo-thumb:focus-visible .photo-mat { transform: translateY(-4px); }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--color-text); overflow: hidden; opacity: 0; transition: opacity var(--duration-normal) ease; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: var(--color-overlay); }
.lightbox.is-visible { opacity: 1; }
.lightbox__bar { position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.lightbox__bar p { margin: 0; }
.lightbox__bar button { border: 0; background: none; padding: .5rem 0; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.lightbox__bar button span { margin-left: .5rem; font-size: 1rem; }
.lightbox__stage { width: 100%; height: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: .75rem; padding: 64px var(--gutter) 24px; }
.lightbox__figure { width: 100%; height: 100%; min-width: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 320px); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
.lightbox__mat { justify-self: center; display: grid; place-items: center; max-width: 100%; max-height: calc(100vh - 110px); padding: clamp(7px, .8vw, 13px); border: 1px solid var(--color-frame); background: var(--color-mat); box-shadow: var(--shadow-frame); }
.lightbox__mat img { max-width: 100%; max-height: calc(100vh - 138px); width: auto; height: auto; object-fit: contain; opacity: 0; }
.lightbox__mat img.is-ready { opacity: 1; }
.lightbox__details { align-self: center; }
.lightbox__details h2 { margin: .75rem 0 1rem; font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: .9; }
.lightbox__details > p:not(.meta-label) { color: var(--color-muted); white-space: pre-line; }
.lightbox__details [data-lightbox-description]:empty, .lightbox__details [data-lightbox-credits]:empty { display: none; }
.lightbox__credits { padding-top: .85rem; border-top: 1px solid var(--color-line); font-size: .75rem; }
.lightbox__details .text-link { margin-top: 1.5rem; }
.lightbox__nav { width: 44px; height: 44px; justify-self: center; border: 1px solid var(--color-line); border-radius: 50%; background: color-mix(in srgb, var(--color-surface) 60%, transparent); color: var(--color-text); transition: transform var(--duration-normal) var(--ease-out); }
.lightbox__nav:hover { border-color: var(--color-accent); transform: scale(1.06); }
.lightbox-flight { position: fixed; z-index: 120; margin: 0; pointer-events: none; object-fit: contain; transform-origin: top left; will-change: transform, opacity; box-shadow: var(--shadow-frame); }
@media (max-width: 900px) {
  .photo-wall { columns: 2; }
  .lightbox { overflow-y: auto; }
  .lightbox__stage { min-height: 100%; height: auto; grid-template-columns: 1fr; padding: 76px var(--gutter) 90px; }
  .lightbox__figure { height: auto; grid-template-columns: 1fr; }
  .lightbox__mat { max-height: 68svh; }
  .lightbox__mat img { max-height: calc(68svh - 28px); }
  .lightbox__details { width: min(100%, 640px); margin-inline: auto; }
  .lightbox__nav { position: fixed; z-index: 3; bottom: 18px; }
  .lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }
}
@media (max-width: 560px) { .photo-wall { columns: 1; } .photo-thumb { margin-bottom: 3.5rem; } }
