/* Esplora light: only what the 3D page has not. Bar, cards, labels, caption, plan and the lit
   windows are css/esplora.css, loaded first. */
.is-light .spot { transition: opacity .25s ease, scale .38s ease-in; }
.is-light .spot.is-off { opacity: 0; }

/* the panorama: under the photo (same layer, earlier in the page); it takes the drags */
.cube { position: fixed; inset: 0; z-index: 1; overflow: hidden; touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none; }
.cube:active { cursor: grabbing; }
/* a drag that starts on a door's label turns the room too (js/light/room.js): the browser must not
   take that finger for a scroll of its own, which cancels the pointer */
.is-light .doors button { touch-action: none; }
.cube__stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; visibility: hidden; }
.cube.is-on .cube__stage { visibility: visible; }
.cube__stage img { position: absolute; display: block; max-width: none; transform-origin: 50% 50%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; user-select: none; pointer-events: none; }
/* going through a door: a step closer while the room fades */
.cube, .spot { transition: scale .38s ease-in; }
.is-going .cube, .is-going .spot { scale: 1.06; }

/* the palazzo: the lit windows breathe until one is pointed at (js/explore-picker.js: 0,12–0,24) */
.lit g { opacity: .24; transition: opacity .3s ease; animation: breathe 3.2s ease-in-out infinite; }
.lit g.is-lit { opacity: 1; animation: none; }
.lit g.is-portone:not(.is-lit) { opacity: .14; animation: none; }
@keyframes breathe { 50% { opacity: .12; } }
.hits { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 2; }
.hits path { fill: transparent; cursor: pointer; }
.tip__go { pointer-events: auto; margin-top: 6px; padding: 6px 14px; border: 1px solid var(--bronze); border-radius: 999px;
  background: var(--glass-strong); color: var(--cream); font-size: 12.5px; letter-spacing: .04em; cursor: pointer; }
.tip__go:hover, .tip__go:focus-visible { background: var(--bronze); color: #1b1408; outline: none; }
@media (hover: hover) { .tip__go { display: none; } }

/* in a room the palazzo's layers go; on the palazzo the room's */
body:not(.is-palazzo) .lit, body:not(.is-palazzo) .hits, body:not(.is-palazzo) .picker { display: none; }

.fail { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; margin: 0; padding: 24px;
  background: var(--night); text-align: center; font-size: 15px; line-height: 1.6; }
.fail a { color: var(--warm); }
@media (prefers-reduced-motion: reduce) { .lit g { animation: none; } .cube, .is-light .spot { transition: none; } }
