/* In-place stage. Grid reserves the tallest panel, avoiding scroll movement on switching. */
.jds-stage { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:52px; align-items:start; padding-block:24px 60px; }
.jds-stage-art { min-width:0; padding-top:7px; }
.jds-art-enlarge { position:relative; display:block; cursor:zoom-in; }
.jds-art-enlarge > img { width:100%; height:auto; box-shadow:0 14px 35px #242c3110; }
.jds-enlarge-cue { position:absolute; bottom:16px; right:16px; padding:7px 12px; background:#faf9f6eb; color:#242c31; font-size:10px; letter-spacing:.04em; display:flex; gap:20px; align-items:center; }
.jds-enlarge-cue > span { font-size:20px; }
.jds-stage-art figcaption { display:flex; justify-content:space-between; gap:12px; font-size:10px; color:var(--jds-muted); margin-top:14px; }
.jds-stage-companion { min-width:0; }
.jds-stage-heading h1 { font-size:clamp(42px,4.1vw,60px); margin-bottom:17px; }
.jds-stage-heading .jds-eyebrow { margin-bottom:16px; }
.jds-stage-heading .jds-byline { margin-bottom:19px; }
.jds-stage-heading .jds-hook { font-size:23px; margin-bottom:20px; }
.jds-stage-controls { display:flex; gap:28px; border-bottom:1px solid #bfc6c0; margin-bottom:22px; }
.jds-stage-controls a { font:600 12px/1.4 var(--jds-sans); text-transform:uppercase; letter-spacing:.12em; min-height:48px; display:flex; gap:10px; align-items:center; border-bottom:2px solid transparent; margin-bottom:-1px; }
.jds-stage-controls a[aria-selected="true"] { border-color:var(--jds-accent); color:var(--jds-accent); }
.jds-stage-controls a:hover { text-decoration:none; color:var(--jds-accent); }
.jds-stage-panel { min-width:0; padding:0 0 5px; }
.jds-stage-panel p { font-size:14px; line-height:1.8; }
.jds-stage-panel .jds-panel-caption { font:25px/1.25 var(--jds-serif); margin:0 0 22px; }
.jds-stage-ready .jds-stage-panels { display:grid; }
.jds-stage-ready .jds-stage-panel { grid-area:1/1; align-self:start; }
.jds-stage-ready .jds-stage-panel[hidden] { display:block!important; visibility:hidden; pointer-events:none; }
.jds-stage-panel:not([hidden]) { visibility:visible; }
.jds-stage-story blockquote { margin:22px 0 10px; padding:0 0 0 17px; }
.jds-stage-story blockquote p { font:16px/1.55 var(--jds-serif); margin-bottom:10px; }
.jds-stage-story blockquote cite { font-size:9px; }
.jds-stage-gift-hint { display:block; font-size:11px; min-height:44px; padding-top:10px; text-decoration:underline!important; text-underline-offset:4px; }
.jds-stage .jds-stage-footnote { font-size:11px; color:var(--jds-muted); margin-top:22px; }
.jds-stage .jds-video-module { margin:0; }
.jds-stage .jds-video-module figcaption { font-size:10px; }
.jds-stage .jds-video { width:100%; }
.jds-stage-own { background:#e5e9e2; padding:28px; }
.jds-stage-own .jds-purchase-unavailable { border:0; background:none; padding:0; }
.jds-stage-own .jds-purchase-unavailable h3 { font-size:33px; }
.jds-stage-own .jds-text-link { margin-top:20px; }
.jds-stage-own .jds-selector-slot { max-width:100%; min-width:0; overflow-x:auto; }
.jds-artwork-stage-page .jds-close-study { border-top:1px solid var(--jds-border); padding-top:62px; }
.jds-artwork-stage-page .jds-artwork-facts { margin-bottom:0; }
.jds-art-viewer { box-sizing:border-box; width:calc(100vw - 48px); max-width:1600px; height:calc(100dvh - 48px); max-height:none; border:0; padding:22px 28px; background:#17201c; color:#fff; }
.jds-art-viewer::backdrop { background:#0a100ff2; }
.jds-art-viewer[open] { display:flex; flex-direction:column; }
.jds-viewer-bar { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-shrink:0; }
.jds-viewer-bar p { color:#f7f4eb; font:15px/1.4 var(--jds-serif); margin:0; }
.jds-viewer-bar p span { color:#bac0ba; }
.jds-viewer-bar button { min-height:48px; border:1px solid #7f8881; background:none; color:white; padding:5px 16px; cursor:pointer; font:12px var(--jds-sans); display:flex; align-items:center; gap:25px; }
.jds-viewer-bar button span { font-size:24px; }
.jds-viewer-image { flex:1; min-height:0; display:flex; justify-content:center; padding-top:20px; }
.jds-viewer-image img { max-width:100%; height:100%; object-fit:contain; width:100%; }
@media(min-width:768px) and (max-width:1100px) {
 .jds-stage { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:30px; }
 .jds-stage-heading h1 { font-size:42px; }
 .jds-stage-panel p { font-size:13px; }
 .jds-stage-controls { gap:22px; }
 .jds-stage-own { padding:22px; }
}
@media(max-width:767px) {
 .jds-stage { grid-template-columns:1fr; gap:28px; padding-block:10px 35px; }
 .jds-stage-art { padding-top:0; }
 .jds-stage-art figcaption { font-size:9px; }
 .jds-stage-heading h1 { font-size:43px; margin-bottom:13px; }
 .jds-stage-heading .jds-eyebrow { font-size:9px; margin-bottom:10px; }
 .jds-stage-heading .jds-byline { margin-bottom:12px; }
 .jds-stage-heading .jds-hook { font-size:22px; margin-bottom:14px; }
 .jds-stage-controls { gap:0; justify-content:space-between; margin-bottom:21px; }
 .jds-stage-controls a { min-height:50px; min-width:86px; justify-content:center; }
 .jds-stage-panel p { font-size:14px; }
 .jds-stage-own { padding:25px; }
 .jds-artwork-stage-page .jds-close-study { padding-top:35px; }
 .jds-art-viewer { width:100vw; height:100dvh; padding:16px; }
 .jds-viewer-bar p span { display:block; font-size:12px; }
 .jds-viewer-bar button { gap:14px; padding-inline:10px; }
}

.jds-stage .jds-video { aspect-ratio:16/9; overflow:hidden; }
.jds-stage .jds-video > button,.jds-stage .jds-video > iframe { position:absolute; inset:0; width:100%; height:100%; }

/* Let the mobile dialog fit the full painting; use safe areas, not an empty full-height box. */
@media(max-width:767px){.jds-art-viewer{width:calc(100vw - 8px);height:auto;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px);padding:12px 4px 4px}.jds-viewer-bar{padding:0 8px;gap:12px}.jds-viewer-image{padding-top:12px;flex:0 1 auto}.jds-viewer-image img{height:auto;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 104px);width:100%;object-fit:contain}}

/* FIWC’s retained Bootstrap reset must not expose a closed native dialog. */
.jds-art-viewer:not([open]) { display:none; }
