:root{color-scheme:light;--ink:#14273c;--paper:#f5f4ef;--gold:#90734d;--rule:#c7c8c0;--focus:#0582a6;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button{font:inherit;cursor:pointer}
button:focus-visible,.window:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.gallery{width:min(100%,118rem);margin:auto;padding:0 clamp(12px,2.4vw,44px) 20px}
.masthead,.rail,.viewer-bar,.identity,.choices,.zoom-tools{display:flex;align-items:center}
.masthead,.rail{justify-content:space-between;gap:12px}
.masthead{min-height:76px;padding:10px 0}
.identity{gap:13px}
.identity img{height:38px;width:38px;object-fit:contain}
.location{font-size:.73rem;font-weight:650;letter-spacing:.15em;text-transform:uppercase;margin:0 0 2px;color:#4c6071}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal;margin:0;line-height:1.07}
h1{font-size:clamp(1.55rem,2.4vw,2.2rem)}
h2{font-size:1.23rem}
.choices{padding:3px;gap:2px;border:1px solid var(--rule);border-radius:5px}
.choices button,.inspect,.viewer-bar button{min-height:42px;padding:.5rem .9rem;border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;font-weight:580;font-size:.93rem}
.choices button[aria-pressed="true"]{background:var(--ink);color:white}
.choices button[aria-pressed="false"]:hover{background:#e3e5df}
.room{margin:0}
.photo{background:#16212a;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid #36434e;width:100%;height:calc(100vh - 155px);height:calc(100svh - 155px);max-height:74vw;min-height:230px;cursor:zoom-in}
.photo img{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
.rail{padding:12px 0;border-bottom:1px solid var(--rule)}
.inspect{background:var(--ink);color:white;border:1px solid var(--ink);padding-inline:1rem}
.inspect:hover,.choices button[aria-pressed="true"]:hover{background:#254359}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
dialog{position:fixed;inset:0;margin:0;border:0;padding:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;background:#101922;color:#f1f4f5}
dialog::backdrop{background:#101922}
.viewer-inner{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}
.viewer-bar{gap:.6rem;padding:.45rem clamp(.5rem,1.8vw,1.4rem);background:#162534;border-bottom:1px solid #425168;flex-wrap:wrap}
.viewer-bar h2{margin-right:auto}
.viewer-bar .choices{border-color:#5a6c7e}
.viewer-bar .choices button[aria-pressed="true"]{background:#eaf0f3;color:#14273c}
.viewer-bar .choices button[aria-pressed="false"]:hover,.viewer-bar button:hover{background:#30485d}
.viewer-bar .zoom-tools button,.viewer-bar #close-viewer{border:1px solid #5b6b77}
.viewer-bar .zoom-tools button{min-width:40px;padding:.3rem .6rem}
.viewer-bar button:disabled{opacity:.42;cursor:default}
.zoom-tools{gap:.2rem}
.zoom-tools output{min-width:3.4em;text-align:center;font-variant-numeric:tabular-nums}
.window{position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:none}
.window[data-zoomed="true"]{cursor:grab}
.window[data-zoomed="true"]:active{cursor:grabbing}
.wm-pan-surface{width:100%;height:100%;display:grid;place-items:center}
.wm-pan-surface img{display:block;object-fit:contain;user-select:none;pointer-events:none;max-width:none;max-height:none}
body:has(dialog[open]){overflow:hidden}
@media(max-width:650px){
  .masthead{min-height:68px}
  .identity{gap:.5rem}
  .identity img{width:29px;height:29px}
  .photo{height:auto;min-height:0;aspect-ratio:8/5;max-height:none}
  .photo[data-view="left"],.photo[data-view="right"]{aspect-ratio:3/1}
  .rail{align-items:stretch;flex-direction:column}
  .views{align-self:stretch}
  .views button{flex:1}
  .light button{min-height:38px;padding:.4rem .65rem}
  .viewer-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem}
  .viewer-bar h2{font-size:1.07rem}
  .viewer-bar .light{justify-self:end}
  .viewer-bar #close-viewer{justify-self:end}
}
@media(max-height:520px) and (orientation:landscape){
  .gallery{padding:0 8px 4px}
  .masthead{min-height:50px;padding:3px 0}
  .identity img{width:28px;height:28px}
  .location{display:none}
  .photo,.photo[data-view]{height:calc(100svh - 108px);max-height:none;min-height:90px;aspect-ratio:auto}
  .rail{flex-direction:row;padding:3px 0}
}
