.walkable-gallery{--gallery-perspective:clamp(280px, 55vw, 780px);color:var(--foreground)}.walkable-gallery button{cursor:pointer}.walkable-gallery button:focus-visible,.walkable-gallery a:focus-visible,.gallery-collection summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.gallery-frame{background:var(--card)}.gallery-toolbar{background:var(--muted);border-bottom:1px solid var(--border);font-family:var(--font-mono), monospace;justify-content:space-between;align-items:center;gap:10px;padding:7px 9px;display:flex}.gallery-room-name{letter-spacing:.08em;white-space:nowrap;font-size:11px;font-weight:700}.gallery-room-name span{color:var(--muted-foreground);margin:0 6px}.gallery-toolbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.gallery-toolbar .sprite-button{min-height:32px;padding:4px 10px;font-size:11px}.gallery-viewport-wrap{isolation:isolate;background:#d6d3c9;position:relative}.gallery-stage{height:clamp(470px,68vh,850px);perspective:var(--gallery-perspective);perspective-origin:50%;background:linear-gradient(#c9dce4 0%,#e6e4d8 67%,#b8b19d 100%);position:relative;overflow:hidden}.gallery-stage[data-active=true]{cursor:grab;touch-action:none}.gallery-stage[data-active=true]:active{cursor:grabbing}.gallery-stage:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}.gallery-world{transform-style:preserve-3d;position:absolute;top:50%;left:50%}.gallery-location{background:var(--card);color:var(--foreground);pointer-events:none;align-items:center;gap:12px;padding:8px 12px;display:flex;position:absolute;top:16px;left:16px}.gallery-location-number{color:var(--muted-foreground);font-family:Georgia,serif;font-size:28px;line-height:1}.gallery-location strong{font:700 10px var(--font-mono), monospace;letter-spacing:.14em;display:block}.gallery-location div>span{font:10px var(--font-mono), monospace;color:var(--muted-foreground);margin-top:4px;display:block}.gallery-map{background:var(--card);border:1px solid var(--border);pointer-events:none;width:64px;height:130px;padding:6px;position:absolute;top:16px;right:16px}.gallery-map-room{fill:var(--muted);stroke:var(--muted-foreground);stroke-width:35px}.gallery-map-column{fill:var(--muted-foreground)}.gallery-map-player{fill:var(--primary);stroke:var(--foreground);stroke-width:16px}.gallery-view-caption{color:#29261f;text-align:center;background:#f7f4ecef;border:1px solid #aaa18d;flex-direction:column;align-items:center;gap:5px;max-width:min(600px,65%);padding:12px 22px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 2px 10px #3830221a}.gallery-view-caption>span{font:9px var(--font-mono), monospace;letter-spacing:.15em}.gallery-view-caption>strong{font-family:var(--font-mono), monospace;font-size:13px;line-height:1.3}.gallery-statusbar{background:var(--muted);border-top:1px solid var(--border);font:10px var(--font-mono), monospace;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;display:flex}.gallery-statusbar p{color:var(--muted-foreground);margin:0}.gallery-tour-controls{align-items:center;gap:8px;display:flex}.gallery-tour-controls>span{font-size:10px}.gallery-tour-controls button{min-width:36px;min-height:30px;font-size:17px}.gallery-touch-hint{display:none}.gallery-movement{touch-action:none;grid-template-rows:repeat(3,38px);grid-template-columns:repeat(3,38px);gap:3px;display:grid;position:absolute;bottom:16px;left:16px}.gallery-movement button{color:var(--foreground);background:var(--card);touch-action:none;-webkit-user-select:none;user-select:none;font-size:22px}.gallery-movement [data-control=KeyW]{grid-area:1/2}.gallery-movement [data-control=KeyA]{grid-area:2/1}.gallery-movement [data-control=KeyS]{grid-area:2/2}.gallery-movement [data-control=KeyD]{grid-area:2/3}.gallery-movement [data-control=KeyQ]{grid-area:3/1}.gallery-movement [data-control=KeyE]{grid-area:3/3}.gallery-collection{background:var(--card);font-family:var(--font-mono), monospace;margin-top:16px}.gallery-collection summary{cursor:pointer;padding:14px 16px;font-size:12px}.gallery-collection summary>span{float:right;color:var(--muted-foreground)}.gallery-collection ol{border-top:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;list-style:none;display:grid}.gallery-collection li{border-bottom:1px solid var(--border);align-items:center;gap:12px;min-width:0;padding:12px;display:flex}.gallery-list-number{color:var(--muted-foreground);font-size:11px}.gallery-collection li>div{flex:1;min-width:0}.gallery-collection li strong{font-size:11px;display:block}.gallery-collection li div>span{color:var(--muted-foreground);margin-top:4px;font-size:10px;display:block}.gallery-collection li .sprite-button{flex-shrink:0;padding:6px 9px;font-size:10px}.gallery-frame:fullscreen,.gallery-frame.gallery-expanded{flex-direction:column;width:100%;height:100dvh;display:flex}.gallery-frame.gallery-expanded{z-index:60;position:fixed;inset:0}.gallery-frame:fullscreen .gallery-viewport-wrap,.gallery-frame.gallery-expanded .gallery-viewport-wrap{flex:1;min-height:0}.gallery-frame:fullscreen .gallery-stage,.gallery-frame.gallery-expanded .gallery-stage{height:100%;min-height:0}@media (pointer:coarse){.gallery-desktop-hint,.gallery-mouse-look{display:none}.gallery-touch-hint{display:inline}.gallery-movement{grid-template-rows:repeat(3,44px);grid-template-columns:repeat(3,44px)}}@media (max-width:700px){.gallery-toolbar{flex-direction:column;align-items:flex-start}.gallery-toolbar-actions{justify-content:flex-start;width:100%}.gallery-stage{height:60svh;min-height:460px}.gallery-location{padding:6px 9px;top:10px;left:10px}.gallery-map{width:50px;height:105px;top:10px;right:10px}.gallery-view-caption{width:max-content;max-width:calc(100% - 32px);padding:10px 14px;bottom:16px}.gallery-movement+.gallery-view-caption{max-width:calc(100% - 176px);padding:9px;left:auto;right:12px;transform:none}.gallery-view-caption>strong{font-size:11px}.gallery-statusbar{padding:9px}.gallery-statusbar p{line-height:1.5}.gallery-tour-controls{justify-content:space-between;width:100%}.gallery-tour-controls button{min-width:44px;min-height:40px}.gallery-collection ol{grid-template-columns:1fr}.gallery-collection li{gap:8px}}@media (prefers-reduced-motion:reduce){.walkable-gallery *{scroll-behavior:auto;transition:none;animation:none}}.gallery-reticle{color:#fff;text-shadow:0 1px 3px #000;pointer-events:none;font:20px monospace;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.gallery-directory{font:11px var(--font-mono), monospace;border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:flex-end;gap:8px 18px;padding:10px 12px;display:flex}.gallery-directory>label{flex-direction:column;flex:230px;gap:5px;max-width:430px;display:flex}.gallery-directory>label>span{color:var(--muted-foreground);font-size:10px}.gallery-directory select{color:var(--foreground);background:var(--background);cursor:pointer;width:100%;min-height:34px;padding:7px 24px 7px 9px}.gallery-directory select:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.gallery-directory>p{color:var(--muted-foreground);flex-basis:100%;font-size:10px;line-height:1.5}.gallery-room-picker{align-items:center;gap:5px;display:flex}.gallery-room-picker .sprite-button{width:34px;height:34px}.gallery-room-picker .sprite-button:disabled{opacity:.4;cursor:default}.gallery-watch-button{font-weight:700}.gallery-cinema-veil{opacity:0;pointer-events:none;z-index:3;background:#080a0b;position:absolute;inset:0}.gallery-cinema-progress{color:var(--foreground);align-items:center;gap:12px;font-size:10px;display:flex}.gallery-cinema-progress progress{width:100px;height:5px;accent-color:var(--primary)}.gallery-frame[data-cinema=playing] .gallery-map,.gallery-frame[data-cinema=paused] .gallery-map{visibility:hidden}.gallery-frame[data-cinema=playing] .gallery-location,.gallery-frame[data-cinema=paused] .gallery-location{opacity:.85}@media (max-width:700px){.gallery-directory{gap:8px;padding:8px}.gallery-directory>label{flex-basis:100%;max-width:none}.gallery-directory>p{max-height:3em;overflow-y:auto}.gallery-cinema-progress{justify-content:space-between;width:100%}}@media (max-height:550px){.gallery-frame:fullscreen .gallery-directory,.gallery-frame.gallery-expanded .gallery-directory{flex-wrap:nowrap;align-items:center;padding:4px 8px}.gallery-frame:fullscreen .gallery-directory>label,.gallery-frame.gallery-expanded .gallery-directory>label{flex-direction:row;align-items:center;max-width:55%}.gallery-frame:fullscreen .gallery-directory>label>span,.gallery-frame.gallery-expanded .gallery-directory>label>span,.gallery-frame:fullscreen .gallery-directory>p,.gallery-frame.gallery-expanded .gallery-directory>p{display:none}.gallery-frame:fullscreen .gallery-toolbar,.gallery-frame.gallery-expanded .gallery-toolbar{flex-direction:row;align-items:center}.gallery-frame:fullscreen .gallery-room-name,.gallery-frame.gallery-expanded .gallery-room-name{display:none}}.gallery-frame{scroll-margin-top:90px}@media (max-width:700px){.gallery-room-name,.gallery-directory>p{display:none}.gallery-directory>label>span{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.gallery-toolbar .sprite-button{padding-inline:8px}}.gallery-viewport-wrap>.gallery-artwork-panel{z-index:4;width:320px;max-width:calc(100% - 32px);position:absolute;top:16px;right:16px}.gallery-frame[data-artwork-open=true] .gallery-map{display:none}@media (max-width:700px){.gallery-viewport-wrap>.gallery-artwork-panel{width:auto;max-width:none;top:12px;left:12px;right:12px}.gallery-frame[data-artwork-open=true] .gallery-location{display:none}}@media (max-height:550px) and (min-width:560px){.gallery-viewport-wrap>.gallery-artwork-panel{width:min(280px,44%);left:auto;right:12px}}
.gallery-frame[data-material]{--gallery-stone-tint:#eee0bb24;--gallery-inlay:#344b40;--gallery-gold:#c9b987}.gallery-frame[data-material=travertine]{--gallery-stone-tint:#bb86444d;--gallery-inlay:#78573b;--gallery-gold:#d7bd88}.gallery-frame[data-material=obsidian]{--gallery-stone-tint:#16252bd9;--gallery-inlay:#243d49;--gallery-gold:#aaa99b}.gallery-frame[data-material=verdigris]{--gallery-stone-tint:#b1c5b744;--gallery-inlay:#27594e;--gallery-gold:#d0c595}.gallery-frame[data-material=porphyry]{--gallery-stone-tint:#682f3caf;--gallery-inlay:#692f40;--gallery-gold:#ccaf78}.gallery-frame[data-material=graphite]{--gallery-stone-tint:#343b42c9;--gallery-inlay:#373d43;--gallery-gold:#c3c0b5}.gallery-frame[data-material=terracotta]{--gallery-stone-tint:#b9653e88;--gallery-inlay:#864331;--gallery-gold:#dbc092}.gallery-frame:not([data-material=marble]) :is(.roman-gallery-wall,.roman-gallery-end-wall){background-image:linear-gradient(var(--gallery-stone-tint), var(--gallery-stone-tint)), url(/gallery/marble/side.png);background-size:auto, calc(420px * var(--roman-raster-scale,1)) calc(420px * var(--roman-raster-scale,1))}.gallery-frame:not([data-material=marble]) .roman-gallery-dado{background:repeating-linear-gradient(90deg, transparent 0 calc(175px * var(--roman-raster-scale,1)), #fff2 calc(175px * var(--roman-raster-scale,1)) calc(177px * var(--roman-raster-scale,1))), var(--gallery-inlay);border-color:var(--gallery-gold)}.gallery-frame:not([data-material=marble]) .roman-gallery-nave-inlay{border-color:var(--gallery-inlay);outline-color:var(--gallery-gold);background-image:repeating-linear-gradient(0deg, transparent 0 calc(580px * var(--roman-raster-scale,1)), var(--gallery-inlay) calc(580px * var(--roman-raster-scale,1)) calc(600px * var(--roman-raster-scale,1))), url(/gallery/marble/top.png);background-size:auto, calc(500px * var(--roman-raster-scale,1)) calc(500px * var(--roman-raster-scale,1))}.gallery-frame:not([data-material=marble]) .roman-gallery-roundel{outline-color:var(--gallery-inlay);border-color:var(--gallery-gold);background:radial-gradient(circle, var(--gallery-gold) 0 10%, transparent 10% 40%, var(--gallery-inlay) 40% 44%, #e5dec4 44% 59%, var(--gallery-inlay) 59% 62%, transparent 62%), repeating-conic-gradient(from 22.5deg, var(--gallery-inlay) 0deg 22.5deg, #d3c9a8 22.5deg 45deg)}.gallery-frame[data-material=graphite] .roman-gallery-roundel{background:repeating-linear-gradient(45deg, var(--gallery-inlay) 0 12%, #d3c9a8 12% 24%);border-radius:0}.gallery-frame[data-material=travertine] .roman-gallery-roundel{transform-origin:50%;border-radius:0}.gallery-frame[data-material=obsidian] .gallery-stage{background:linear-gradient(#6b8596,#b8c4cb 65%,#4a4e50)}.gallery-frame[data-material=terracotta] .gallery-stage{background:linear-gradient(#aacdda,#f5e7cc 85%)}