/* A quiet museum: the photographs supply the colour. */
@font-face { font-family: 'Gallery Serif'; src: url('fonts/gallery-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+3000-303F,U+3400-9FFF; }
:root {
  color-scheme: light;
  --paper: #f3efe6; --ink: #343d34; --muted: #7b8174; --gold: #a18b61;
  --line: rgba(92, 103, 82, .2); --glass: rgba(248, 245, 237, .7);
  --serif: 'Gallery Serif', 'Iowan Old Style', 'Baskerville', 'Palatino Linotype', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #242e30; --ink: #eee9db; --muted: #a8b1a9; --gold: #d3bd8b;
  --line: rgba(225, 232, 218, .2); --glass: rgba(39, 51, 53, .76);
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .7s, color .7s; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; font: inherit; color: inherit; border: 0; padding: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button, a { -webkit-user-select: none; user-select: none; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 15px; left: 15px; z-index: 100; padding: 15px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { font: 500 10px/1.8 var(--sans); letter-spacing: .17em; }
.scene { position: fixed; inset: 0; z-index: 0; background: linear-gradient(#ece8dc, #eae8db 42%, #c7d2c7 85%); }
.scene canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; touch-action: pan-y; }
.scene-ready .scene canvas { opacity: 1; }
[data-theme="dark"] .scene { background: linear-gradient(#263444, #6a6c76 60%, #36474b); }
.scene-wash { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(243,239,230,.82), rgba(243,239,230,.56) 25%, rgba(243,239,230,0) 54%); transition: background .7s; }
[data-theme="dark"] .scene-wash { background: linear-gradient(90deg, rgba(36,46,48,.85), rgba(36,46,48,.62) 24%, rgba(36,46,48,0) 55%); }
.grain { pointer-events: none; position: fixed; inset: 0; z-index: 8; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold); z-index: 30; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.masthead { position: fixed; inset: 0 0 auto; padding: 27px 5.1%; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 10; background: linear-gradient(var(--paper), transparent); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 36px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 19px 19px 0 0; color: var(--gold); }
.brand-mark span { font: italic 34px/.9 var(--serif); transform: translateY(-3px); }
.brand-copy b { display: block; font: 400 14px/1.5 var(--serif); letter-spacing: .09em; }
.brand-copy>span { display: block; font-size: 7px; letter-spacing: .15em; color: var(--muted); margin-top: 5px; }
.header-note { color: var(--muted); font-size: 10px; letter-spacing: .12em; padding-left: 40px; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.catalog-button { display: flex; align-items: center; min-height: 44px; gap: 9px; font-size: 11px; letter-spacing: .05em; }
.catalog-button svg { width: 14px; height: 14px; }
.catalog-count { font: italic 15px var(--serif); color: var(--gold); margin-left: 3px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .3s; }
.icon-button:hover { background: var(--glass); transform: rotate(-8deg); }
.theme-button svg { width: 17px; height: 17px; }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
main { position: relative; z-index: 2; pointer-events: none; }
main button, main a { pointer-events: auto; }
.entrance { min-height: 760px; height: 100svh; position: relative; display: flex; align-items: center; padding: 130px 8.3% 120px; }
.entrance-copy { width: 41%; max-width: 530px; position: relative; z-index: 2; }
.entrance-kicker { color: var(--muted); display: flex; gap: 9px; align-items: center; margin-bottom: 29px; font-size: 9px; letter-spacing: .12em; }
.tiny-sun { font-size: 20px; color: var(--gold); }
h1 { font: 400 clamp(56px, 6vw, 88px)/1.3 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
h1>span { display: block; padding-left: .42em; white-space: nowrap; }
.title-dot { color: var(--gold); }
.entrance-english { font: italic clamp(23px, 2.3vw, 35px)/1.4 var(--serif); color: var(--gold); margin-top: 15px; letter-spacing: -.02em; }
.entrance-note { color: var(--muted); font-size: 14px; letter-spacing: .09em; line-height: 2; margin-top: 29px; }
.enter-button { display: inline-flex; justify-content: space-between; align-items: center; min-width: 176px; gap: 27px; min-height: 54px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .07em; margin-top: 26px; transition: color .3s, border-color .3s; }
.enter-button svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.enter-button:hover { color: var(--gold); border-color: var(--gold); }
.enter-button:hover svg { transform: translateX(5px); }
.entrance-meta { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; letter-spacing: .04em; margin-top: 31px; white-space: nowrap; }
.entrance-meta b { color: var(--ink); font: italic 15px var(--serif); padding-right: 3px; }
.entrance-meta i { width: 2px; height: 2px; border-radius: 50%; background: var(--gold); }
.entrance-floor-note { position: absolute; bottom: 55px; left: 50%; display: flex; align-items: center; gap: 15px; color: var(--muted); transform: translateX(-50%); font-size: 8px; letter-spacing: .2em; }
.entrance-floor-note i { height: 1px; width: 45px; background: var(--gold); transform-origin: left; animation: breathe-line 3s ease-in-out infinite; }
@keyframes breathe-line { 50% { transform: scaleX(.45); opacity: .4; } }
.scene-loading { position: absolute; bottom: 140px; right: 15%; font-size: 10px; letter-spacing: .14em; color: var(--muted); transition: opacity .5s; }
.scene-loading span { display: inline-block; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; margin: 0 8px 2px 0; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.scene-ready .scene-loading, .scene-unavailable .scene-loading { opacity: 0; }
.entrance-preview { position: absolute; right: 9%; width: 39%; top: 26%; display: flex; align-items: center; gap: 22px; opacity: 1; transition: opacity .8s; }
.entrance-preview img { width: 64%; max-height: 47vh; object-fit: contain; border: 12px solid #faf6ed; outline: 1px solid #b09c7866; box-shadow: 0 25px 40px -20px #3d4b3a66; transform: rotate(-4deg); }
.entrance-preview img+img { width: 39%; transform: translateY(40px) rotate(4deg); }
.scene-ready .entrance-preview { opacity: 0; }
.room { height: 146svh; min-height: 1000px; position: relative; padding-inline: 8.3%; }
.room-sticky { height: 100svh; min-height: 650px; position: sticky; top: 0; display: flex; align-items: center; }
.room-copy { width: 30%; max-width: 330px; padding-top: 12px; }
.room-heading-line { display: flex; align-items: center; gap: 13px; color: var(--gold); margin-bottom: 24px; }
.room-heading-line>span:first-child { font: italic 32px var(--serif); }
.room-heading-line>i { flex: 1; height: 1px; max-width: 48px; background: var(--line); }
.room-heading-line .eyebrow { font-size: 8px; }
.room h2 { font: 400 clamp(30px, 3vw, 45px)/1.45 var(--serif); letter-spacing: .04em; }
.room-note { font-size: 12px; line-height: 2; color: var(--muted); letter-spacing: .045em; margin-top: 20px; max-width: 285px; }
.room-photo-list { margin-top: 37px; border-top: 1px solid var(--line); }
.room-photo-button { display: flex; text-align: left; width: 100%; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); min-height: 66px; transition: color .3s; }
.room-photo-button:hover { color: var(--gold); }
.room-photo-number { font: italic 19px var(--serif); color: var(--gold); width: 23px; flex: none; }
.room-photo-text { flex: 1; min-width: 0; }
.room-photo-text b { font-size: 13px; font-weight: 400; letter-spacing: .05em; display: block; overflow-wrap: anywhere; }
.room-photo-text>span { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; letter-spacing: .12em; line-height: 1.6; overflow-wrap: anywhere; }
.room-photo-button svg { width: 15px; height: 15px; opacity: .55; transition: transform .3s; }
.room-photo-button:hover svg { transform: translate(2px,-2px); }
.room-hint { color: var(--muted); font-size: 9px; letter-spacing: .08em; margin-top: 23px; display: flex; align-items: center; gap: 9px; }
.room-hint svg { width: 12px; height: 12px; }
.room-fallback { position: absolute; left: 44%; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 22px; align-items: center; }
.room-fallback button { width: 38%; pointer-events: auto; background: #faf6ed; padding: 12px; border: 1px solid #af9b7366; box-shadow: 0 25px 50px -25px #3d4b3a88; }
.room-fallback button:nth-child(2) { width: 31%; transform: translateY(-35px); }
.room-fallback button:nth-child(3) { width: 25%; transform: translateY(45px); }
.room-fallback img { width: 100%; height: auto; }
.scene-ready .room-fallback { display: none; }
.closing { min-height: 820px; height: 115svh; display: flex; align-items: center; padding: 130px 8.3% 140px; position: relative; }
.closing-copy { width: 42%; max-width: 540px; }
.closing-mark { color: var(--gold); font: 42px var(--serif); display: block; margin-bottom: 33px; }
.closing .eyebrow { color: var(--muted); font-size: 8px; margin-bottom: 22px; }
.closing h2 { font: 400 clamp(32px,3.5vw,54px)/1.65 var(--serif); letter-spacing: .06em; }
.closing-copy>p:not(.eyebrow) { font-size: 11px; color: var(--muted); line-height: 2; letter-spacing: .05em; margin-top: 25px; }
.back-entrance { display: block; width: max-content; font-size: 10px; color: var(--muted); padding-block: 12px; margin-top: 20px; }
.site-footer { position: absolute; bottom: 110px; left: 8.3%; right: 8.3%; border-top: 1px solid var(--line); padding-top: 19px; display: flex; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.room-navigation { position: fixed; right: 2.4%; top: 50%; transform: translateY(-50%); z-index: 6; width: 180px; pointer-events: none; }
.navigation-caption { position: absolute; right: 4px; top: -25px; font: 500 7px var(--sans); letter-spacing: .16em; color: var(--muted); opacity: .7; }
.theme-navigation { display: grid; justify-items: end; gap: 3px; max-height: 60dvh; overflow-y: auto; scrollbar-width: none; padding: 5px; }
.theme-navigation::-webkit-scrollbar { display: none; }
.theme-nav-button { pointer-events: auto; width: 40px; min-height: 38px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); transition: color .25s, background .25s; border-radius: 3px; }
.theme-nav-number { font: italic 17px/1 var(--serif); opacity: .55; }
.theme-nav-count { font: 8px/1.3 var(--sans); font-variant-numeric: tabular-nums; display: none; }
.theme-nav-name { position: absolute; right: 51px; white-space: nowrap; max-width: 118px; overflow: hidden; text-overflow: ellipsis; padding: 7px 10px; font: 11px/1.6 var(--sans); letter-spacing: .04em; background: var(--glass); border: 1px solid var(--line); border-radius: 3px; opacity: 0; transform: translateX(5px); transition: opacity .25s, transform .25s; }
.theme-nav-button:hover, .theme-nav-button:focus-visible, .theme-nav-button[aria-current="true"] { color: var(--ink); background: var(--glass); }
.theme-nav-button:hover .theme-nav-name, .theme-nav-button:focus-visible .theme-nav-name { opacity: 1; transform: none; }
.theme-nav-button[aria-current="true"] .theme-nav-number { opacity: 1; color: var(--gold); }
.theme-nav-button[aria-current="true"] .theme-nav-count { display: block; }
.theme-nav-progress { position: absolute; bottom: 0; left: 4px; right: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.journey-hud { position: fixed; bottom: max(27px, env(safe-area-inset-bottom)); left: 5.1%; right: 5.1%; display: flex; justify-content: space-between; align-items: end; z-index: 6; pointer-events: none; }
.hud-location { display: flex; gap: 15px; align-items: center; }
.hud-line { height: 37px; width: 1px; background: var(--gold); opacity: .65; }
#current-room-label { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.hud-location p { margin-top: 6px; font-size: 9px; color: var(--muted); }
.hud-location p b { font: italic 22px var(--serif); color: var(--ink); padding-right: 6px; }
.hud-location p>span:last-child { padding-left: 6px; }
.wander-button { pointer-events: auto; display: flex; gap: 15px; align-items: center; min-height: 45px; font-size: 10px; letter-spacing: .07em; }
.wander-button svg { border: 1px solid var(--line); border-radius: 50%; padding: 10px; width: 42px; height: 42px; transition: background .3s, transform .3s; }
.wander-button:hover svg { background: var(--glass); transform: translateX(3px); }
body.modal-open .journey-hud, body.modal-open .room-navigation { visibility: hidden; }
.noscript-gallery { pointer-events: auto; background: var(--paper); padding: 60px 8%; font-size: 13px; line-height: 2.5; }
.noscript-gallery a { text-decoration: underline; }

/* The collection and viewer remain useful without WebGL. */
.catalog { color: var(--ink); background: var(--paper); width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0 max(6%, calc((100vw - 1440px)/2)); border: 0; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.catalog::backdrop { background: var(--paper); }
.catalog-head { padding: 49px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.catalog-head .eyebrow { color: var(--gold); font-size: 8px; margin-bottom: 9px; }
.catalog-head h2 { font: 400 clamp(32px,3.2vw,48px)/1.5 var(--serif); letter-spacing: .04em; }
.catalog-head h2 span { font: italic 20px var(--serif); color: var(--gold); margin-left: 18px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0; }
.catalog-intro { font-size: 12px; color: var(--muted); letter-spacing: .06em; line-height: 1.8; }
.catalog-result { font: 10px/1.6 var(--sans); color: var(--muted); margin-top: 8px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.catalog-search { display: flex; align-items: center; gap: 12px; width: 280px; max-width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); transition: border-color .25s; }
.catalog-search:focus-within { border-color: var(--gold); }
.catalog-search svg { width: 18px; height: 18px; color: var(--muted); }
.catalog-search input { font: 13px/1.8 var(--sans); color: var(--ink); background: transparent; border: 0; min-width: 0; width: 100%; padding: 2px 0; border-radius: 0; }
.catalog-search input::placeholder { color: var(--muted); opacity: .8; }
.catalog-search input:focus-visible { outline-offset: 8px; outline-width: 1px; }
.catalog-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 26px; }
.catalog-filter { display: inline-flex; align-items: baseline; flex: none; gap: 11px; border: 1px solid var(--line); border-radius: 30px; padding: 10px 16px; min-height: 40px; font-size: 11px; line-height: 1.5; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.catalog-filter:hover { border-color: var(--gold); color: var(--ink); }
.catalog-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font: italic 13px var(--serif); opacity: .65; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 8px; gap: 0 34px; padding: 10px 0 35px; }
.catalog-photo { display: block; align-self: start; min-width: 0; text-align: left; width: 100%; margin: 0; padding-bottom: 38px; }
.catalog-picture { width: 100%; display: block; background: color-mix(in srgb, var(--paper), var(--muted) 5%); padding: 12px; border: 1px solid var(--line); position: relative; }
.catalog-picture img { width: 100%; height: auto; max-width: 100%; max-height: none; object-fit: contain; box-shadow: 0 3px 8px #171a1415; transition: transform .5s var(--ease); }
.catalog-photo:hover img, .catalog-photo:focus-visible img { transform: translateY(-3px); }
.catalog-caption { display: flex; gap: 12px; align-items: baseline; padding-top: 16px; }
.catalog-caption span { color: var(--gold); font: italic 18px var(--serif); }
.catalog-caption b { font-size: 13px; font-weight: 400; letter-spacing: .035em; line-height: 1.7; overflow-wrap: anywhere; }
.catalog-photo-category { display: block; font: 9px/1.7 var(--sans); color: var(--muted); letter-spacing: .06em; margin: 5px 0 0 32px; }
.catalog-footer { border-top: 1px solid var(--line); padding: 23px 0 35px; display: flex; justify-content: space-between; gap: 15px; font-size: 9px; color: var(--muted); letter-spacing: .05em; }
.catalog-empty { padding: 65px 10px 90px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; }
.catalog-reset { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); border-bottom: 1px solid var(--gold); margin-top: 22px; min-height: 44px; font-size: 12px; }
.catalog-reset svg { width: 15px; height: 15px; }
.viewer { --gold: #d9bf8d; position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; background: #171e1c; color: #eeeade; border: 0; overflow: hidden; color-scheme: dark; overscroll-behavior: contain; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.viewer::backdrop { background: #171e1c; }
.viewer-ambience { position: absolute; inset: -15%; z-index: -1; opacity: .12; filter: blur(85px) saturate(.65); background-size: cover; background-position: center; pointer-events: none; }
.viewer-head { padding: max(21px,env(safe-area-inset-top)) 31px 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.viewer-brand { display: flex; gap: 23px; align-items: center; font-size: 11px; letter-spacing: .13em; white-space: nowrap; }
#viewer-counter { color: #abb5a6; font: italic 17px var(--serif); letter-spacing: .04em; }
.viewer-controls { display: flex; gap: 8px; }
.viewer-action { height: 44px; width: 44px; border: 1px solid #e9efd328; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.viewer-action:hover, .viewer-action[aria-pressed="true"] { background: #ffffff15; }
.viewer-action svg { width: 18px; height: 18px; }
.close-action { margin-left: 11px; }
.play-pause, [aria-pressed="true"] .play-start { display: none; }
[aria-pressed="true"] .play-pause { display: block; }
.autoplay-progress { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.viewer-stage { position: relative; min-height: 0; margin: 0 12px; isolation: isolate; }
.image-viewport { position: absolute; inset: 8px 74px; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.image-viewport.is-zoomed { touch-action: none; cursor: grab; }
.image-viewport.is-dragging { cursor: grabbing; }
.viewer-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 70px #0005; }
.is-zoomed .viewer-image { cursor: inherit; }
.is-loading .viewer-image, .has-error .viewer-image { opacity: 0; pointer-events: none; }
.viewer-step { position: absolute; top: calc(50% - 23px); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #e9efd33d; border-radius: 50%; background: #171e1c90; }
.viewer-prev { left: 9px; } .viewer-next { right: 9px; }
.viewer-step:hover { background: #ffffff15; }
.loader { display: none; position: absolute; top: calc(50% - 15px); left: calc(50% - 15px); width: 30px; height: 30px; border: 1px solid #e9efd339; border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.is-loading .loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-error { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.has-error .viewer-error { display: flex; }
.viewer-error p { font-size: 13px; color: #abb5a6; }
.retry-button { font-size: 12px; border: 1px solid #79846d; padding: 12px 21px; }
.viewer-foot { display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr); align-items: center; gap: 28px; padding: 23px 37px max(25px,env(safe-area-inset-bottom)); }
.viewer-caption h2 { font: 400 24px/1.4 var(--serif); letter-spacing: .09em; }
.viewer-caption p { font-size: 11px; line-height: 1.9; color: #abb5a6; margin-top: 7px; }
.thumbnails { display: flex; gap: 8px; max-width: 44vw; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #687660 transparent; padding: 7px 3px; }
.thumb { width: 53px; height: 43px; padding: 3px; border: 1px solid transparent; opacity: .45; flex: none; background: #303b2f; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumb:hover { opacity: 1; }
.viewer-tools-note { text-align: right; font-size: 9px; color: #abb5a6; line-height: 2; }
.original-link { display: inline-flex; gap: 4px; align-items: center; min-height: 30px; color: #eeeade; font-size: 11px; }
.original-link svg { width: 13px; height: 13px; }
.viewer-announcement { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); padding: 9px 16px; font-size: 12px; color: #eeeade; background: #36412e; border: 1px solid #7c8968; border-radius: 30px; z-index: 5; }
@media (min-width:1600px) { .room-copy { max-width: 380px; } .catalog-grid { column-gap: 44px; } }
@media (max-width:1100px) {
  .header-note { display: none; }
  .entrance, .room, .closing { padding-inline: 6.5%; }
  .room-copy { width: 32%; }
  .room h2 { font-size: 34px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }
  .viewer-foot { grid-template-columns: 1fr auto; padding-inline: 30px; gap: 18px; }
  .viewer-tools-note { display: none; }
  .thumbnails { max-width: 52vw; }
}
@media (min-width:761px) and (max-height:760px) {
  .entrance { min-height: 640px; padding-top: 100px; padding-bottom: 140px; }
  .entrance-kicker { margin-bottom: 18px; }
  h1 { font-size: clamp(46px,5.3vw,66px); line-height: 1.14; }
  .entrance-english { font-size: 26px; margin-top: 10px; }
  .entrance-note { font-size: 12px; line-height: 1.9; margin-top: 20px; }
  .enter-button { min-height: 44px; margin-top: 17px; }
  .entrance-meta { margin-top: 20px; }
  .entrance-floor-note { display: none; }
  .room-sticky { min-height: 560px; }
  .room-heading-line { margin-bottom: 18px; }
  .room-note { margin-top: 12px; }
  .room-photo-list { margin-top: 24px; }
  .room-photo-button { min-height: 56px; padding-block: 11px; }
  .room-hint { margin-top: 16px; }
}
@media (max-width:760px) {
  .masthead { padding: 19px 22px; gap: 12px; }
  .brand { gap: 9px; } .brand-mark { width: 29px; height: 35px; } .brand-mark span { font-size: 28px; }
  .brand-copy b { font-size: 12px; } .brand-copy>span { font-size: 6px; letter-spacing: .1em; }
  .header-actions { gap: 12px; } .catalog-button { font-size: 10px; gap: 6px; } .catalog-button svg { width: 13px; }
  .catalog-count { display: none; } .theme-button { width: 36px; height: 36px; }
  .scene-wash { background: linear-gradient(180deg, #f3efe6fa, #f3efe6f0 25%, #f3efe6bb 45%, #f3efe600 64%); }
  [data-theme="dark"] .scene-wash { background: linear-gradient(180deg, #242e30fa, #242e30f0 25%, #242e30bb 45%, #242e3000 64%); }
  .entrance { height: 112svh; min-height: 760px; display: block; padding: 125px 28px 100px; }
  .entrance-copy { width: 100%; max-width: 420px; }
  .entrance-kicker { font-size: 7px; margin-bottom: 16px; }
  .tiny-sun { font-size: 17px; }
  h1 { font-size: clamp(47px,13vw,66px); line-height: 1.17; }
  h1>span { display: inline; padding-left: 0; white-space: normal; }
  .entrance-english { font-size: 23px; margin-top: 15px; }
  .entrance-note { font-size: 12px; line-height: 1.8; margin-top: 20px; }
  .entrance-note br { display: none; }
  .enter-button { font-size: 11px; min-height: 44px; margin-top: 16px; min-width: 163px; }
  .entrance-meta { font-size: 8px; gap: 9px; margin-top: 20px; }
  .entrance-meta b { font-size: 13px; }
  .entrance-floor-note { display: none; }
  .scene-loading { right: 25%; bottom: 21%; font-size: 8px; }
  .entrance-preview { top: 60%; left: 13%; width: 74%; }
  .entrance-preview img { border-width: 8px; max-height: 24vh; }
  .room { height: 160svh; min-height: 1050px; padding-inline: 28px; }
  .room-sticky { min-height: 700px; align-items: flex-start; padding-top: 106px; }
  .room-copy { width: 100%; max-width: none; padding: 0; }
  .room-heading-line { margin-bottom: 13px; gap: 10px; }
  .room-heading-line>span:first-child { font-size: 23px; }
  .room-heading-line .eyebrow { font-size: 7px; }
  .room h2 { font-size: 31px; }
  .room-note { font-size: 11px; margin-top: 9px; max-width: calc(100% - 24px); }
  .room-photo-list { margin-top: 16px; display: flex; border-top: 0; gap: 8px; flex-wrap: wrap; }
  .room-photo-button { width: auto; min-height: 44px; padding: 8px 11px; gap: 7px; border: 1px solid var(--line); background: var(--glass); border-radius: 2px; }
  .room-photo-number { width: auto; font-size: 15px; }
  .room-photo-text b { font-size: 11px; }
  .room-photo-text>span, .room-photo-button svg { display: none; }
  .room-hint { margin-top: 13px; font-size: 8px; }
  .room-fallback { left: 0; right: 0; top: 65%; gap: 12px; }
  .room-fallback button { padding: 7px; }
  .closing { height: 110svh; min-height: 750px; padding: 125px 28px 130px; align-items: flex-start; }
  .closing-copy { width: 100%; }
  .closing-mark { font-size: 33px; margin-bottom: 22px; }
  .closing .eyebrow { margin-bottom: 12px; font-size: 7px; }
  .closing h2 { font-size: 34px; line-height: 1.5; }
  .closing-copy>p:not(.eyebrow) { font-size: 10px; margin-top: 19px; }
  .back-entrance { margin-top: 8px; }
  .site-footer { left: 28px; right: 28px; bottom: 109px; font-size: 7px; gap: 10px; line-height: 2; }
  .site-footer>span:last-child { max-width: 90px; text-align: right; }
  .room-navigation { right: 3px; width: 31px; }
  .navigation-caption, .theme-nav-name { display: none; }
  .theme-navigation { padding: 2px; gap: 1px; }
  .theme-nav-button { width: 27px; min-height: 32px; }
  .theme-nav-number { font-size: 14px; }
  .theme-nav-count { font-size: 6px; }
  .journey-hud { left: 23px; right: 23px; bottom: max(20px,env(safe-area-inset-bottom)); }
  .hud-line { height: 31px; } .hud-location { gap: 10px; }
  #current-room-label { font-size: 7px; } .hud-location p { margin-top: 4px; }
  .hud-location p b { font-size: 19px; }
  .wander-button { font-size: 9px; gap: 10px; } .wander-button svg { width: 37px; height: 37px; padding: 9px; }
  .catalog { padding-inline: 23px; }
  .catalog-head { padding-top: max(29px,env(safe-area-inset-top)); padding-bottom: 22px; }
  .catalog-head h2 { font-size: 30px; }
  .catalog-head h2 span { font-size: 17px; margin-left: 12px; }
  .catalog-tools { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px 0; }
  .catalog-intro { font-size: 11px; }
  .catalog-search { width: 100%; }
  .catalog-filters { overflow-x: auto; flex-wrap: nowrap; padding: 5px 3px 19px; margin-inline: -3px; scrollbar-width: none; }
  .catalog-filter { padding: 10px 13px; min-height: 44px; font-size: 11px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; padding-top: 4px; }
  .catalog-photo { padding-bottom: 27px; }
  .catalog-picture { padding: 7px; }
  .catalog-caption { gap: 8px; padding-top: 12px; } .catalog-caption b { font-size: 11px; } .catalog-caption span { font-size: 15px; }
  .catalog-photo-category { font-size: 8px; margin-left: 25px; }
  .catalog-footer { font-size: 8px; }
  .viewer-head { padding: max(14px,env(safe-area-inset-top)) 15px 10px; gap: 6px; }
  .viewer-brand { gap: 11px; font-size: 9px; letter-spacing: .05em; }
  #viewer-counter { font-size: 14px; }
  .viewer-controls { gap: 2px; } .viewer-action { border: 0; width: 37px; height: 44px; }
  .close-action { margin-left: 2px; } #fullscreen-button { display: none; }
  .viewer-stage { margin: 0; } .image-viewport { inset: 8px 14px; }
  .viewer-step { top: auto; bottom: 12px; width: 41px; height: 41px; }
  .viewer-prev { left: 23px; } .viewer-next { right: 23px; }
  .viewer-foot { grid-template-columns: 1fr; padding: 15px 15px max(19px,env(safe-area-inset-bottom)); gap: 9px; text-align: center; }
  .viewer-caption h2 { font-size: 22px; } .viewer-caption p { font-size: 10px; margin-top: 4px; }
  .thumbnails { justify-self: center; max-width: calc(100vw - 40px); gap: 7px; } .thumb { width: 47px; height: 41px; }
}
@media (max-width:390px) { h1 { font-size: 45px; } .brand-copy>span { display: none; } .catalog-picture { height: 148px; } .entrance-meta { font-size: 7px; gap: 7px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
