.gallery-wrap { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: var(--space-6); }
.photo-wall { columns: 5; column-gap: clamp(.8rem, 1.6vw, 1.5rem); }
.photo-thumb { position: relative; display: inline-block; width: 100%; margin: 0 0 clamp(1rem, 1.8vw, 1.6rem); padding: 0; break-inside: avoid; border: 0; background: transparent; text-align: left; cursor: zoom-in; overflow: visible; }
.photo-thumb img { width: 100%; height: auto; transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-normal) ease; }
.photo-thumb__meta { display: flex; justify-content: space-between; padding-top: .5rem; opacity: 0; transform: translateY(-2px); transition: opacity var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out); }
.photo-thumb:hover img { transform: translateY(-2px) scale(1.006); }
.photo-thumb:hover .photo-thumb__meta { opacity: 1; transform: none; }

.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; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: rgba(4,4,3,.96); }
.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__stage { width: 100%; height: 100%; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: .75rem; padding: 64px var(--gutter) 28px; }
.lightbox__figure { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 145px); width: auto; height: auto; object-fit: contain; opacity: 0; }
.lightbox__figure img.is-ready { opacity: 1; }
.lightbox__figure figcaption { width: min(100%, 1000px); margin-top: .8rem; color: var(--color-muted); font-size: .72rem; line-height: 1.55; letter-spacing: .025em; white-space: pre-line; }
.lightbox__nav { width: 44px; height: 44px; justify-self: center; border: 1px solid var(--color-line); border-radius: 50%; background: rgba(10,10,9,.35); color: var(--color-text); transition: border-color var(--duration-fast) ease, 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; will-change: left, top, width, height, border-radius; box-shadow: 0 24px 80px rgba(0,0,0,.42); }

@media (max-width: 1180px) { .photo-wall { columns: 4; } }
@media (max-width: 820px) { .photo-wall { columns: 3; } .lightbox__stage { grid-template-columns: 1fr; padding-inline: 1rem; padding-bottom: 78px; } .lightbox__nav { position: absolute; bottom: 18px; } .lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; } }
@media (max-width: 560px) { .photo-wall { columns: 2; column-gap: .7rem; } .photo-thumb { margin-bottom: .8rem; } .photo-thumb__meta { display: none; } }
