/* Small CMS-only states; the approved v2 site.css owns all typography, colors and layout. */
.cms-media-empty{display:flex;align-items:center;justify-content:center;min-height:240px;background:var(--soft);color:var(--muted);font-size:13px;letter-spacing:2px}
.hero-photo>.cms-media-empty{height:100%;min-height:440px}.article-thumb>.cms-media-empty{height:100%}
.cms-related-cards{display:grid;gap:24px}.cms-inline-photo{margin:36px 0}.cms-inline-photo img{width:100%;height:auto}.cms-inline-photo figcaption{margin-top:10px;font-size:11px;color:var(--muted)}
.cms-compact-block{padding-top:36px;padding-bottom:36px}.cms-empty{padding:48px 0}
@media(max-width:680px){.hero-photo>.cms-media-empty{min-height:340px}}
.locale-portrait-empty{display:flex!important;align-items:center;justify-content:center;min-height:440px;height:100%;background:linear-gradient(155deg,#4e6457,#283c31);color:#e4ebdf;text-align:center;padding:32px;font-size:16px;letter-spacing:.05em}.locale-switch{display:flex;gap:14px;flex-wrap:wrap}.locale-switch a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}html[lang="en"] .hero h1{font-size:clamp(44px,5.5vw,78px)}html[lang="en"] .hero h2{font-size:clamp(24px,3vw,36px)}.article-card .article-copy{width:100%}.hero-actions{flex-wrap:wrap}

/* The archive keeps its two themes; photography gets the foreground. */
.hero-photo.has-portrait{overflow:hidden}
.portrait-button{display:block;position:relative;width:100%;height:100%;padding:0;border:0;background:var(--soft);cursor:zoom-in;line-height:0}
.portrait-button img{width:100%;height:100%;object-fit:cover;object-position:50% 28%}
.has-portrait .photo-index{pointer-events:none;color:#fff;background:#14231a80;padding:5px 8px}
.hero-photo.has-portrait figcaption{font-size:10px;line-height:1.65;left:18px;right:18px;bottom:12px;text-align:left;text-shadow:0 1px 4px #000}
.portrait-button .photo-open-hint{bottom:74px;right:20px}
.profile-layout .prose{font-size:15px;line-height:2.05}.profile-layout .prose p+p{margin-top:18px}
.gallery-section{padding-block:64px}.gallery-section .section-heading{margin-bottom:26px;align-items:center}
.gallery-section .section-heading h2{font-size:34px;margin:0;letter-spacing:1px}
.gallery-section-intro{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.7}
.gallery-all-link{display:inline-flex;align-items:center;gap:14px;font-size:12px;min-height:44px;padding:10px 17px;border:1px solid var(--line);border-radius:24px;white-space:nowrap}
.gallery-all-link:hover{background:var(--soft)}.gallery-all-link svg{width:16px;height:16px}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:20px}
.gallery-photo-total{font-size:12px;color:var(--muted)}

/* Natural dimensions determine every tile; the gallery never forces a crop. */
.photo-wall{display:block;column-count:4;column-gap:18px}
.archive-photo-card{display:inline-block;vertical-align:top;width:100%;margin:0 0 18px;break-inside:avoid;min-width:0}
.archive-photo-card .gallery-button{display:block;position:relative;width:100%;height:auto;padding:0;border:0;border-radius:10px;overflow:hidden;background:var(--soft);cursor:zoom-in;line-height:0}
.archive-photo-card .gallery-button img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;aspect-ratio:auto;transform:none}
.archive-photo-card figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 2px 0;color:var(--muted);line-height:1.7}
.archive-photo-card figcaption strong{font-size:12px;font-weight:400;overflow-wrap:anywhere}.archive-photo-card .photo-year{font-size:11px;white-space:nowrap}
.gallery-button .photo-open-hint,.portrait-button .photo-open-hint{position:absolute;top:14px;right:14px;bottom:auto;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #ffffff65;border-radius:50%;background:#080c0b80;color:#fff;opacity:0;transition:opacity .2s}
.photo-open-hint svg{width:15px;height:15px}.gallery-button:hover .photo-open-hint,.gallery-button:focus-visible .photo-open-hint,.portrait-button:hover .photo-open-hint,.portrait-button:focus-visible .photo-open-hint{opacity:1}
.gallery-button:focus-visible{outline:3px solid var(--accent);outline-offset:-5px}
.gallery-attribution{margin-top:12px;font-size:12px;color:var(--muted)}.gallery-attribution summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;width:fit-content;padding:8px 2px}
.gallery-attribution[open] summary{color:var(--ink)}.gallery-attribution ol{list-style:none;padding:18px 0 0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;border-top:1px solid var(--line)}
.gallery-attribution li{display:flex;flex-direction:column;gap:5px;line-height:1.8;overflow-wrap:anywhere}.gallery-attribution li>span:first-child{color:var(--ink)}.gallery-attribution a{text-decoration:underline;text-underline-offset:3px}
.gallery-collection{padding-bottom:48px}.gallery-collection-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px}.gallery-collection-head h2{font-size:17px;font-weight:400}.gallery-collection-head>span{color:var(--muted);font-size:12px;white-space:nowrap}
/* Full-screen photograph viewer. No surrounding page chrome competes with the image. */
html.photo-viewer-open{overflow:hidden}
#image-dialog{--viewer-bg:#090c0b;--viewer-ink:#f5f7f3;--viewer-muted:#b1b9b3;inset:0;margin:0;width:100vw;max-width:100vw;height:100svh;max-height:100svh;padding:18px 32px 20px;border:0;background:var(--viewer-bg);color:var(--viewer-ink);overflow:hidden;box-shadow:none;color-scheme:dark}
#image-dialog[open]{display:flex;flex-direction:column;gap:14px}
#image-dialog::backdrop{background:#090c0b}
.image-dialog-head{display:flex;align-items:center;gap:24px;flex-shrink:0;min-height:44px}
.image-dialog-head h2{font-size:14px;font-weight:500;margin:0;margin-right:auto;display:flex;align-items:center;gap:18px}
.image-dialog-head h2 span{padding-left:18px;border-left:1px solid #ffffff26;font-size:12px;font-weight:400;color:var(--viewer-muted)}
#image-counter{font-size:12px;letter-spacing:1px;color:var(--viewer-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.image-dialog-head [data-close],.lightbox-arrow{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;border:1px solid #ffffff36;border-radius:50%;background:#ffffff08;color:var(--viewer-ink);padding:11px}
#image-dialog button:hover{background:#ffffff18}#image-dialog svg{width:20px;height:20px}
.lightbox-stage{display:grid;position:relative;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:28px;flex:1;min-height:0;touch-action:pan-y pinch-zoom}
#image-dialog #large-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain;background:transparent}
.lightbox-arrow{z-index:2}.lightbox-arrow[hidden]{visibility:hidden;display:block}
.lightbox-status{position:absolute;inset:0 76px;display:none;place-items:center;background:var(--viewer-bg);color:var(--viewer-muted);font-size:14px;text-align:center;padding:20px;pointer-events:none}
.photo-loading .lightbox-status,.photo-error .lightbox-status{display:grid}.photo-loading #large-image,.photo-error #large-image{opacity:0}
.lightbox-footer{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;flex-shrink:0;max-width:900px;margin:0 auto;line-height:1.6}
#large-caption{font-size:14px;margin:0}#large-credit{font-size:11px;color:var(--viewer-muted);margin:0;overflow-wrap:anywhere}#large-credit a{text-decoration:underline;text-underline-offset:3px}
.lightbox-thumbs{display:flex;justify-content:safe center;gap:8px;overflow:auto;scrollbar-width:none;padding:5px 4px;flex-shrink:0;min-height:74px}
.lightbox-thumbs button{position:relative;flex:0 0 50px;height:64px;padding:0;border:0;border-radius:5px;overflow:hidden;opacity:.45;background:#1d2520}
#image-dialog .lightbox-thumbs img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;object-position:50% 28%}
.lightbox-thumbs button[aria-current="true"]{opacity:1;outline:2px solid #fff;outline-offset:2px}
#image-dialog button:focus-visible{outline:2px solid #fff;outline-offset:3px}

@media(max-width:1000px){.photo-wall{column-count:3;column-gap:16px}}
@media(max-width:700px){
 .gallery-section{padding-block:40px}.gallery-section .section-heading{gap:12px;align-items:flex-start;margin-bottom:20px}.gallery-section .section-heading h2{font-size:29px}.gallery-section-intro{font-size:12px;margin-top:6px;max-width:24ch}.gallery-all-link{padding:8px 12px;font-size:11px;gap:6px;margin-top:4px}
 .gallery-toolbar{margin-bottom:14px}.gallery-photo-total{font-size:11px}.photo-wall{column-count:2;column-gap:12px}.archive-photo-card{margin-bottom:14px}.archive-photo-card .gallery-button{border-radius:8px}.archive-photo-card figcaption{padding-top:8px}.archive-photo-card figcaption strong{font-size:11px}
 .archive-photo-card .photo-open-hint{width:30px;height:30px;top:10px;right:10px;opacity:1}.photo-open-hint svg{width:13px;height:13px}
 .gallery-attribution{font-size:11px}.gallery-attribution ol{grid-template-columns:1fr;gap:16px}.gallery-collection-head{align-items:flex-start;gap:15px;margin-bottom:22px}.gallery-collection-head h2{font-size:15px}.gallery-collection-head>span{font-size:11px}
 .hero-photo.has-portrait figcaption{font-size:9px;left:14px;right:14px}.portrait-button .photo-open-hint{top:16px;right:16px;bottom:auto}.profile-layout .prose{font-size:15px;line-height:2}.hero-summary{font-size:14px}
 #image-dialog{padding:calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}#image-dialog[open]{gap:12px}.image-dialog-head{gap:14px}.image-dialog-head h2{font-size:13px;gap:10px}.image-dialog-head h2 span{font-size:11px;padding-left:10px}.image-dialog-head [data-close]{width:44px;height:44px}.lightbox-stage{display:block;position:relative;min-height:0}.lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);background:#090c0ba6}.lightbox-arrow.previous{left:0}.lightbox-arrow.next{right:0}.lightbox-status{inset:0}#large-caption{font-size:13px}#large-credit{font-size:10px}.lightbox-footer{gap:4px}.lightbox-thumbs{justify-content:flex-start;gap:7px;min-height:64px}.lightbox-thumbs button{flex-basis:44px;height:56px}
}
@media(max-height:500px){#image-dialog{padding:8px 20px}#image-dialog[open]{gap:5px}.image-dialog-head{min-height:40px}.lightbox-thumbs{min-height:46px;padding:3px}.lightbox-thumbs button{height:40px;flex-basis:34px}.lightbox-footer{flex-direction:row;gap:14px;line-height:1.4}#large-caption{font-size:11px}#large-credit{font-size:10px}}
