:root{font-family:system-ui,sans-serif;color:#19342e;background:#f4f7f4}
*{box-sizing:border-box}
body{margin:0}
main{max-width:1600px;margin:auto;padding:clamp(14px,3vw,42px)}
.masthead{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:20px}
h1,h2{font-family:Georgia,serif;font-weight:500;margin:0}
h1{font-size:clamp(2.2rem,5vw,4rem);letter-spacing:-.05em}
.brand{color:#356854;font-size:.9rem}
nav,.map-tools,.viewer-tools{display:flex;gap:8px;flex-wrap:wrap}
button{border:1px solid #a6bcb0;border-radius:9px;background:#fff;color:#19342e;padding:8px 12px;font:inherit;cursor:pointer;min-height:40px}
button[aria-pressed=true]{background:#245444;color:#fff}
button:disabled{opacity:.6;cursor:default}
button:focus-visible{outline:3px solid #bc6228;outline-offset:3px}
.layout{display:flex;gap:16px;align-items:flex-start}
.map-frame{position:relative;overflow:hidden;border-radius:18px;flex:1;min-width:0;height:clamp(430px,73vh,850px);background:#dce8df;border:1px solid #b8c9bf}
#map{position:absolute;inset:0}
.map-tools{position:absolute;top:12px;left:12px;right:50px}
#map-status{position:absolute;left:12px;bottom:24px;background:#fff;padding:8px;border-radius:6px;margin:0;max-width:85%}
#gallery{flex:0 0 min(32%,370px);border:1px solid #cbd8cf;border-radius:18px;background:white;padding:16px}
.gallery-heading{display:flex;align-items:start;justify-content:space-between;gap:8px}
.gallery-heading p{margin:5px 0 8px}
figure{margin:14px 0}
figure button.photo{width:100%;padding:0;border:0;overflow:hidden;display:block}
figure img{width:100%;display:block}
figcaption{margin:8px 0;color:#37594b}
button.marker{min-height:0;padding:0;width:38px;height:38px;border-radius:50%;background:#20604e;color:white;border:2px solid white;text-shadow:0 1px 3px #133c32;box-shadow:0 2px 8px #0006;font-size:22px;line-height:1}
button.marker[aria-pressed=true]{background:#9d4628}
.viewpoint{background:#ffcd74;border:2px solid #513e22;width:17px;height:17px;border-radius:50%}
dialog{margin:0;width:100%;height:100%;max-width:none;max-height:none;background:#111;color:white;border:0;padding:12px}
dialog[open]{display:flex;flex-direction:column;gap:10px}
.viewer-tools{align-items:center}
#photo-count{margin-right:auto}
#image-scroll{flex:1;min-height:0;overflow:auto;display:grid;place-items:center}
#full-photo{display:block;max-width:100%;max-height:100%;object-fit:contain}
#image-scroll.zoomed{display:block}
.zoomed #full-photo{width:max(170%,1500px);max-width:none;max-height:none}
@media(max-width:760px){.layout{display:block}.map-frame{height:clamp(340px,57vh,600px)}#gallery{margin-top:12px}}
