/* One continuous gallery surface; controls sit at its edges. */
.exhibit{--paper:#f4f7fa;min-height:100dvh;display:flex;flex-direction:column}
.exhibit .mast{position:relative;z-index:2;flex:none;background:var(--paper);border:0;padding-block:15px}
.exhibit main{position:relative;flex:1;width:100%;margin:0}
.exhibit .intro{position:absolute;z-index:2;top:clamp(28px,4vh,48px);left:5vw;padding:0;pointer-events:none}
.exhibit .version-mark{width:clamp(48px,5vw,70px)}
.exhibit .wordmark h1{font-size:clamp(26px,2.7vw,40px)}
.exhibit .stage:not(.entering){height:calc(100dvh - 69px);min-height:620px;background:transparent}
.exhibit .stage:not(.entering) .screen{height:100%;min-height:0;background:transparent}
.exhibit .gallery-still{background:var(--paper)}
.exhibit .model-loading{background:rgba(244,247,250,.9)}

.exhibit .toolbar{position:absolute;z-index:3;top:clamp(28px,4vh,48px);right:5vw;gap:30px;border:0;padding:0;background:transparent}
.exhibit .presets{gap:20px}
.exhibit .presets button{position:relative;padding:8px 0;min-height:44px;border:0;border-radius:0;background:transparent;font-size:.875rem;color:#647185}
.exhibit .presets button[aria-pressed="true"]{background:transparent;color:var(--ink);font-weight:600}
.exhibit .presets button[aria-pressed="true"]::after{content:"";position:absolute;bottom:2px;left:0;right:0;height:1px;background:currentColor}
.exhibit .presets button:hover{color:var(--ink)}
.exhibit .expand{padding:8px 0;min-height:44px;font-size:.875rem}
.exhibit .stage button:hover{background:transparent;color:#174f7a}
.exhibit .stage-foot{position:absolute;z-index:3;bottom:max(22px,env(safe-area-inset-bottom));left:5vw;right:5vw;gap:24px;padding:0;border:0;background:transparent;align-items:flex-end}
.exhibit #visit-tip{max-width:35em;color:#667586;font-size:.875rem;line-height:1.8}
.exhibit .visit-actions{margin-inline-start:auto}
.exhibit .view-tools{display:flex;align-items:center;gap:4px}
.exhibit #reset{display:grid;place-items:center;width:44px;height:44px;padding:0;color:#4c6277;border-radius:50%}
.exhibit #reset:focus-visible{outline:2px solid #315879;outline-offset:1px}
.exhibit .directory summary{padding:10px 0;min-height:44px;border-radius:0;background:transparent;color:var(--ink);font-size:.9375rem}
.exhibit .directory-panel{right:0;bottom:calc(100% + 14px)}

/* Reading and expanded states retain their own controls and usable space. */
.exhibit .walk-panel{position:absolute;z-index:4;right:5vw;bottom:104px;width:min(440px,90vw);padding:20px 24px;border:0;background:rgba(249,251,253,.96);box-shadow:0 8px 30px #183b6010;flex-wrap:wrap}
.exhibit .walk-buttons{margin-left:auto}
.exhibit .walk-buttons .walk-next{background:#244e77;color:white}
.exhibit .stage.expanded{height:100dvh;min-height:100dvh;display:block;background:var(--paper)}
.exhibit .stage.expanded .toolbar{left:5vw;right:5vw}
.exhibit .stage.entering .screen{background:transparent}

@media(max-width:760px){
  .exhibit .mast{padding:12px 20px}
  .exhibit .intro{top:24px;left:20px;gap:12px}
  .exhibit .version-mark{width:46px}
  .exhibit .wordmark h1{font-size:25px}
  .exhibit .intro p{font-size:.8rem}
  .exhibit .toolbar{left:20px;right:20px;top:104px;gap:20px}
  .exhibit .presets{gap:22px}
  .exhibit .presets button,.exhibit .expand{font-size:.875rem}
  .exhibit .stage:not(.entering){height:calc(100svh - 62px);min-height:640px}
  .exhibit .stage-foot{left:20px;right:20px;bottom:max(18px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px}
  .exhibit #visit-tip{font-size:.875rem;max-width:none;flex-basis:100%}
  .exhibit .visit-actions{margin-left:auto;gap:24px}
  .exhibit .walk-panel{right:20px;bottom:145px;width:calc(100% - 40px);padding:16px 20px}
  .exhibit .stage.expanded{height:100dvh;min-height:640px}
  .exhibit .stage.expanded .toolbar{left:20px;right:20px;top:max(20px,env(safe-area-inset-top))}
}
@media(max-width:380px){
  .exhibit .mast{padding-inline:16px}
  .exhibit .brand-name [lang="en"]{font-size:.57rem}
  .exhibit .mast-label{font-size:.68rem;letter-spacing:0}
  .exhibit .toolbar,.exhibit .intro{left:16px;right:16px}
  .exhibit .presets{gap:16px}
}

.exhibit .stage-foot {flex-wrap:wrap;row-gap:5px}
.web-credits {flex:0 0 100%;text-align:right;color:#526a7b}
.web-credits small {font:400 9px/1.35 system-ui,sans-serif}

@media(max-width:760px),(max-height:520px) and (pointer:coarse){
  .exhibit .mast-label {display:none}
  .exhibit .stage:has(.walk-panel:not([hidden])) :is(.toolbar,#visit-tip,#reset) {display:none}
  .exhibit .stage:has(.walk-panel:not([hidden])) .stage-foot {justify-content:flex-end}
  .exhibit .walk-panel {bottom:max(104px,calc(88px + env(safe-area-inset-bottom)))}
  .exhibit .directory-panel {max-height:65svh;overflow-y:auto}
}

/* The gallery surface owns pinch gestures; reading views keep browser zoom. */
.gallery-ready:not(.opening-active):not(:has(.gallery-map[open])) {touch-action:pan-x pan-y}
.gallery-ready .screen,.gallery-ready model-viewer,.gallery-ready model-viewer .team-hotspot {touch-action:none}
