.tour-modes{display:flex;gap:7px;padding:0 16px 8px;border-bottom:1px solid var(--line);margin-bottom:6px}
.tour-modes button{min-height:42px;padding:7px 12px}
.photo-window{position:relative;margin:0 auto;width:min(100%,calc(565px * var(--frame-ratio,1.7778)));aspect-ratio:var(--frame-ratio,1.7778);overflow:hidden;background:#152838}
.photo-window[hidden],#scene[data-display=photo]>canvas,#scene[data-display=photo]>#fallback{display:none}
#scene[data-display=photo]{height:auto;min-height:0;background:#111f2c}
.photo-window img{position:absolute;width:100%;height:200%;left:0;top:0;display:block}
.photo-window:not([data-state=ready]) img{visibility:hidden}
#scene[data-lighting=night] .photo-window img{top:-100%}
#photo-status{position:absolute;inset:0;display:grid;place-items:center;padding:18px;color:#fff;font-size:14px;text-align:center}
#photo-status[hidden]{display:none}
#mode{z-index:2}
.photo-window .depth-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y}
.photo-window .depth-canvas[hidden]{display:none!important}
#depth-controls[hidden]{display:none}
.photo-window.is-depth{touch-action:pan-y;cursor:grab}
.photo-window.is-depth:active{cursor:grabbing}
.photo-window:focus-visible{outline:3px solid #169bd7;outline-offset:-3px}
#depth-controls{display:flex;flex-shrink:0;gap:5px}
#depth-controls button{min-width:40px;min-height:40px;padding:5px 8px}
@media(max-width:610px){
 .tour-modes{padding:0 8px 8px}.tour-modes button{flex:1;font-size:12px}
 .photo-window{width:100%;aspect-ratio:1.7}
 .photo-window img{width:max(100%,calc(100% * var(--frame-ratio,1.7778) / 1.7));left:auto;right:0}
 .photo-window[data-focus=left] img{left:0;right:auto}
 /* Keep the full field of view visible; only the installation illustration crops on phones. */
 .photo-window:is([data-shot=viewpoint],[data-render=depth]){aspect-ratio:var(--frame-ratio,3.5537)}
 .photo-window:is([data-shot=viewpoint],[data-render=depth]) img{width:100%;left:0;right:auto}
 #scene[data-display=photo][data-photo-angle=viewpoint]{display:flex;flex-direction:column}
 #scene[data-display=photo][data-photo-angle=viewpoint] :is(.scene-disclaimer,#mode){position:static;align-self:flex-start;margin:5px 8px}
 #scene[data-display=photo][data-photo-angle=viewpoint] .scene-disclaimer{order:-1}
 #scene[data-display=photo]:has(.photo-window[data-render=depth]){display:flex;flex-direction:column}
 #scene[data-display=photo]:has(.photo-window[data-render=depth]) :is(.scene-disclaimer,#mode){position:static;align-self:flex-start;margin:5px 8px}
 #scene[data-display=photo]:has(.photo-window[data-render=depth]) .scene-disclaimer{order:-1}
}
