.gallery.layout-split-left{grid-template-columns:2fr 1fr}.gallery.layout-split-right{grid-template-columns:1fr 2fr}.gallery.layout-masonry{display:block;column-count:2;column-gap:18px}.gallery.layout-masonry figure{break-inside:avoid;margin-bottom:24px}.gallery.layout-horizontal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:24px}.gallery.layout-horizontal figure{flex:0 0 80%;min-width:0;scroll-snap-align:start}.embed-box{position:relative;aspect-ratio:16/9;background:#dfe2dc;width:100%;overflow:hidden}.embed-box>button{width:100%;height:100%;display:grid;place-items:center;border:0;background:transparent;cursor:pointer}.embed-box>button>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.embed-box button>span{z-index:1;padding:16px;background:#f1f4ecdf}.embed-box small{display:block;margin-top:8px}.embed-box iframe{width:100%;height:100%;border:0}.compare-box{position:relative;display:grid;--comparison:50%;background:#dfe2dc}.compare-box>img{grid-area:1/1;width:100%;height:100%;object-fit:contain}.compare-box .compare-after{clip-path:inset(0 0 0 var(--comparison))}.compare-labels{position:absolute;inset:16px 16px auto;display:flex;justify-content:space-between;pointer-events:none}.compare-labels span{background:#f8faf0c9;padding:5px 10px;font-size:calc((12px) * var(--type-scale,1))}.compare-control{position:absolute;bottom:15px;left:10%;width:80%;background:#fafcf0dd;padding:8px 14px;font-size:calc((12px) * var(--type-scale,1))}.compare-control input{display:block;width:100%}.hotspot-media{position:relative}.hotspot-media>img{width:100%}.hotspot{position:absolute;transform:translate(-50%,-50%);padding:0;background:none;border:0;z-index:2;cursor:pointer}.hotspot>span:first-child{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f6f9ea;color:#16200c;border:1px solid #344c24;box-shadow:0 2px 10px #0003}.hotspot-note{display:none;position:absolute;min-width:180px;max-width:260px;left:0;bottom:40px;background:#f8faef;color:#19210f;padding:14px;text-align:left;box-shadow:0 4px 20px #0003;font-size:calc((14px) * var(--type-scale,1))}.hotspot[aria-expanded=true] .hotspot-note{display:block}.zoomable{cursor:zoom-in}.photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;background:#161916f5;color:white;padding:70px 60px}.photo-viewer::backdrop{background:#171b16}.photo-viewer figure{height:100%;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.photo-viewer img{max-width:100%;max-height:calc(100% - 36px);object-fit:contain}.photo-viewer button,.photo-viewer a{position:absolute;color:white;background:none;border:0;font-size:calc((16px) * var(--type-scale,1));padding:12px}.photo-close{right:20px;top:16px}.photo-prev{left:5px;top:50%}.photo-next{right:5px;top:50%}.photo-original{left:16px;top:16px}.chapter-nav{display:flex;gap:18px;flex-wrap:wrap;padding:24px 4vw;border-bottom:1px solid #a8b0a1}.chapter-nav button{background:none;border:0;text-decoration:underline;cursor:pointer;font-size:calc((14px) * var(--type-scale,1))}.project-extra{margin-top:24px;display:grid;gap:12px}.project-extra dt{font-size:calc((11px) * var(--type-scale,1));letter-spacing:.12em}.project-extra dd{margin:4px 0 0;font-size:calc((14px) * var(--type-scale,1));line-height:1.6}.section-text a,.project-desc a{text-decoration:underline}.public-social{display:block;margin-top:12px}@media(max-width:700px){.gallery.layout-split-left,.gallery.layout-split-right{grid-template-columns:1fr}.gallery.layout-masonry{column-count:1}.gallery.layout-horizontal figure{flex-basis:90%}.photo-viewer{padding:70px 30px}.hotspot-note{min-width:120px;max-width:180px}}@media(prefers-reduced-motion:reduce){.project-panel,.about-panel{transition:none!important}.gallery{scroll-behavior:auto}}

/* Denser gallery presets retain natural image ratios and row-major order. */
.gallery.layout-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery.layout-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.gallery.layout-six{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1100px) and (min-width:701px){
 .gallery.layout-four{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery.layout-five,.gallery.layout-six{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .gallery.layout-four,.gallery.layout-five,.gallery.layout-six{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery:is(.layout-four,.layout-five,.layout-six)>figure{grid-column:auto!important}
}
@media(max-width:480px){
 .gallery.layout-four,.gallery.layout-five,.gallery.layout-six{grid-template-columns:1fr}
}
