/* Shared framing for the four exhibition rooms. */
body[data-edition] .topbar{
  position:relative;isolation:isolate;display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;gap:12px;padding-inline:clamp(15px,3.1vw,62px);color:#f5e6ca
}
body[data-edition="classic"] .topbar{
  background:linear-gradient(105deg,#421319,#641e24 44%,#54191c 70%,#391114);
  border-bottom:1px solid #b69359;box-shadow:inset 0 -3px 0 #521c21,inset 0 -4px 0 #b78b523d
}
body[data-edition] .artist-credit{grid-column:1;justify-self:start;gap:9px;min-width:0;color:#f4e1bb;font:600 16px/1.2 var(--serif);letter-spacing:.12em}
body[data-edition] .mast-title{
  grid-column:2;display:flex;align-items:center;justify-content:center;
  color:#ebc77c;font:700 clamp(30px,3.4vw,53px)/1 var(--serif);letter-spacing:.12em;white-space:nowrap;
  margin:0;min-width:0;isolation:isolate;
}
.mast-title::before,.mast-title::after{
  content:"";width:clamp(16px,4.8vw,86px);height:3px;margin-inline:clamp(9px,1.6vw,30px);
  border-block:1px solid #d7af635e;opacity:.9
}
.mast-title .gold-title{display:block;width:clamp(176px,17vw,277px);height:clamp(52px,7.9vh,69px);object-fit:contain}
@media(max-width:820px){.mast-title .gold-title{width:clamp(132px,26vw,212px);height:43px}}
@media(max-height:580px) and (orientation:landscape){.mast-title .gold-title{width:145px;height:34px}}
body[data-edition] .top-actions{grid-column:3;justify-self:end;gap:clamp(9px,1.25vw,22px)}
body[data-edition="classic"] .private, body[data-edition="classic"] .info-button{color:#e7d3b4}
body[data-edition="classic"] .edition-button{color:#f8e7c7;border-color:#ae8659;background:#722e30}
body[data-edition="classic"] .divider{background:#ad87525c}
body[data-edition] .stage-head{
  min-height:48px;align-items:center;padding-block:7px 5px;flex:none
}
body[data-edition] .stage-head>div:first-child{display:flex;align-items:center;gap:clamp(10px,1.3vw,23px)}
body[data-edition] .stage-head h2{font-size:clamp(21px,1.9vw,33px);margin:0;line-height:1.22}
body[data-edition] .stage-head .period{font-size:11px;white-space:nowrap}
body[data-edition="journal"] .stage-head>div::before{width:30px}
body[data-edition="journal"] .stage-head>div:first-child{padding-left:37px}
body[data-edition="dispatch"] .period{writing-mode:horizontal-tb;padding:4px 6px}
body[data-edition="dispatch"] .period #period{width:auto;white-space:nowrap}
body[data-edition] .exhibit-caption{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:3px;
  padding-block:10px 14px
}
body[data-edition] .caption-kicker{grid-column:1;grid-row:1}
body[data-edition] .exhibit-caption h3{grid-column:1;grid-row:2;margin:0;line-height:1.28}
body[data-edition] .exhibit-caption .details{display:contents}
body[data-edition] .exhibit-caption .metadata{grid-column:1;grid-row:3}
body[data-edition] .exhibit-caption .read{grid-column:2;grid-row:1 / span 3}
/* Preserve the source projection. The smaller viewport removes transparent margins only.
   Both the origin pin and animation use the original picture's painted coordinate space. */
body[data-edition] .geo{width:97%;aspect-ratio:1323/1062;max-height:none;overflow:hidden}
body[data-edition] .geo .atlas-picture{position:absolute;left:-2.04081633%;top:-.84745763%;width:108.84353742%;height:101.69491525%}
@supports(width:1cqh){body[data-edition] .geo{width:min(99cqw,124.45cqh)}}
body[data-edition] .photo-frame{width:min(30%,244px)}
@media(min-width:821px) and (orientation:landscape){
 body[data-edition] .layout{padding-block:clamp(9px,1.5vh,20px)}
}
@media(max-width:1040px){
 body[data-edition] .private,body[data-edition] .divider,body[data-edition] .info-button span{display:none}
}
@media(max-width:820px),(orientation:portrait) and (max-width:1100px){
 body[data-edition] .topbar{gap:4px;padding-inline:12px}
 body[data-edition] .layout{grid-template-rows:minmax(0,1.17fr) minmax(0,1fr)}
 body[data-edition] .stage-head{min-height:31px;padding:5px 13px 2px}
 body[data-edition] .stage-head h2{font-size:clamp(16px,2.8vw,24px)}
 body[data-edition] .stage-head .period{font-size:9px}
 body[data-edition] .stage-head>div:first-child{gap:7px}
 body[data-edition] .map-area{margin-inline:2px;padding:0}
 body[data-edition] .exhibit-caption{padding-block:6px 8px;column-gap:6px;row-gap:3px}
 body[data-edition] .exhibit-caption h3{font-size:clamp(16px,2.7vw,23px)}
 body[data-edition] .artist-credit{font-size:12px}
 body[data-edition] .photo-frame{width:min(27%,170px)}
}
@media(max-width:600px){
 body[data-edition] .artist-credit>span{display:none}
 .mast-title::before,.mast-title::after{width:13px;margin-inline:6px;height:2px}
 body[data-edition] .top-actions{gap:6px}
 body[data-edition] .edition-button{padding:7px}
 body[data-edition] .edition-button>span{display:none}
 body[data-edition] .info-button{padding-inline:3px}
 body[data-edition] .stage-head .ornament::before{width:8px}
 body[data-edition="journal"] .stage-head>div:first-child{padding-left:24px}
 body[data-edition="journal"] .stage-head>div::before{width:19px}
}
@media(max-height:580px) and (orientation:landscape){
 body[data-edition] .layout{grid-template-rows:minmax(0,1fr)}
 body[data-edition] .stage-head{min-height:25px;padding-block:2px}
 body[data-edition] .stage-head h2{font-size:16px}
 body[data-edition] .exhibit-caption{padding-block:3px 6px;row-gap:1px}
}
