.gallery-page{--wall-gap:8px;--photo-ink:#f4f4f0;--photo-muted:#979b94}
.gallery-shell{width:calc(100% - 48px);max-width:1840px;margin-inline:auto}
.gallery-page .header-inner.wrap{width:calc(100% - 48px);max-width:1840px}
.photography-heading{padding:22px 0 18px}
.photography-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px;min-width:0}
.photography-title h1{font-size:2.5rem;line-height:1.1;letter-spacing:-.055em}
.photography-title h1>span{color:var(--accent)}
.photography-byline{color:var(--photo-muted);font-size:.75rem;letter-spacing:-.01em;white-space:nowrap}
.photography-note{width:100%;max-width:760px;margin-top:10px;color:#939e8c;font-size:.75rem;line-height:1.8;text-align:left;text-wrap:initial}
.photography-note-lead{color:#bdc8b5}
/* Ordinary columns are the no-JavaScript fallback; measured rows preserve every crop. */
.photo-wall{columns:3;column-gap:var(--wall-gap);scroll-margin-top:calc(var(--header-height) + 8px)}
.photo-tile{break-inside:avoid;position:relative;margin:0 0 var(--wall-gap);scroll-margin-top:calc(var(--header-height) + 8px);background:#11130f}
.photo-wall.is-justified{position:relative;columns:auto}
.photo-wall.is-justified .photo-tile{position:absolute;left:var(--photo-x);top:var(--photo-y);width:var(--photo-width);height:var(--photo-height);margin:0}
.photo-tile-link{position:relative;display:block;width:100%;height:100%;overflow:hidden;isolation:isolate;background:#11130f}
.photo-tile-link>img{display:block;width:100%;height:auto}
.photo-wall.is-justified .photo-tile-link>img{height:100%;object-fit:contain}
.photo-tile-link::after{content:'';position:absolute;inset:0;z-index:2;border:1px solid rgba(255,255,255,.06);pointer-events:none}
.photo-tile-link:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:0;z-index:3}
.photo-tile-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:22px;color:#fff;background:linear-gradient(transparent 40%,rgba(0,0,0,.65));opacity:0;transition:opacity 180ms ease}
.photo-tile-overlay strong{display:block;font-family:'PingFang SC','Microsoft YaHei',var(--sans);font-size:.9375rem;line-height:1.6;font-weight:400;letter-spacing:.04em}
.photo-tile-arrow{padding-bottom:3px;font-size:1rem}
.photo-tile-link:focus-visible .photo-tile-overlay{opacity:1}
@media(hover:hover) and (pointer:fine){.photo-tile-link:hover .photo-tile-overlay{opacity:1}}
.photography-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px 0 30px;color:#8c9585;font-size:.625rem}
.photography-footer-note{margin-left:20px;color:#666e60}
.photography-footer>div{display:flex;align-items:center;gap:28px}
.photography-footer a{display:inline-flex;align-items:center;gap:9px;min-height:44px}
.photography-footer a span{color:var(--accent)}
.photo-viewer-open{overflow:hidden;scrollbar-gutter:stable}
.photo-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:16px 24px;padding:max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));border:0;overflow:hidden;background:#090b08;color:#f0f2ec}
.photo-viewer:not([open]){display:none}
.photo-viewer[open]{display:flex;flex-direction:column;gap:12px}
.photo-viewer::backdrop{background:#090b08}
.viewer-toolbar,.viewer-bottom{display:grid;align-items:center;flex-shrink:0;gap:24px;height:44px;min-height:44px}
.viewer-toolbar{grid-template-columns:minmax(0,1fr) auto}
.viewer-bottom{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.viewer-toolbar form{display:flex;align-items:center;justify-self:end;height:44px;margin:0;padding:0}
.viewer-counter{color:#aeb6a6;font:400 .625rem/1.6 var(--mono);letter-spacing:.05em}
.viewer-close{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:96px;height:44px;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:4px;background:transparent;color:#bec7b7;font-size:.75rem;line-height:1;white-space:nowrap}
.viewer-close>span{display:block;line-height:1}
.viewer-close svg,.viewer-button svg{display:block;flex-shrink:0;width:18px;height:18px}
.viewer-close:hover{background:#161c12;color:#fff}
.viewer-close:focus-visible{outline-offset:0;border-radius:4px}
.viewer-figure{display:flex;flex-direction:column;flex:1;min-height:0;gap:16px}
.viewer-stage{position:relative;flex:1;min-height:0;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.viewer-image,.viewer-preview{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.viewer-image{z-index:1}
.viewer-status{position:absolute;left:50%;bottom:16px;z-index:2;transform:translateX(-50%);max-width:90%;padding:6px 12px;background:rgba(0,0,0,.65);color:#c6cdbf;font-size:.6875rem;text-align:center;pointer-events:none}
.viewer-caption{text-align:center;flex-shrink:0}
.viewer-caption h2{font-family:'PingFang SC','Microsoft YaHei',var(--sans);font-size:1rem;line-height:1.5;font-weight:400;letter-spacing:.05em}
.viewer-original{display:inline-flex;align-items:center;justify-self:start;gap:10px;min-height:44px;color:#929e87;font-size:.6875rem;white-space:nowrap}
.viewer-hint{color:#65725a;font:400 .5625rem/1.6 var(--mono);text-align:center}
.viewer-controls{display:flex;justify-self:end;gap:8px}
.viewer-button{display:flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:44px;min-height:44px;padding:0;border:1px solid #30382a;border-radius:4px;background:transparent;color:#c4cebc;font-size:1.125rem;line-height:1}
.viewer-button:hover{border-color:var(--accent);color:var(--accent)}
.viewer-button:focus-visible{outline-offset:0;border-radius:4px}
@media(min-width:1800px){.gallery-shell,.gallery-page .header-inner.wrap{width:calc(100% - 80px)}}
@media(max-width:900px){
 .gallery-shell{width:calc(100% - 32px)}
 .gallery-page .header-inner.wrap{width:calc(100% - 32px)}
 .photography-heading{padding:20px 0 18px}
 .photography-title{gap:6px 16px}
 .photography-title h1{font-size:2.125rem}
 .photography-byline{font-size:.6875rem}
 .photo-wall{columns:2}
 .photography-footer-note{display:none}
}
@media(max-width:600px){
 .gallery-page{--wall-gap:5px}
 .gallery-shell{width:calc(100% - 24px)}
 .gallery-page .header-inner.wrap{width:calc(100% - 32px)}
 .photography-heading{padding:18px 4px 14px}
 .photography-title{display:block}
 .photography-title h1{font-size:1.875rem}
 .photography-byline{display:block;margin-top:6px;font-size:.75rem}
 .photography-note{font-size:.8125rem;line-height:1.65}
 .photo-wall{columns:1}
 .photo-tile-overlay{padding:10px;gap:10px}
 .photo-tile-overlay strong{font-size:.8125rem;letter-spacing:.015em}
 .photo-tile--panorama .photo-tile-overlay{padding:6px 10px}
 .photo-tile-arrow{font-size:.8125rem}
 .photography-footer{flex-wrap:wrap;padding:16px 4px;font-size:.6875rem;gap:4px 12px}
 .photography-footer>div{gap:16px}
 .photography-footer a{gap:6px}
 .photo-viewer{padding:12px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .photo-viewer[open]{gap:8px}
 .viewer-toolbar,.viewer-bottom{gap:12px}
 .viewer-bottom{grid-template-columns:minmax(0,1fr) auto}
 .viewer-figure{gap:12px}
 .viewer-hint{display:none}
 .viewer-counter{font-size:.75rem}
 .viewer-caption h2{font-size:.9375rem}
 .viewer-close{font-size:.875rem}
 .viewer-original{font-size:.75rem}
 .viewer-status{font-size:.75rem}
}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 .photo-viewer{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))}
 .photo-viewer[open],.viewer-figure{gap:4px}
 .viewer-caption h2{font-size:.875rem}
 .viewer-hint{display:none}
}
/* Touch browsing keeps the photograph clear; its title is in the viewer.
   Keyboard focus still reveals the caption, including on tablets. */
@media(prefers-reduced-motion:reduce){.photo-tile-overlay{transition:none}}
@media print{
 .photo-viewer,.photography-footer{display:none}
 .gallery-shell{width:100%}
 .photography-heading{padding:0 0 20px}
 .photo-wall.is-justified{columns:2;height:auto!important}
 .photo-wall.is-justified .photo-tile{position:relative;left:auto;top:auto;width:auto;height:auto;margin-bottom:12px}
 .photo-wall.is-justified .photo-tile-link>img{height:auto}
 .photo-tile-overlay{display:none}
 .photo-tile figcaption.sr-only{position:static;width:auto;height:auto;clip-path:none;white-space:normal;margin-top:5px;color:#333;font-size:9pt}
}
