/* The map, its origin marker and the cover are one interactive layer.
   The complete parade scene extends behind the room heading to the photo caption. */
body[data-edition] .stage{background-image:none}
.exhibition-scene{
  --scene:url('assets/panorama/parade-curve-crimson.webp');
  --portrait-scene:url('assets/panorama/parade-curve-crimson-mobile.webp');
  display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;isolation:isolate;
  container:parade-scene / size;position:relative;background-color:#4c191c;overflow:hidden;
}
.parade-backdrop{
  position:absolute;z-index:-1;inset:0;pointer-events:none;
  background-image:var(--scene);background-repeat:no-repeat;background-position:center bottom;background-size:cover;
}
body[data-edition="journal"] .exhibition-scene,body[data-edition="dispatch"] .exhibition-scene{
  --scene:url('assets/panorama/parade-curve-paper.webp');
  --portrait-scene:url('assets/panorama/parade-curve-paper-mobile.webp');background-color:#e4cfa6
}
body[data-edition="cinema"] .parade-backdrop{filter:saturate(.78) brightness(.92)}
body[data-edition="journal"] .parade-backdrop{filter:saturate(.65)}
body[data-edition="dispatch"] .parade-backdrop{filter:contrast(1.035)}
@container parade-scene (max-aspect-ratio:26/25){
  .parade-backdrop{background-image:var(--portrait-scene)}
}
body[data-edition] .exhibition-scene .stage-head{position:absolute;inset:0 0 auto;z-index:3;background:none;border-bottom-color:transparent;pointer-events:none}
.exhibition-scene .map-switch{pointer-events:auto}
body[data-edition="classic"] .stage-head{color:#ffe5be}
body[data-edition="classic"] .exhibit-caption{border-top:0}
body[data-edition="journal"] .stage-head h2,body[data-edition="dispatch"] .stage-head h2{text-shadow:0 1px 4px #fff1ce}
body[data-edition] .exhibition-scene .map-area{margin:clamp(12px,2.7cqh,22px) 0 clamp(5px,1.2cqh,12px);padding:0;background:none;overflow:visible}
body[data-edition] .exhibition-scene .map-area::after,body[data-edition] .exhibition-scene .map-area::before{content:none}
/* Symmetric clear margins around the photographed land. Use this same picture
   rectangle for the place marker and its animation, at every viewport size. */
body[data-edition] .exhibition-scene .geo{width:min(96cqw,119cqh);aspect-ratio:1280/1068;transform:none;z-index:1;overflow:visible}
body[data-edition] .exhibition-scene .atlas-picture{left:-6.25%;top:-.56179775%;width:112.5%;height:101.1235955%}
body[data-edition] .exhibition-scene .photo-frame{top:47%;width:min(27%,234px)}
.atlas-picture{isolation:isolate}
body[data-edition] .mast-title .gold-title{filter:none}
/* Gold flecks stay visible beside the dark brush strokes on a paper ground. */
body[data-edition]{--mast-h:clamp(77px,9.3vh,98px);--mast-rule:#804037}
body[data-edition="cinema"]{--mast-rule:#393535}
body[data-edition="journal"]{--mast-rule:#3c584b}
body[data-edition="dispatch"]{--mast-rule:#922b27}
body[data-edition] .topbar{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  height:var(--mast-h);color:#352924;border:0;border-bottom:3px solid var(--mast-rule);
  background:linear-gradient(100deg,#eae0ce,#f5eddf 23%,#fcf7ed 51%,#f5eddf 76%,#eae0ce);
  box-shadow:inset 0 1px 0 #fffaf2;
}
body[data-edition] .topbar::before,body[data-edition] .topbar::after{content:none}
body[data-edition] .topbar .artist-credit{color:#513c30}
body[data-edition] .top-actions .private,body[data-edition] .top-actions .info-button{color:#5b493b}
body[data-edition] .top-actions .edition-button{color:#5b4330;background:#fff9ef;border:1px solid #bda88b}
body[data-edition] .top-actions .divider{background:#b3a18a}
body[data-edition] .mast-title .gold-title{width:clamp(195px,21vw,352px);height:calc(var(--mast-h) - 12px)}
body[data-edition] .layout{height:calc(100vh - var(--mast-h));height:calc(100dvh - var(--mast-h))}
@media(min-width:1101px) and (orientation:landscape){
  body[data-edition] .layout{grid-template-columns:minmax(0,1.78fr) minmax(330px,1fr)}
}
@media(min-width:821px) and (orientation:landscape){
  body[data-edition] .layout{padding-block:clamp(6px,.95vh,12px)}
  body[data-edition] .exhibit-caption{padding-block:7px 9px}
}
@media(min-width:921px) and (min-height:600px) and (orientation:landscape){
  body[data-edition] .exhibition-scene .map-area{margin-block:clamp(4px,1.04cqh,8px) clamp(14px,2.86cqh,24px)}
}
@media(max-width:820px),(orientation:portrait) and (max-width:1100px){
  body[data-edition]{--mast-h:60px}
  body[data-edition] .mast-title .gold-title{width:clamp(148px,33vw,218px);height:calc(var(--mast-h) - 10px)}
}
@media(orientation:portrait) and (max-width:1100px), (max-width:820px) and (min-height:581px){
  body[data-edition] .layout{grid-template-rows:minmax(0,1.72fr) minmax(0,1fr)}
}
@media(orientation:portrait) and (max-height:700px){
  body[data-edition] .layout{grid-template-rows:minmax(0,1.5fr) minmax(0,1fr)}
}
@media(max-width:340px){
  body[data-edition] .mast-title::before,body[data-edition] .mast-title::after{width:6px}
}
@media(max-width:359px){
  body[data-edition] .stage-head .period{display:none}
  body[data-edition] .stage-head h2,body[data-edition] .map-switch{white-space:nowrap}
  body[data-edition] .exhibition-scene .map-area{margin-top:26px}
}
@media(max-height:580px) and (orientation:landscape){
  body[data-edition]{--mast-h:43px}
  body[data-edition] .mast-title .gold-title{width:145px;height:37px}
}
@media(max-width:820px),(orientation:portrait) and (max-width:1100px){
 body[data-edition] .exhibition-scene .geo{width:min(99cqw,119cqh)}
 body[data-edition] .exhibition-scene .photo-frame{width:min(25%,170px)}
}
