/* Sphere geometry follows the supplied archive reference; colours/type stay CanLet. */
.tour { --gallery-card: 160px; --gallery-title: min(56vw, 640px); --gallery-perspective: 1150px; position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink-900); color: var(--on-art); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.tour::backdrop, .tour-shot::backdrop { background: var(--ink-900); }
.tour button { min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid currentColor; border-radius: var(--r-pill); color: inherit; font: inherit; font-size: var(--text-small); cursor: pointer; touch-action: manipulation; }
.tour button:hover { background: rgb(246 244 238 / .12); }
.tour button:focus-visible, .tour__stage:focus-visible { outline: 2px solid var(--on-art); outline-offset: 4px; }
.tour__track { height: 160dvh; pointer-events: none; }
.tour__viewport { position: sticky; top: 0; z-index: 1; height: 100dvh; pointer-events: none; }
.tour.is-grid .tour__viewport { margin-bottom: -100dvh; }
.tour__stage { position: relative; height: 100%; perspective: var(--gallery-perspective); perspective-origin: 50% 50%; overflow: hidden; pointer-events: auto; touch-action: pan-y; }
.tour__world, .tour__orb { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.tour__world { will-change: transform; }
.tour__orb { top: 0; left: 0; }
.tour .tour-card { position: absolute; top: 0; left: 0; width: var(--gallery-card); height: calc(var(--gallery-card) / 1.5); margin: calc(var(--gallery-card) / -3) 0 0 calc(var(--gallery-card) / -2); padding: 0; border: 0; border-radius: 3px; background: var(--ink-900); }
.tour-card__face { display: block; position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; transition: transform .5s var(--ease); }
.tour-card__face::after { content: ""; position: absolute; inset: 0; background: rgb(30 41 39 / var(--depth, 0)); pointer-events: none; }
.tour-card:hover .tour-card__face { transform: scale(1.045); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; }
.tour__headline { position: absolute; top: 0; left: 0; width: var(--gallery-title); margin: 0 0 0 calc(var(--gallery-title) / -2); text-align: center; font-size: clamp(25px, 3.7vw, 55px); line-height: 1.06; color: var(--on-art); text-shadow: 0 2px 32px var(--ink-900); pointer-events: none; }
.tour__headline-inner { position: absolute; top: 0; left: 0; width: 100%; transform: translateY(-50%); }
.tour__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 88% 92% at 50% 50%, transparent 48%, rgb(30 41 39 / .26) 80%, rgb(30 41 39 / .72) 100%); }
.tour__chrome, .tour__footer { position: absolute; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px var(--gutter); background: var(--ink-900); pointer-events: auto; }
.tour__chrome { top: 0; padding-top: max(24px, env(safe-area-inset-top)); }
.tour__chrome img { width: 160px; height: auto; }
.tour__tools { display: flex; gap: 12px; }
.tour__footer { bottom: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.tour__footer p { font-size: var(--text-small); }
.tour__footer .tour__disclosure { font-size: .75rem; color: var(--cream-300); margin-top: 4px; }
.tour__grid { padding: 128px var(--gutter) 144px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; min-height: 100dvh; }
.tour__grid[hidden], .tour.is-grid .tour__track, .tour.is-grid .tour__stage, .tour.is-grid .tour__vignette { display: none; }
.tour .gallery-item { padding: 0; border: 0; border-radius: 3px; text-align: left; background: transparent; align-self: start; }
.gallery-item .gallery-item__image { display: block; padding: 0; aspect-ratio: 3/2; overflow: hidden; border-radius: 3px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 1.125rem; }
.tour-shot { width: 100%; max-width: none; height: 100dvh; max-height: none; padding: 80px var(--gutter) 32px; border: 0; margin: 0; background: var(--ink-900); color: var(--on-art); overflow: auto; overscroll-behavior: contain; }
.tour-shot[open] { display: grid; place-items: center; }
.tour-shot__close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: var(--gutter); z-index: 2; background: var(--ink-900) !important; }
.tour-shot__plate { width: min(72vw, 860px, (100dvh - 290px) * 1.5); transform-origin: 0 0; }
.tour-shot__plate > img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: var(--bg-alt); }
.tour-shot__copy { padding-top: 24px; }
.tour-shot__copy h3 { font-size: var(--display-3); margin-bottom: 12px; }
.tour-shot__copy p { font-size: var(--text-small); max-width: 65ch; }
.tour-shot__status { min-height: 1.5em; color: var(--cream-300); margin-top: 8px; }
.tour-shot__actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 16px; }
.tour-shot__actions span { font-size: var(--text-small); }
@media (max-width: 768px) { .tour { --gallery-title: min(84vw, 360px); } .tour__headline { font-size: clamp(22px, 6.4vw, 34px); } .tour__chrome img { width: 128px; } .tour__chrome, .tour__footer { padding-left: 16px; padding-right: 16px; } .tour__tools { gap: 8px; } .tour button { padding: 8px 12px; } .tour__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 112px; } .tour-shot__plate { width: min(92vw, 680px); } .tour-shot[open] { display: block; } .tour-shot__plate { margin: auto; } .tour__footer { align-items: flex-start; } .tour__footer > div { max-width: 55%; } }
@media (max-width: 380px) { .tour { --gallery-title: min(88vw, 320px); } .tour__chrome img { width: 100px; } .tour__tools { gap: 8px; } .tour__grid { grid-template-columns: 1fr; } .tour__footer { gap: 8px; } .tour__footer button { max-width: 44%; } }
@media (max-height: 520px) and (orientation: landscape) { .tour__chrome, .tour__footer { padding-top: 8px; padding-bottom: 8px; } .tour__footer .tour__disclosure { display: none; } .tour__headline { font-size: clamp(18px, 4.8vh, 28px); } .tour-shot__plate { width: min(58vw, 560px); } }
@media (prefers-reduced-motion: reduce) { .tour-card__face { transition: none; } }
