/* The tour is the page. Navigation stays at the edges; reading is opt-in. */
:root{--ink:#392a22;--dark:#392a22;--paper:#fffdf9;--white:#fffdf9;--line:#ded5c9;--muted:#756555;--accent:#9b743b;--gold:#d8bd87;--header:58px;--nav:82px;--rail:224px}
.topbar{padding-inline:24px;background:#392a22;border-bottom:1px solid #d8bd8738}
.brand{gap:9px}.brand span{font-size:21px}.brand strong{color:#e3cda3}.brand img{width:26px;height:32px}
.header-place{font-size:12px;letter-spacing:1.5px}.header-source{font-size:14px;margin-right:9px}.header-source>span:last-child{display:inline}.language button{font-size:14px}.menu-button{display:inline-flex}
.experience{inset:var(--header-offset) 0 0;background:#392a22}
.scene-story-bar,.overview-dock,.viewer-meta,.look-hint{display:none!important}
.viewer-topline{top:18px;left:auto;right:22px;width:auto}.viewer-topline #backToOverview{display:none}
.glass-button{background:#392a22e8;border:1px solid #d8bd8766;font-size:14px}
.view-tools{top:70px;right:22px;background:#fffdf9;box-shadow:none;border-color:#c9b58f}
.view-tools>button:hover{background:#f2ede6}
.main-dock{inset:auto auto 22px 50%;transform:translateX(-50%);height:auto;width:min(670px,calc(100% - 72px));display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:0;background:transparent;border:0;color:#fffdf9}
.main-dock button{flex-direction:row;justify-content:center;gap:12px;padding:15px 20px;min-height:60px;border:1px solid #e2cfa163;background:#392a22ed;color:#e0d4c5;font-size:15px}
.main-dock button.selected{background:#59432ff5;border-color:#d8bd87;color:#fffdf9}.main-dock button.selected::before{display:none}.main-dock button:hover{background:#654b35}.main-dock svg{color:#d8bd87;width:21px;height:21px}
.journey-rail{position:absolute;z-index:31;top:22px;bottom:110px;left:24px;width:var(--rail);display:flex;flex-direction:column;background:#392a22ed;color:#fffdf9;border:1px solid #d8bd874d;transition:opacity .24s ease;min-height:0}
.rail-heading{padding:17px 17px 9px;font:21px/1.2 var(--serif);color:#efdfc2}
.rail-filters{display:flex;gap:15px;padding:0 15px;border-bottom:1px solid #d8bd872e}.rail-filters button{padding:7px 0;min-height:38px;font-size:14px;color:#cbbca9;border-bottom:1px solid transparent}.rail-filters button[aria-pressed=true]{color:#fffdf9;border-color:#d8bd87}
.journey-list{position:relative;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 10px 12px 16px;scrollbar-width:thin;scrollbar-color:#b39157 #392a22}
.journey-entry{position:relative;display:grid;grid-template-columns:58px 1fr;align-items:center;gap:10px;flex-shrink:0;width:100%;padding:10px 7px 10px 11px;min-height:80px;text-align:left;border-left:1px solid #d8bd875c;line-height:1.25;justify-content:start}
.journey-dot{position:absolute;left:-3px;top:calc(50% - 2px);width:5px;height:5px;border-radius:50%;background:#ad9271}
.journey-entry img{width:58px;height:46px;object-fit:cover;filter:saturate(.8);border:1px solid #d8bd8738}
.journey-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.journey-date{font-size:12px;color:#d8bd87;line-height:1.3}.journey-title{font-size:14px;line-height:1.35;color:#e0d4c5}
.journey-entry:hover{background:#d8bd8712}.journey-entry[aria-current]{border-left-color:#f1d9aa;background:#d8bd871c}.journey-entry[aria-current] .journey-dot{background:#fff2cd;width:7px;height:7px;left:-4px}.journey-entry[aria-current] img{border-color:#d8bd87}.journey-entry[aria-current] .journey-title{color:#fff}
.rail-exhibits{flex-shrink:0;display:flex;flex-direction:column;border-top:1px solid #d8bd8738;padding:5px 11px}.rail-exhibits button{justify-content:flex-start;padding:7px 5px;min-height:40px;font-size:14px;color:#e1d2ba}.rail-exhibits svg{width:18px;height:18px;color:#d8bd87}
.scene-caption{position:absolute;top:52px;left:calc(var(--rail) + 58px);z-index:24;width:min(440px,40vw);color:#fffdf9;text-shadow:0 1px 8px #21170fcc;pointer-events:none;transition:opacity .24s ease}
.caption-period{font-size:12px;letter-spacing:1.3px;color:#f2e3c8;margin-bottom:12px}.scene-caption h1{font-size:clamp(32px,3.6vw,56px);line-height:1.08;letter-spacing:-1.1px;max-width:430px}.scene-caption #captionIntro{font-size:16px;line-height:1.7;margin-top:16px;max-width:315px}.caption-read{pointer-events:auto;min-height:44px;padding:10px 14px;background:#392a22eb;border:1px solid #d8bd8790;color:#fffdf9;font-size:14px;margin-top:18px;text-shadow:none}.caption-read svg{width:18px;height:18px;color:#d8bd87}.story-caption h1{font-size:clamp(27px,2.6vw,40px)}
.source-note{left:auto;right:22px;bottom:106px;max-width:350px}.source-note button{background:#392a22e8;color:#f2e4c8;font-size:12px;padding:8px 12px;border:1px solid #d8bd873d;min-height:35px}
.tour-wrap iframe{height:100%;background:#392a22}.external-tour-link{bottom:2px;left:260px;right:auto;background:#392a22d9;height:auto;max-width:calc(100% - 530px);padding:5px 9px;font-size:12px}.tour-credit{left:auto;right:24px;bottom:106px;background:#392a22ed;color:#f2e4c8;font-size:12px;padding:7px 12px;max-width:340px;border:1px solid #d8bd873d}.tour-loading{background:#392a22}
.tour-loading a{font-size:14px}.tour-loading p{max-width:350px}.tour-open .scene-caption{top:30px;background:#392a22dd;padding:18px 20px;width:min(410px,36vw);text-shadow:none}.tour-open .scene-caption h1{font-size:clamp(28px,3vw,43px)}
.interface-dim .journey-rail{opacity:.16}.interface-dim .scene-caption{opacity:0;pointer-events:none}.journey-rail:hover,.journey-rail:focus-within{opacity:1}.interface-dim .source-note{opacity:.35}.source-note:hover{opacity:1}
.hotspot-dot{background:#fffdf9;color:#493323;border:1px solid #e1d1ad;box-shadow:none;width:40px;height:40px}.hotspot-dot svg{width:18px;height:18px}.hotspot-label{background:#392a22eb;font-size:14px;padding:6px 10px}.hotspot:hover .hotspot-dot,.hotspot.active .hotspot-dot{background:#8b653a;color:#fff}.detail-hotspot .hotspot-dot{background:#fffdf9}.detail-hotspot .hotspot-label{font-size:14px}
dialog{background:#fffdf9;box-shadow:0 8px 35px #1d130f24;border-color:#c9bda8}dialog::backdrop{background:#21170faa;backdrop-filter:none}.story-panel,.scene-detail{position:fixed;inset:calc(var(--header-offset) + 20px) 22px auto auto;margin:0;width:min(430px,38vw);max-width:calc(100vw - 48px);max-height:calc(100dvh - var(--header-offset) - 126px);border-radius:0;z-index:120;overflow:auto;animation:none}.story-panel{height:auto}.story-panel-top{padding:12px 19px;background:#392a22;color:#e8d9bd;border:0}.story-category{color:#e8d9bd;font-size:14px}.story-art,.story-navigation{display:none!important}.story-content{padding:23px 25px 28px}.story-content h2{font-size:31px;letter-spacing:-.5px}.story-body p,.story-deep p{color:#4f4035}.scene-detail{padding:19px 23px 25px}.scene-detail h3{font-size:28px}.scene-detail>p{line-height:1.75}.scene-detail .eyebrow{font-size:12px}.scene-detail>a{font-size:14px}.primary{background:#493323;border-color:#493323}.primary:hover{background:#62462f}.provenance-box,.story-interpretation{background:#f1ece4;border-color:#a38251}.story-interpretation p{color:#4f4035}.about-content a,.source-details a,.additional-sources a{color:#805b2e}.story-meta{color:#805b2e}.object-copy,.construction-copy,.phase-controls,.collections-page{background:#fffdf9}.object-copy>p,.phase-description>p,.construction-intro{color:#675447}.phase-year,.phase-tabs button.selected{color:#805b2e}.phase-tabs button.selected{border-color:#a38251}.phase-tabs button.selected span{color:#805b2e}.object-detail-text{background:#f1ece4}.object-insights>button.selected{background:#493323;color:#fff}.construction-stage,.object-stage{background:#eae4da}.object-toolbar,.model-toolbar,.model-view-toggle{background:#fffdf9e8;border-color:#b7a88e}
.orientation-gate{position:fixed;inset:0;z-index:2000;background:#392a22;color:#fffdf9;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:36px;gap:24px}.orientation-gate svg{width:100px;height:75px;color:#d8bd87}.orientation-gate h1{font-size:36px;max-width:360px;line-height:1.15}.orientation-gate p{font-size:16px;line-height:1.75;max-width:350px;color:#e0d4c5}.orientation-blocked #appShell{display:none}.immersive .journey-rail,.immersive .scene-caption{display:none!important}.immersive .source-note{display:none}
@media(max-width:1100px){:root{--rail:188px}.topbar{padding-inline:18px}.scene-caption{left:calc(var(--rail) + 42px);width:37vw}.scene-caption h1{font-size:38px}.journey-rail{left:16px}.journey-entry{grid-template-columns:48px 1fr;gap:7px;padding-left:9px}.journey-entry img{width:48px;height:42px}.journey-title{font-size:14px}.tour-open .scene-caption{width:35vw}.header-place{display:none}}
@media(orientation:landscape) and (max-width:1024px){
 :root{--header:48px;--nav:70px;--rail:104px}.topbar{padding-inline:15px;gap:10px}.brand span{font-size:18px}.brand img{height:28px;width:22px}.header-source{margin-right:0;padding:6px}.header-source>span:last-child{display:none}.language button{min-width:34px;padding:6px;min-height:40px}.header-actions{gap:0}.header-place{display:none}.main-dock{bottom:12px;width:min(490px,calc(100% - 180px));left:calc(50% + 35px);gap:6px}.main-dock button{min-height:46px;padding:9px 8px;font-size:14px;gap:7px}.main-dock svg{width:17px;height:17px}.journey-rail{left:12px;top:12px;bottom:76px;width:104px}.rail-heading{font:14px/1.25 var(--sans);padding:10px 7px;text-align:center}.rail-filters{display:none}.journey-list{padding:2px 6px 6px 11px}.journey-entry{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 5px 8px 9px;min-height:70px}.journey-entry img{width:61px;height:36px}.journey-copy{align-items:center;gap:0}.journey-title{display:none}.journey-date{font-size:12px;text-align:center}.rail-exhibits{flex-direction:row;padding:2px 5px;gap:0}.rail-exhibits button{flex:1;justify-content:center;min-height:40px;padding:6px}.rail-exhibits button>span:last-child{display:none}.rail-exhibits svg{height:18px;width:18px}.scene-caption{left:140px;top:24px;width:34vw}.scene-caption h1{font-size:28px;letter-spacing:-.4px}.caption-period{font-size:12px;margin-bottom:9px;letter-spacing:.5px}.scene-caption #captionIntro{font-size:14px;line-height:1.5;margin-top:10px}.tour-open .scene-caption{left:136px;top:12px;width:35vw;padding:13px 15px}.tour-open .scene-caption h1{font-size:26px}.tour-open .scene-caption #captionIntro{display:none}.story-caption h1{font-size:25px}.caption-read{margin-top:11px;min-height:40px;padding:7px 10px}.viewer-topline{right:12px;top:12px}.view-tools{right:12px;top:62px;max-height:calc(100% - 78px)}.source-note,.tour-credit{right:12px;bottom:75px;max-width:245px}.source-note button,.tour-credit{font-size:12px}.external-tour-link{left:128px;bottom:1px;max-width:calc(100% - 400px);font-size:12px}.story-panel,.scene-detail{top:calc(var(--header-offset) + 10px);right:12px;width:min(355px,45vw);max-height:calc(100dvh - var(--header-offset) - 84px);max-width:calc(100vw - 150px)}.scene-detail{padding:14px 18px 19px}.scene-detail h3{font-size:25px}.scene-detail>p{font-size:16px;line-height:1.6;margin-top:12px}.story-content{padding:18px 20px}.story-content h2{font-size:27px}.story-body p{font-size:16px;line-height:1.65}.scene-detail .detail-read{margin-top:15px;min-height:44px}.construction-page{display:grid;grid-template-columns:38% 62%;grid-template-rows:1fr auto;overflow:hidden}.construction-stage{grid-column:2;grid-row:1/3;height:100%;min-height:0}.construction-copy{grid-column:1;grid-row:1;min-height:0;padding:18px;overflow:auto}.construction-copy h1{font-size:27px}.construction-copy .construction-intro{display:none}.construction-copy>.eyebrow{display:none}.phase-description{display:block;margin-top:15px;padding-top:10px}.phase-year{font-size:30px}.phase-description h2{font-size:22px;margin-top:6px}.phase-description>p{font-size:16px}.phase-controls{grid-column:1;grid-row:2;padding:6px 12px 8px}.phase-instruction>span{display:none}.phase-tabs strong{font-size:21px}.phase-tabs span{font-size:12px}.phase-tabs button{min-height:52px;padding-top:8px}.model-view-toggle{top:12px;left:12px}.model-toolbar{top:12px;right:12px}.model-caption{font-size:12px;max-width:260px}.object-page{display:grid;grid-template-columns:52% 48%;overflow:hidden}.object-stage{height:100%;min-height:0}.object-copy{padding:23px;overflow:auto;height:100%;max-width:none}.object-copy h1{font-size:29px}.object-toolbar{bottom:14px}.object-back{left:12px;top:12px}
}

@media(prefers-reduced-motion:reduce){.journey-rail,.scene-caption{transition:none}}
.story-panel[open]{display:flex;flex-direction:column;overflow:hidden}
.story-panel-top{flex-shrink:0}
.story-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a38251 #fffdf9}
.story-illustration{margin:0;flex-shrink:0;background:#e9e1d3;aspect-ratio:3/2}
.story-illustration img{display:block;width:100%;height:100%;object-fit:cover}
.story-deep .selected-detail{border-left:2px solid #9b743b;padding-left:14px}

.recorded-fullscreen{position:absolute;top:18px;right:22px;z-index:40}
@media(orientation:landscape) and (max-width:1024px){.recorded-fullscreen{top:12px;right:12px}.recorded-fullscreen>span:last-child{display:none}}
/* Keep landscape controls clear of phone notches and the home indicator. */
@media(orientation:landscape) and (max-width:1024px){
 .topbar{padding-left:max(15px,env(safe-area-inset-left,0px));padding-right:max(15px,env(safe-area-inset-right,0px))}
 .journey-rail{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .scene-caption{left:calc(140px + env(safe-area-inset-left,0px))}.tour-open .scene-caption{left:calc(136px + env(safe-area-inset-left,0px))}
 .main-dock{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 .recorded-fullscreen,.viewer-topline{right:calc(12px + env(safe-area-inset-right,0px))}
 .source-note,.tour-credit{right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(75px + env(safe-area-inset-bottom,0px))}
 .story-panel,.scene-detail{right:calc(12px + env(safe-area-inset-right,0px));max-height:calc(100dvh - var(--header-offset) - 84px - env(safe-area-inset-bottom,0px))}
 .story-panel-top{padding:4px 12px;min-height:44px}
 .story-panel-top .icon-button{width:36px;height:36px;min-height:36px}
 .story-illustration{aspect-ratio:auto;height:clamp(90px,24dvh,120px)}
 .story-illustration img{object-position:50% 25%}
 .story-content{padding-top:13px}
}

/* Landscape phones: keep the space visible and the reading panel compact. */
@media(orientation:landscape) and (max-width:1024px){
 :root{--header:40px;--nav:56px;--rail:72px}
 .topbar{padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));gap:8px}
 .brand{gap:6px}.brand span{font-size:15px}.brand img{width:19px;height:24px}
 .header-actions .icon-button,.header-source{width:36px;min-width:36px;min-height:36px;height:36px;padding:8px}
 .language button{font-size:12px;min-width:32px;min-height:36px;padding:5px}
 .journey-rail{left:calc(8px + env(safe-area-inset-left,0px));top:8px;bottom:calc(58px + env(safe-area-inset-bottom,0px));width:72px}
 .rail-heading{font:11px/1.25 var(--sans);padding:8px 3px 6px}
 .journey-list{padding:2px 4px 5px 8px}
 .journey-entry{min-height:58px;padding:6px 2px 6px 7px;gap:4px}
 .journey-entry img{width:44px;height:28px}
 .journey-date{font-size:10px;line-height:1.15;white-space:nowrap}
 .rail-date-long{display:none}.rail-date-short{display:inline}
 .rail-exhibits{padding:2px 0}.rail-exhibits button{min-height:34px;padding:5px}.rail-exhibits svg{width:16px;height:16px}
 .main-dock{bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(340px,calc(100% - 112px));left:calc(50% + 24px);gap:5px}
 .main-dock button{min-height:38px;padding:7px 8px;gap:6px;font-size:12px}
 .main-dock svg{width:15px;height:15px}
 .scene-caption,.tour-open .scene-caption{left:calc(96px + env(safe-area-inset-left,0px));top:14px;width:min(250px,40vw);padding:0;background:transparent}
 .scene-caption h1,.tour-open .scene-caption h1,.story-caption h1{font-size:22px;line-height:1.1;letter-spacing:-.3px}
 .caption-period{font-size:9px;letter-spacing:.5px;margin-bottom:7px}
 .scene-caption #captionIntro{display:none}
 .caption-read{min-height:36px;margin-top:10px;padding:6px 9px;font-size:12px}.caption-read svg{width:15px;height:15px}
 .viewer-topline{top:8px;right:calc(8px + env(safe-area-inset-right,0px))}
 #viewMenuToggle{width:36px;height:36px;min-height:36px;padding:8px}
 #viewMenuToggle>span:last-child{display:none}
 .view-tools{top:50px;right:8px;max-height:calc(100% - 60px)}
 .hotspot-dot{width:30px;height:30px}.hotspot-dot svg{width:15px;height:15px}
 .hotspot-label{display:none}
 .hotspot:focus-visible .hotspot-label{display:block;font-size:12px}
 .story-open .scene-caption,.story-open .hotspot-label{display:none}
 .story-panel{top:calc(var(--header-offset) + 8px);right:calc(8px + env(safe-area-inset-right,0px));width:min(330px,46vw);max-width:calc(100vw - 100px);max-height:calc(100dvh - var(--header-offset) - 64px - env(safe-area-inset-bottom,0px))}
 .story-panel-top{position:absolute;top:4px;right:4px;z-index:2;background:transparent;padding:0;min-height:36px}
 .story-category{display:none}
 .story-panel-top .icon-button{width:36px;height:36px;min-height:36px;background:#392a22ed;color:#fffdf9}
 .story-illustration{height:clamp(88px,24dvh,120px)}
 .story-content{padding:13px 17px 20px}
 .story-meta{font-size:10px;margin-bottom:9px}
 .story-content h2{font-size:23px;line-height:1.15;margin-bottom:15px}
 .story-body p,.story-deep p{font-size:14px;line-height:1.65}
 .story-deep h3{font-size:18px}
 .model-toolbar .icon-button,.object-toolbar .icon-button{width:36px;height:36px;min-height:36px}
}
.rail-date-short{display:none}
@media(orientation:landscape) and (max-width:1024px){.rail-date-short{display:inline}}
/* Markers become interactive only after the new image and camera are ready. */
#panorama[aria-busy="true"] + #hotspots{display:none}
