/* Plan-led gallery: un-cropped renders with camera-projected destination links. */
#gallery>.intro{position:static;display:block;width:auto;height:auto;padding:24px 4% 18px;text-align:left;pointer-events:auto;background:#fff}
#gallery>.intro h1{font-size:clamp(26px,3vw,44px);margin:0 0 8px}
#gallery>.intro .dek{font-size:clamp(14px,1.5vw,19px)}
#gallery .gallery-sign-copy{display:none}
#gallery .gallery-view{margin:0;border-radius:0}
.gallery-help{margin:16px 4%;font-size:14px;line-height:1.6;color:var(--ink-muted)}
.room-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}
.room-links a,.room-action{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--rule-strong);border-radius:var(--radius-control);text-decoration:none;background:#fff;color:var(--ink)}
.room-links a:hover,.room-links a[aria-current=page]{background:var(--plaque);border-color:var(--ink)}
#gallery>.room-links{margin-left:4%;margin-right:4%}
/* M5: the gallery render is a figure with a provenance caption (plan 9). */
.gallery-figure{margin:0}.gallery-caption{margin:.75rem 4% 0;font-family:var(--font-sans)}.gallery-caption small{display:block;font-size:var(--step--1);color:var(--ink-muted)}
.room-scene{position:relative;border:1px solid var(--rule);border-radius:0;overflow:hidden}
.room-scene>img{display:block;width:100%;height:auto}
.room-scene-plan{border:0}
.room-spot{width:auto;min-width:44px;height:auto;min-height:44px;border-radius:var(--radius-control);padding:8px 12px;font-size:clamp(13.3px,1.1vw,16px);white-space:nowrap;background:var(--ink);border:2px solid #fff}
#upper-rooms{padding-bottom:30px}
#upper-rooms h1{font-size:clamp(30px,4vw,52px)}
.room-intro{max-width:82ch;font-size:17px;line-height:1.7;color:var(--ink-muted)}
.room-preview-note{margin:24px 0;padding:22px;background:var(--plaque);line-height:1.7}
.room-preview-note h2{font-size:24px;font-weight:400;margin-top:0}
@media(min-width:900px){#gallery>.exhibit-list,#gallery>.banner-study{margin-left:4%;margin-right:4%}}
@media(max-width:600px){#gallery>.intro{padding:24px 0 18px}.room-spot{font-size:13.3px;padding:4px;white-space:normal;text-align:center;max-width:60px;line-height:1.15}.room-links{gap:8px}.room-links a{font-size:13.3px;flex:1 1 42%;justify-content:center;text-align:center}#gallery>.room-links,.gallery-help{margin-left:0;margin-right:0}.room-intro{font-size:15px}}
/* v024: use the available width and readable HTML labels, not miniature render text. */
body:has(#gallery:not([hidden])) main{max-width:none;padding:0}
#gallery>.intro{padding:20px 4% 16px}
#gallery>.intro .eyebrow{margin:0 0 4px}
#gallery>.intro h1{font-size:clamp(27px,3vw,42px)}
#gallery>.intro .dek{font-size:16px;line-height:1.4}
#gallery .gallery-view{width:100%;max-width:min(100%,calc(max(280px,100svh - 165px)*1.92));margin:0 auto}
.room-spot{display:flex;align-items:center;justify-content:center;gap:4px;font-size:15px;line-height:1.2;min-height:44px;padding:9px 12px;max-width:none;white-space:nowrap}
.room-name-short{display:none}
.exhibit-spot{display:flex;gap:9px;align-items:center;justify-content:center;width:auto;height:44px;border-radius:var(--radius-control);padding:0 13px;font-size:15px;white-space:nowrap}
.exhibit-spot strong{font-weight:400;font-size:18px}
.gallery-help{font-size:15px;line-height:1.6;margin:14px 4%}
.gallery-help a{padding-block:12px;text-underline-offset:3px;margin-left:6px}
#gallery>.exhibit-list,#gallery>.banner-study{margin-left:4%;margin-right:4%}
.room-links a{font-size:15px}
@media(max-width:760px){.room-spot{font-size:14px;padding:8px}.room-name-full{display:none}.room-name-short{display:inline}.exhibit-spot{font-size:14px;gap:6px;padding:0 10px}.room-links a{font-size:14px}#gallery>.room-links{margin-left:4%;margin-right:4%}}
@media(max-width:480px){.room-spot{font-size:13.3px;min-width:52px;padding:7px}.exhibit-spot{width:44px;padding:0}.exhibit-spot-name{display:none}.gallery-help{font-size:14px}.gallery-help a{margin-left:0}#gallery>.intro .dek{font-size:15px}}

/* Bundle 7: plaques under the ground render (L-354). Ink only. One reserved band, shown by hover or keyboard focus, no script. */
.gallery-plaques{display:none;margin:.5rem 4% 0;font-family:var(--font-sans)}
@media(min-width:761px){.gallery-plaques{display:grid}}
.gallery-plaque{grid-area:1/1;margin:0;padding:.5rem .75rem;border:1px solid var(--ink);border-radius:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.5;visibility:hidden;opacity:0}
.gallery-plaque strong{display:block;font-weight:600}
.gallery-figure:has(.spot[href="#01"]:is(:hover,:focus-visible)) .gallery-plaque[data-for="01"],
.gallery-figure:has(.spot[href="#observatory"]:is(:hover,:focus-visible)) .gallery-plaque[data-for="observatory"],
.gallery-figure:has(.spot[href="#02-a"]:is(:hover,:focus-visible)) .gallery-plaque[data-for="02-a"],
.gallery-figure:has(.spot[href="#upper"]:is(:hover,:focus-visible)) .gallery-plaque[data-for="upper"]{visibility:visible;opacity:1}
@media(prefers-reduced-motion:no-preference){.gallery-plaque{transition:opacity 120ms linear}}

/* Bundle 7: floor plan under each render (L-354). Ink only, no motion. Drawing exported from the v026 master by scripts/blender/export-floor-plan-v026.py. */
.floor-plan{margin:24px 4% 8px;max-width:960px;font-family:var(--font-sans)}
.floor-plan-title{font-size:20px;font-weight:400;margin:0 0 8px}
.floor-plan-floors{display:grid;gap:24px}
.floor-plan-name{margin:0 0 6px;font-size:15px}
.floor-plan-map{position:relative;border:1px solid var(--rule);border-radius:0}
.floor-plan-map svg{display:block;width:100%;height:auto;color:var(--ink)}
.floor-plan-map svg *{vector-effect:non-scaling-stroke}
.floor-plan-map ul{list-style:none;margin:0;padding:0}
.floor-plan-map li{position:absolute;transform:translate(-50%,-50%)}
.floor-plan-map a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:2.75rem;min-height:2.75rem;padding:0 .5rem;border:1px solid var(--ink);border-radius:var(--radius-control);background:var(--paper);color:var(--ink);text-decoration:none;font-size:15px;white-space:nowrap}
.floor-plan-map a:hover{background:var(--plaque)}
@media(min-width:761px){.floor-plan-floors{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.floor-plan-map a{font-size:13.3px}.floor-plan-map .plan-name{display:none}}
#upper-rooms>.floor-plan{margin-left:0;margin-right:0}
/* Bundle 9: links are useless on paper, so the floor plan does not print (BUNDLE-7-NOTES section 8 item 6). */
@media print{.floor-plan{display:none}}
/* Bundle 11: at 480 px and below the Library pin touched or overlapped the 02 pin (1 px apart at 390 px). Lift it by a share of the hero width, so the three room pins share one row. */


/* Bundle A (EXHIBITS-BUILD-SPEC A2, A3): reviewer route under the title; on phones the exhibit cards come before the floor plan (source order). Ink only. */
.reviewer-route{margin:0 4% 18px;max-width:46rem;font-family:var(--font-sans);font-size:16px;line-height:1.6}
.reviewer-route p{margin:0 0 6px}
.reviewer-route .route-label{margin-top:10px;color:var(--ink-muted);font-size:15px}
.route-links{display:flex;flex-wrap:wrap;gap:0 18px;list-style:none;margin:0;padding:0}
.route-links a{display:inline-flex;align-items:center;min-height:2.75rem;text-underline-offset:3px}
/* Source order is the phone order (intro, route, render, exhibit cards, floor plan). From 768 px up the cards keep their old place after the other blocks, by CSS order. */
@media(min-width:768px){
#gallery:not([hidden]){display:flex;flex-direction:column}
#gallery>.exhibit-list{order:1}
/* Flex items do not collapse margins; drop the lower margin of each block so the gaps equal the old collapsed ones. */
#gallery>.floor-plan,#gallery>.gallery-help,#gallery>.room-links{margin-bottom:0}
}

/* Bundle D: Scheme A v2 landing. Four room hotspots on the Crossing still (gallery-hotspots-v027.json), one label per room at every width,
   the tour's ground plan beside a new upper-floor plan, and a key list that carries the links (44 px rows; the plan numbers are labels). */
#gallery .pavilion-spot{width:auto;height:auto;min-width:44px;min-height:44px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:13.3px;line-height:1.2;text-align:center;white-space:nowrap;border-width:2px}
#gallery .pavilion-spot strong{font-weight:600;font-size:14px}
#gallery .pavilion-spot.from-left{transform:translate(0,-50%)}
#gallery .pavilion-spot.from-right{transform:translate(-100%,-50%)}
@media(max-width:340px){#gallery .pavilion-spot.from-left{transform:translate(-14px,-50%)}}
#gallery .pavilion-spot:is(:hover,:focus-visible){background:var(--plaque);color:var(--ink)}
@media(min-width:761px){#gallery .pavilion-spot{font-size:15px;padding:6px 12px}}
.floor-plan-map .plan-num{position:absolute;transform:translate(-50%,-50%);font-size:13.3px;line-height:1;color:var(--ink);pointer-events:none}
.plan-upper .plan-void{stroke-dasharray:4 4}
.floor-plan-floors{align-items:start}
.plan-key{list-style:none;margin:10px 0 0;padding:0;font-size:15px;line-height:1.5}
.plan-key li{margin:0}
.plan-key a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
.floor-plan-caption{margin:6px 0 0;font-size:14px;color:var(--ink-muted)}
@media(min-width:761px){.floor-plan{max-width:1100px}}
