/* Single-object photographic plates. Color is supplied by the workshop photographs. */
.exhibit {
  --ink: #f6eedc; --body: #e0d8c7; --accent: #ebd49e; --rule: #72817a;
  background: #192d30; color: var(--ink); padding: clamp(54px, 6.5vw, 96px) 0;
}
.exhibit.light {
  --ink: #20312e; --body: #414b43; --accent: #614732; --rule: #aaa990;
  background: #f3eee2;
}
.exhibit-layout, .exhibit-reading {
  width: min(1140px, calc(100% - 2 * clamp(20px, 6vw, 86px))); margin-inline: auto;
}
.exhibit-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center; gap: clamp(28px, 6.8vw, 98px);
}
.exhibit-gallery, .exhibit-words { min-width: 0; }
.exhibit-plate {
  width: 100%; aspect-ratio: 0.91; margin: 0;
  display: grid; place-items: center; overflow: hidden; border: 1px solid #899a87;
  background: #aebdb2 url('assets/approved/exhibit-jade-light.webp') center / cover;
}
.exhibit-photo {
  display: block; width: 100%; height: 100%; box-sizing: border-box;
  padding: clamp(16px, 2.2vw, 36px); object-fit: contain;
  filter: drop-shadow(2px 6px 4px #24332d2e);
}
.exhibit-plate img, .exhibit-plate video { grid-area: 1/1; min-width: 0; min-height: 0; }
.exhibit-plate:has(img[data-full-bleed]) { aspect-ratio: auto; }
.exhibit-plate img[data-full-bleed] { padding: 0; height: auto; filter: none; }
.exhibit video, [data-object-media] video { display: block; width: 100%; height: auto; }
[data-object-media] video[hidden], [data-video-error][hidden] { display: none; }
[data-object-media].is-film :is(.exhibit-photo,.zoom-trigger) { display: none; }
[data-object-media].is-film :is(.exhibit-plate,.display-case) {
  aspect-ratio: auto; height: auto; min-height: 0; background: transparent;
}
.exhibit-choices { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.exhibit-choices button, .exhibit-choices a, .view-line a[data-motion] {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  border: 1px solid var(--rule,#ad9871); border-radius: 0; box-shadow: none;
  min-height: 44px; padding: 6px 14px; background: transparent; color: inherit;
  font: 500 1rem/1.25 Arial,sans-serif; text-decoration: none; cursor: pointer;
}
.exhibit-choices [aria-pressed=true], .exhibit-choices [aria-current=true], .view-line a[data-motion][aria-current=true] {
  color: #182823; background: #e3d2a7; border-color: #d6c299;
}
.exhibit-choices :is(button,a):hover, .view-line a[data-motion]:hover { box-shadow: inset 0 0 0 1px currentColor; }
[data-motion]::before {
  content: ''; width: 0; height: 0; border-left: 8px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.exhibit-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--accent);
  font: 600 .875rem/1.45 Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.exhibit-kicker::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.exhibit h2 {
  margin: 0 0 20px; color: var(--ink); font: 400 clamp(2.85rem, 5.5vw, 5.55rem)/1.01 Georgia,serif;
  letter-spacing: -.052em; text-wrap: balance;
}
.exhibit-story { margin: 0; color: var(--body); max-width: 43ch; font: 400 clamp(1.075rem,1.5vw,1.24rem)/1.57 Georgia,serif; }
.exhibit-story + .exhibit-story { margin-top: .8em; }
.exhibit-action { margin: 22px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.exhibit-action a, .exhibit-reading > summary {
  align-items: center; width: fit-content; min-height: 44px; color: var(--accent);
  font: 600 1rem/1.4 Arial,sans-serif; text-underline-offset: 5px;
}
.exhibit-action a { display: inline-flex; text-decoration: underline; }
.exhibit-action span { font: 400 1.18rem Georgia,serif; }
.exhibit-reading { margin-top: clamp(20px,2.8vw,42px); border-top: 1px solid var(--rule); }
.exhibit-reading > summary { display: flex; list-style: none; cursor: pointer; gap: 12px; padding-block: 10px; }
.exhibit-reading > summary::-webkit-details-marker { display: none; }
.exhibit-reading > summary::after { content: '+'; font-size: 1.25rem; }
.exhibit-reading[open] > summary::after { content: '−'; }
.exhibit-reading > figure { width: min(100%,750px); margin: 12px auto 0; }
.exhibit-reading .fan-board, .seed-study .seed-stage, .exhibit-reading .further-key-mount {
  background: #b5c3b7 url('assets/approved/exhibit-jade-light.webp') center/cover;
}
.exhibit-reading .fan-board .detail-tag, .seed-stage .seed-closeup p { color: #243a31; text-shadow: none; }
.exhibit-reading .fan-board .detail-pointer line { stroke: #5b5946; }
.exhibit-reading .fan-plate { --text:var(--ink); --secondary:var(--body); --accent:var(--ink); }
.exhibit-reading .fan-board { aspect-ratio: 1.55; }
.exhibit-reading .further-reader { --fs-ink:var(--ink); --fs-accent:var(--accent); --fs-muted:var(--body); --fs-rule:var(--rule); }
.exhibit-reading .further-key-pair { border: none; }
.exhibit-reading .further-figure-mount { aspect-ratio: auto; background: transparent; overflow: visible; }
.exhibit-reading .further-figure-view { position: static; }
.exhibit-reading .further-figure-view img { height: auto; width: 100%; display: block; }
.exhibit-reading .further-figure-duo { padding: 0; gap: clamp(8px,2vw,22px); align-items: start; }
.exhibit-reading .further-figure-duo img { width: 100%; height: auto; }
.exhibit-reading .ins-study { padding: 0; background: transparent; color:var(--ink); --ins-muted:var(--body); --ins-ink:var(--ink); --ins-accent:var(--accent); --ins-rule:var(--rule); }
.exhibit-reading .ins-layout { align-items: start; margin-top: 12px; }
.exhibit-reading .ins-whole, .exhibit-reading .ins-detail { max-width: none; min-height: 0; background: transparent; }
.exhibit-reading .ins-full { width: 100%; max-width: none; }
.exhibit-reading .ins-detail { width: min(100%,410px); }
.exhibit-reading .ins-detail svg { width: 100%; height: auto; aspect-ratio: 4/3; }
.exhibit-reading .ins-samples { max-width: 435px; }
[data-video-error] { margin-top: .65em; font: 1rem/1.45 Arial,sans-serif; }
[data-video-error] a { color: inherit; text-decoration: underline; }
.gallery-page .product-hero [data-object-media].is-macro:not(.is-film) .display-case { height:auto; min-height: 0; background: none; border:0; }
.gallery-page .product-hero [data-object-media].is-macro .zoom-trigger { width:fit-content; max-width:100%; height:auto; margin-inline:auto; padding:0; }
.gallery-page .product-hero [data-object-media].is-macro .zoom-trigger img { width:auto; max-width:100%; max-height:clamp(220px,36vw,480px); height:auto; padding:0; }
.v4-paper-detail .v4-paper-parts img { width: auto; max-width: 100%; height: auto; max-height: none; background: transparent; }
.gallery-page [data-object-media] .switch { flex-wrap: wrap; }
.view-line a[data-motion] { color:#f1e9d8; }
.exhibit :is(a,button,summary):focus-visible, .view-line a[data-motion]:focus-visible { outline: 3px solid #bb7e35; outline-offset: 3px; }
@media(max-width:740px) {
  .exhibit-layout { grid-template-columns: 1fr; gap: 0; }
  .exhibit-words { display: contents; }
  .exhibit-kicker { order: 0; margin-bottom: 9px; }
  .exhibit h2 { order: 1; margin-bottom: 20px; }
  .exhibit-gallery { order: 2; width: min(100%, 500px); }
  .exhibit-story { order: 3; margin-top: 18px; }
  .exhibit-action { order: 4; margin-top: 10px; }
  .exhibit-plate { aspect-ratio: .98; }
  .exhibit-reading .fan-board { aspect-ratio: 1.26; }
}
.workroom-preview .workroom-preview-inner { max-width: 1140px; grid-template-columns: minmax(0,.91fr) repeat(2,minmax(0,1fr)); align-items:center; gap:clamp(20px,3.1vw,46px); }
.workroom-preview .workroom-preview-plate { width:100%; max-width:none; justify-self:stretch; }
.workroom-preview .workroom-preview-plate img { width:100%; height:auto; max-height:none; aspect-ratio:auto; padding:0; border:0; }
.workroom-preview-plate figcaption { min-height: 2.7em; }
.book-plate img { border-color:#d3d4be; }
@media(max-width:800px) {
 .workroom-preview .workroom-preview-inner { grid-template-columns: repeat(2,minmax(0,1fr)); align-items:start; gap:clamp(12px,3vw,24px); }
 .workroom-preview-text { grid-column:1/-1; }
}
@media(max-width:500px) {
 .workroom-preview .workroom-preview-inner { grid-template-columns: minmax(0,1fr); gap:23px; }
 .workroom-preview-plate figcaption { min-height: 0; }
}
/* Keep the original art and the text side of the night sky at its native exposure. */
[data-scene="galaxy"] .atlas-home .scene-field::before {
  background: inherit;
  filter: brightness(1.34) saturate(1.05);
  mask-image: linear-gradient(90deg, transparent 12%, #0004 36%, #000 67%);
}
[data-scene="galaxy"] .atlas-home .sky-letter { filter: brightness(1.12) drop-shadow(0 0 .45px #e0cfa985); }
@media (max-aspect-ratio: 4/5), (max-width: 700px) and (orientation: portrait) {
  [data-scene="galaxy"] .atlas-home .scene-field::before { mask-image: linear-gradient(#000 30%, #0008 53%, transparent 73%); }
}
@media (prefers-reduced-motion: reduce) {
  [data-scene="galaxy"] .atlas-home .sky-letter { opacity: .32; }
}
#studio-practice .seed-study {
  background-image: linear-gradient(110deg, #382f2a79, #30272bba), url('assets/approved/v4-studio-light.webp');
}
#studio-practice .seed-study :is(.seed-closeup p, figcaption, figcaption p) { color: #f6eddd; }
#studio-practice .seed-closeup p { color:#243a31; }
#studio-practice .seed-stage { column-gap: 4%; padding: 3% 4%; }
#studio-practice .seed-closeup {
  justify-self:center; display:grid; justify-items:center; width:100%; max-width:170px;
  background: #33473e; border:1px solid #758270; padding:clamp(10px,1.5vw,21px) 6px;
}
#studio-practice .seed-closeup .seed-glyph { width:min(77%,112px); }
#studio-practice .seed-closeup p { color:#f6eedc; margin:8px 2px 0; }
[data-object-media] .film-credit { display: none; margin: 9px 0 0; font: 400 .9rem/1.45 Arial,sans-serif; color: inherit; }
[data-object-media].is-film .film-credit { display: block; }

/* The physical key is tall. Give its face a larger reading size on narrow screens. */
#key-study .exhibit-plate { aspect-ratio: 1600 / 1498; background: transparent; border: 0; }
#key-study .exhibit-photo { padding: clamp(10px, 1.2vw, 18px); filter: none; }
#key-study .exhibit-gallery:has([data-key-face="pair"][aria-pressed="true"]) .exhibit-photo {
  padding: 0;
}
#key-study [data-object-media].is-film .exhibit-plate { aspect-ratio: auto; }
#key-details { scroll-margin-top: 1.2rem; }
#key-details .further-reader { width: min(100%, 800px); }
#key-details .further-key-mount {
  aspect-ratio: auto; overflow: visible; background: none; border: 0;
}
#key-details .further-key-pair {
  position: static; display: grid; grid-template-columns: minmax(130px,.58fr) minmax(0,1fr);
  align-items: center; gap: clamp(14px,3vw,40px); border: 0;
}
#key-details .further-full-key {
  display: block; width: auto; height: auto; max-height: 460px; max-width: 100%;
  aspect-ratio: auto; filter: none;
}
#key-details .further-key-detail {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 495px;
  aspect-ratio: auto; border: 0; border-radius: 0; margin: 0;
}
#key-details .further-key-pair[hidden] { display: none; }
@media (max-width:620px) {
  #key-details .further-key-pair { grid-template-columns: minmax(0,1fr); }
  #key-details .further-full-key { display: none; }
  #key-details .further-key-detail { max-height: min(480px,75svh); }
}
#mahakala-study .exhibit-gallery:has([data-film-kind="studio"][aria-current]) .exhibit-plate {
  width: min(100%, calc(78vh * var(--studio-film-ratio, .5625)));
  width: min(100%, calc(78svh * var(--studio-film-ratio, .5625))); margin-inline:auto;
}
#mahakala-study .further-figure-view[data-further-panel="finished"] { background: transparent; }
#mahakala-study .further-figure-view[data-further-panel="finished"] .further-figure-single {
  width: auto; height: auto; max-width: 100%; max-height: min(70svh,620px); margin-inline:auto;
}

/* The plaque, its apertures and all of its studies sit directly on the page. */
#pixiu-study .exhibit-plate, .pixiu-product .product-hero .display-case,
.pixiu-product .plaque-light { background: transparent; border: 0; }
#pixiu-study .exhibit-photo, .pixiu-product .zoom-trigger img,
.pixiu-product .plaque-print > img { filter: none; }
#pixiu-study .exhibit-photo { padding: clamp(8px,1.2vw,18px); }
.pixiu-product .view-line { flex-wrap: wrap; gap: 8px; }
.pixiu-product #zoom { background: #192d30; }
.pixiu-product #zoom img { background: transparent; }
.pixiu-archive { margin-top: clamp(48px,7vw,96px); padding-top: clamp(26px,4vw,60px); border-top: 1px solid var(--reader-rule); }
.pixiu-archive .eyebrow { margin: 0 0 10px; color: var(--reader-gold); }
.pixiu-archive .pixiu-archive-pair { display: grid; grid-template-columns: .86fr 1.14fr; align-items: end; gap: clamp(20px,5vw,72px); margin-top: clamp(18px,3vw,38px); }
.pixiu-archive figure { margin: 0; min-width: 0; }
.pixiu-archive img { display: block; width: auto; max-width: 100%; height: auto; max-height: 455px; background: transparent; }
.pixiu-archive figcaption { padding: .65em 0 0; color: var(--reader-muted); font: 400 1rem/1.4 Georgia,serif; }
@media(max-width:620px) {
  .pixiu-archive .pixiu-archive-pair { grid-template-columns: 1fr; gap: 28px; }
  .pixiu-archive img { max-height: 370px; }
}

#mahakala-study .exhibit-plate { background: transparent; border: 0; }
#mahakala-study .exhibit-photo { padding: clamp(10px,1.3vw,20px); filter: none; }

#mirror-study .exhibit-plate, .mirror-product .product-hero .display-case,
#mirror-study .ins-whole, .mirror-product .detail-frame { background: transparent; border: 0; }
#mirror-study .exhibit-plate { aspect-ratio: 1; }
#mirror-study .exhibit-photo { padding: 5.4%; filter: none; }
.mirror-product .product-hero .zoom-trigger img { filter: none; }
.mirror-product .view-line { flex-wrap: wrap; gap: 8px; }
.heritage-object img.studio-mirror-stand {
  aspect-ratio: 1120 / 1232; object-fit: contain; box-sizing: border-box; padding: 4%;
}

/* Reserve room below the gold figure for the native playback controls. */
@supports (height: 100cqw) {
  #mahakala-study .exhibit-gallery { container-type: inline-size; }
  #mahakala-study .is-film:has([data-apple-film][aria-current]) video:not(:fullscreen) {
    height: calc(100cqw + 77px);
    object-fit: contain;
    object-position: center top;
  }
}
