/* Museum materials and artwork cards · Art by Basel */
.gallery-stage{--floor-depth:16%}
.wall-track,.floor-grid,.ceiling-track{transition-timing-function:cubic-bezier(.4,0,.2,1)}
.walking .wall-camera{animation:none}
.wall-base{bottom:var(--floor-depth);height:9px;background:linear-gradient(#171717 0 30%,#52504b 32% 44%,#252321 48% 80%,#0c0c0c 85%);box-shadow:0 7px 12px #0008}
.room-edge{bottom:var(--floor-depth)}
.room-floor{height:var(--floor-depth);background:#211d18;perspective:680px;perspective-origin:50% 0}
.floor-grid{height:480%;transform:rotateX(58deg);background-image:url('img/floor.jpg');background-size:1200px 347px;background-repeat:repeat;background-position:calc(var(--travel) * -.32px) 0;filter:brightness(1.55) saturate(.8)}
.room-floor:after{background:linear-gradient(#0807058c,transparent 32%,#09080724),radial-gradient(ellipse at 50% 0,#e4d6bd1f,transparent 70%)}
.welcome-floor{background:linear-gradient(#0008,transparent 40%),url('img/floor.jpg') center 30%/900px 260px;border-top:5px solid #22201d;filter:brightness(1.3)}
.ceiling-track{top:4%;height:4px;background:linear-gradient(#171717,#4c4c4c 45%,#161616 65%);box-shadow:0 3px 6px #0007;transform:none}

/* Three individually mounted, satin-black cylindrical spots per painting. */
.light-cluster{position:absolute;left:50%;top:0;transform:translateX(-50%);width:var(--art-width);height:100%}
.light-unit{position:absolute;left:var(--light-position);top:0;width:1px;height:100%}
.track-spot{position:absolute;left:0;top:calc(4% - 3px);width:26px;height:43px;transform:translateX(-50%);z-index:2}
.spot-mount{position:absolute;top:0;left:1px;width:24px;height:7px;border-radius:2px;background:linear-gradient(#555,#202020 55%,#0d0d0d);border:1px solid #111;box-shadow:1px 2px 3px #0007}
.spot-stem{position:absolute;top:5px;left:11px;width:4px;height:13px;background:linear-gradient(90deg,#131313,#666 40%,#262626 70%);box-shadow:2px 1px 3px #0005}
.spot-head{position:absolute;top:15px;left:3px;width:20px;height:25px;border-radius:6px 6px 7px 7px;background:linear-gradient(90deg,#131313,#414141 32%,#282828 58%,#090909 95%);border:1px solid #101010;transform:rotate(-12deg);box-shadow:3px 5px 6px #0006,inset 0 1px 1px #ffffff30}
.spot-head:before{content:'';position:absolute;left:1px;right:1px;top:2px;height:4px;border-top:1px solid #ffffff21;border-radius:50%}
.spot-lens{position:absolute;left:2px;right:2px;bottom:-2px;height:7px;border-radius:50%;border:2px solid #202020;background:#f4eee0;box-shadow:0 2px 5px #fff4,inset 0 0 2px #baaa8e}
.light-unit:nth-child(2) .spot-head{transform:rotate(0deg)}
.light-unit:nth-child(3) .spot-head{transform:rotate(12deg)}
.light-wash{position:absolute;top:calc(4% + 31px);left:0;width:calc(var(--art-width) * .63);height:73%;transform:translateX(-50%);background:radial-gradient(ellipse at 50% 40%,#f6ead422 0%,#f4e9d20d 46%,transparent 73%);filter:blur(12px);opacity:.8}

/* A quiet wall-card affordance replaces the caption beneath every artwork. */
.gallery-card{position:absolute;left:calc(50% - var(--art-width)/2 - 81px);top:calc(50% + var(--art-height)/2 - 55px);width:64px;height:48px;padding:0;z-index:3;border:1px solid #b7b4ad;border-radius:1px;background:linear-gradient(145deg,#e9e7e1,#ccc9c2);color:#45423c;box-shadow:3px 4px 2px #0004,5px 9px 14px #0004;transition:transform .2s,box-shadow .2s}
.gallery-card:hover{transform:translateY(-2px);box-shadow:4px 6px 3px #0005,7px 12px 18px #0005}
.gallery-card:focus-visible{outline:2px solid #fff;outline-offset:5px}
.card-paper{position:absolute;inset:9px 9px 8px;display:block}
.card-rule{display:block;width:20px;height:2px;background:#504c45;margin-bottom:6px}
.card-lines{display:block;width:29px;height:11px;background:repeating-linear-gradient(180deg,#827d73 0 1px,transparent 1px 4px);opacity:.75}
.card-paper svg{position:absolute;right:-1px;bottom:-1px;width:13px;height:13px;stroke-width:1.3}

/* A paper gallery card, matching the original's title / metadata / context structure. */
.details-dialog{width:560px;max-height:calc(100dvh - 40px);background:#eeece5;color:#24221e;border:1px solid #bbb8b0;border-radius:2px;overflow-y:auto;box-shadow:0 30px 110px #0009}
.details-dialog:before{content:'';position:absolute;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,#6f6a60,#b8b3a8 65%,transparent)}
.details-dialog>.dialog-header{padding:22px 28px 0 34px;border:0;background:transparent;align-items:center;gap:16px}
.details-dialog .dialog-header .eyebrow{color:#655f53;font-size:.6875rem;line-height:1.6;letter-spacing:.13em;margin:0}
.details-dialog .dialog-header>.icon-button{margin:-5px -8px -5px 0;align-self:center}
.details-dialog .icon-button:hover{background:#24221e0c;color:#111}
.details-dialog button:focus-visible{outline-color:#615b4d}
.details-dialog .detail-copy{padding:18px 34px 32px}
.details-dialog .detail-copy h2{font-size:2.25rem;line-height:1.13;letter-spacing:-.025em;margin-bottom:14px}
.details-dialog #detail-meta{font-size:.8125rem;line-height:1.7;color:#645f54}
.details-dialog .detail-caption{font:italic 1.125rem/1.6 var(--serif);margin-top:24px;color:#514b41}
.details-dialog .detail-rule{width:46px;height:2px;background:#989080;margin:24px 0}
.details-dialog #detail-text{font-size:1rem;line-height:1.85;white-space:pre-line;color:#39352d}
.details-dialog .detail-credit{font-size:.6875rem;line-height:1.8;color:#6c6559;border-top:1px solid #ccc7ba;margin:26px 0 20px;padding-top:16px}
.details-dialog .primary-button{min-height:44px;background:#302e29;border-color:#302e29;color:#f1eee7;padding:12px 20px;font-size:.8125rem}
.details-dialog .primary-button:hover{background:#4c483f}

@media(max-width:760px){
  .gallery-stage{--floor-depth:14%}
  .gallery-card{left:calc(50% - var(--art-width)/2 + 2px);top:calc(50% + var(--art-height)/2 + 20px);width:58px;height:44px}
  .track-spot{transform:translateX(-50%) scale(.8);transform-origin:50% 0}
  .light-wash{top:calc(4% + 26px)}
  .floor-grid{background-size:900px 260px}
  .details-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
  .details-dialog>.dialog-header{padding:20px 20px 0 24px}
  .details-dialog .detail-copy{padding:16px 24px 26px}
  .details-dialog .detail-copy h2{font-size:2rem}
}
@media(max-height:480px) and (orientation:landscape){
  .gallery-stage{--floor-depth:12%}
  .gallery-card{left:calc(50% - var(--art-width)/2 - 72px);top:calc(50% + var(--art-height)/2 - 45px);width:56px;height:44px}
  .track-spot{transform:translateX(-50%) scale(.7);transform-origin:50% 0}
  .light-wash{top:calc(4% + 24px)}
}
