.gallery-section{padding-bottom:46px}
.gallery-page{padding-bottom:60px}
.work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 22px}
.gallery-tile{min-width:0}
.gallery-photo{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.gallery-photo img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.gallery-photo:hover img{transform:scale(1.035)}
.gallery-zoom{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;background:#fff;color:var(--ink);font-size:1.5rem;line-height:1;box-shadow:0 1px 8px #0002}
.gallery-tile figcaption{padding-top:16px}
.gallery-tile :is(h2,h3){font-family:Instrument,Arial,sans-serif;font-weight:550;font-size:clamp(1.15rem,1.6vw,1.65rem);line-height:1.25;letter-spacing:-.025em}
.gallery-tile :is(h2,h3) a{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:32px}
.gallery-tile :is(h2,h3) a span{font-size:1rem;font-weight:400}
.gallery-tile :is(h2,h3) a:hover{text-decoration:underline;text-underline-offset:5px}
.gallery-tile figcaption p{margin-top:5px;color:var(--muted);font-size:.9375rem;line-height:1.5}
html.gallery-open{overflow:hidden}
.photo-viewer{width:min(1500px,calc(100% - 48px));max-width:none;max-height:calc(100svh - 36px);padding:0 24px 20px;border:0;background:#161917;color:#fff;overflow:auto}
.photo-viewer::backdrop{background:#101311ed}
.viewer-header{height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:.9375rem;color:#c7ccc6}
.viewer-close{min-height:44px;display:flex;align-items:center;gap:14px;border:0;background:none;color:#fff;font-size:1rem;padding:8px 0 8px 12px}
.viewer-close span{font-size:1.7rem;line-height:1}
.viewer-image{height:min(65svh,860px);position:relative;display:flex;align-items:center;justify-content:center}
.viewer-image img{height:100%;width:100%;object-fit:contain}
.viewer-image.is-loading img{opacity:0}
.viewer-status{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;font-size:1rem;color:#d4d9d2}
.viewer-caption{display:grid;grid-template-columns:90px 1fr 90px;align-items:center;gap:28px;padding-top:18px;text-align:center}
.viewer-caption h2{font-size:1.55rem;line-height:1.2;letter-spacing:-.025em}
.viewer-caption p{font-size:.9375rem;color:#c7ccc6;margin-top:6px}
.viewer-project{display:inline-flex;align-items:center;gap:15px;font-size:.9375rem;text-decoration:underline;text-underline-offset:4px;padding-block:10px 4px}
.viewer-project:hover{color:#ff936c}
.viewer-nav{width:auto;min-height:48px;border:1px solid #737a70;background:none;color:#fff;font-size:.9375rem;line-height:1.2}
.viewer-nav:hover{background:#fff;color:#161917;border-color:#fff}
.photo-viewer :focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:1000px){.work-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}}
@media(max-width:600px){.gallery-section{padding-bottom:22px}.gallery-page{padding-bottom:35px}.work-gallery{gap:28px 14px}.gallery-photo{aspect-ratio:1.15}.gallery-zoom{width:30px;height:30px;right:8px;bottom:8px;font-size:1.25rem}.gallery-tile figcaption{padding-top:10px}.gallery-tile :is(h2,h3){font-size:1.0625rem}.gallery-tile :is(h2,h3) a{gap:8px;min-height:34px}.gallery-tile figcaption p{font-size:.875rem;margin-top:2px}.photo-viewer{width:100%;max-height:100svh;padding:0 16px 18px;margin:auto 0}.viewer-header{height:58px}.viewer-image{height:min(58svh,650px)}.viewer-caption{gap:12px;grid-template-columns:1fr 1fr;padding-top:18px}.viewer-caption>div{grid-column:1/-1;grid-row:1}.viewer-caption [data-viewer-prev]{grid-column:1;grid-row:2}.viewer-caption [data-viewer-next]{grid-column:2;grid-row:2}.viewer-caption h2{font-size:1.25rem}.viewer-caption p{font-size:.875rem}.viewer-nav{width:100%;min-height:44px}.viewer-project{font-size:.875rem}.viewer-header>span{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.gallery-photo img{transition:none}}

/* One main project, one quieter image beside it, then four smaller works. */
.work-gallery-editorial{grid-template-columns:repeat(12,minmax(0,1fr));gap:54px 24px;align-items:start}
.work-gallery-editorial .gallery-tile{grid-column:span 3}
.work-gallery-editorial .gallery-tile:first-child{grid-column:1 / span 8}
.work-gallery-editorial .gallery-tile:nth-child(2){grid-column:10 / span 3;align-self:end;margin-bottom:28px}
.work-gallery-editorial .gallery-tile:first-child .gallery-photo{aspect-ratio:1.65}
.work-gallery-editorial .gallery-tile:nth-child(2) .gallery-photo{aspect-ratio:.9}
.work-gallery-editorial .gallery-tile:first-child :is(h2,h3){font-size:clamp(1.6rem,2.5vw,2.6rem)}
.work-gallery-editorial .gallery-tile:first-child figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:24px}
.work-gallery-editorial .gallery-tile:first-child figcaption p{margin:0;font-size:1rem;text-align:right}
.work-gallery-editorial .gallery-tile:nth-child(n+3) .gallery-photo{aspect-ratio:1.3}
.home-work.gallery-section{padding-bottom:64px}
@media(max-width:900px){.work-gallery-editorial{grid-template-columns:repeat(6,minmax(0,1fr));gap:36px 20px}.work-gallery-editorial .gallery-tile:first-child{grid-column:1 / span 4}.work-gallery-editorial .gallery-tile:nth-child(2){grid-column:5 / span 2;margin-bottom:0}.work-gallery-editorial .gallery-tile:first-child figcaption{display:block}.work-gallery-editorial .gallery-tile:first-child figcaption p{margin-top:5px;text-align:left;font-size:.9375rem}.work-gallery-editorial .gallery-tile:first-child :is(h2,h3){font-size:1.5rem}}
@media(max-width:600px){.work-gallery-editorial{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 14px}.work-gallery-editorial .gallery-tile,.work-gallery-editorial .gallery-tile:nth-child(2){grid-column:span 1}.work-gallery-editorial .gallery-tile:first-child{grid-column:1 / -1}.work-gallery-editorial .gallery-tile:nth-child(2) .gallery-photo{aspect-ratio:1.3}.work-gallery-editorial .gallery-tile:last-child{grid-column:1 / -1}.work-gallery-editorial .gallery-tile:last-child .gallery-photo{aspect-ratio:1.65}.work-gallery-editorial .gallery-tile:first-child figcaption{display:flex;gap:14px}.work-gallery-editorial .gallery-tile:first-child figcaption p{font-size:.875rem;max-width:130px;text-align:right}.work-gallery-editorial .gallery-tile:first-child :is(h2,h3){font-size:1.35rem}.home-work.gallery-section{padding-bottom:38px}}
