/* The screen and contact sheet share the charcoal of a projection room. */
body[data-edition="cinema"] {
  --paper:#121212; --ink:#f3eee2; --muted:#b6ada0; --wine:#ecc588; --line:#3e3933;
  --brass:#e4ba7b; --console:#211d1d; --film:#171718; --gold-shadow:#80643f;
  color-scheme:dark; color:var(--ink);
  background:radial-gradient(ellipse at 32% 26%,#302021 0,transparent 60%),#111112;
}
body[data-edition="cinema"] .topbar {
  background:#141416; color:#f7f0e1; border-bottom:1px solid #5e3737;
  box-shadow:inset 0 -2px #2d171a;
}
body[data-edition="cinema"] .brand h1 {font-weight:650;letter-spacing:.08em}
body[data-edition="cinema"] .brand h1 span {font-weight:500}
body[data-edition="cinema"] .logo {border-radius:25%;box-shadow:0 0 0 1px #8b6250}
body[data-edition="cinema"] .top-actions {color:#dfd4c2}
body[data-edition="cinema"] .private {color:#b7ac9b}
body[data-edition="cinema"] .edition-button {color:#f2dfbd;border-color:#6b5143;background:#292323}
body[data-edition="cinema"] .layout {gap:clamp(14px,1.45vw,29px)}
body[data-edition="cinema"] .stage,
body[data-edition="cinema"] .catalog {border-radius:3px}
body[data-edition="cinema"] .stage {
  background-color:#2b1419;
  background-image:
    linear-gradient(90deg,#0d090b85,transparent 9%,transparent 88%,#0c070acc),
    linear-gradient(180deg,#1814179c,transparent 30%,transparent 75%,#110e13ad),
    url('../assets/decor/exhibit-backdrop.webp');
  background-position:center; background-size:100% 100%; background-repeat:no-repeat;
  border:1px solid #4b3635;
  box-shadow:0 7px 24px #08060777,inset 0 0 32px #100b14b3;
}
body[data-edition="cinema"] .stage::before {
  inset:5px; z-index:0; border-radius:0;
  border:0; border-left:1px solid #ba8f5d26; border-right:1px solid #ba8f5d26;
}
body[data-edition="cinema"] .stage-head {
  align-items:center;justify-content:center;text-align:center;
  padding:clamp(17px,2.2vh,27px) 24px 12px;
  background:linear-gradient(180deg,#171416 0%,#1e191bd9 86%,#1e191b9e);
  border-bottom:1px solid #ae8c613d;
}
body[data-edition="cinema"] .period {
  justify-content:center;color:#ccaa77;
  font:500 11px/1.1 ui-monospace,'SFMono-Regular',Consolas,monospace;letter-spacing:.17em;
}
body[data-edition="cinema"] .ornament::before {width:10px}
body[data-edition="cinema"] .period::after {content:"";width:21px;height:1px;background:#af8757}
body[data-edition="cinema"] .stage h2 {
  margin:6px 0 0;font-size:clamp(26px,2.4vw,43px);font-weight:600;
  color:#f6e6c5;letter-spacing:.14em;text-shadow:0 2px 12px #070407aa;
}
body[data-edition="cinema"] .map-switch {
  position:absolute;right:clamp(15px,2vw,32px);top:50%;margin:0;transform:translateY(-50%);
  padding:7px 11px;background:#252020;color:#f1ddba;border:1px solid #745e45;border-radius:3px;
}
body[data-edition="cinema"] .map-switch:hover,
body[data-edition="cinema"] .map-switch[aria-pressed="true"] {background:#564038}
body[data-edition="cinema"] .map-area {margin:0 clamp(7px,1.1vw,18px)}
body[data-edition="cinema"] .map-area::before {
  content:"";position:absolute;z-index:-1;inset:0 -2%;pointer-events:none;
  background:radial-gradient(ellipse at 50% 52%,#e2a67117 0%,#eedeba08 43%,transparent 70%);
}
body[data-edition="cinema"] .photo-frame {
  color:#f1d5a9;border:1px solid #ac8355;background:#171718;
  border-radius:2px;padding:6px 6px 0;
  box-shadow:0 0 0 2px #181112,0 12px 24px #060304c9;
}
body[data-edition="cinema"] .frame-caption {
  color:#e8d3af;font-family:inherit;letter-spacing:.055em;font-weight:500;
}
body[data-edition="cinema"] .frame-caption i {width:12px;height:1px;transform:none;background:#c99d61}
body[data-edition="cinema"] .marker span {background:#211718ec;border:1px solid #a67b4e86}
body[data-edition="cinema"] .exhibit-caption {
  margin:0;padding:14px clamp(22px,2.5vw,50px) clamp(16px,2.3vh,27px);
  border-top:1px solid #9a7452;
  background:linear-gradient(110deg,#242020 0%,#1b191b 60%,#171718);
  box-shadow:0 -3px 12px #0a070926;
}
body[data-edition="cinema"] .caption-kicker {color:#e6c28e;letter-spacing:.085em}
body[data-edition="cinema"] .active-light {background:#f09679;box-shadow:0 0 0 3px #b158432c}
body[data-edition="cinema"] .item-no,
body[data-edition="cinema"] .nav-status,
body[data-edition="cinema"] .metadata time,
body[data-edition="cinema"] .loc-date time {font-family:ui-monospace,'SFMono-Regular',Consolas,monospace}
body[data-edition="cinema"] .exhibit-caption h3 {color:#f6ead8;font-weight:600;letter-spacing:.02em}
body[data-edition="cinema"] .metadata {color:#c6b9a8}
body[data-edition="cinema"] .read {
  border-radius:2px;background:#e5c292;color:#231b17;box-shadow:inset 0 0 0 1px #f5debb;
}
body[data-edition="cinema"] .read:hover {background:#ffe0ae}

body[data-edition="cinema"] .catalog {
  color:#ece6da;background:var(--film);border:1px solid #524840;
  box-shadow:0 6px 24px #08060844;
}
body[data-edition="cinema"] .catalog-head {
  padding:clamp(15px,2.1vh,25px) clamp(18px,1.8vw,36px);
  background:#242121;border-bottom:1px solid #796449;
}
body[data-edition="cinema"] .catalog-head h2 {color:#f9e9ca;font-weight:600;letter-spacing:.09em}
body[data-edition="cinema"] .catalog-head p {color:#b9afa1}
body[data-edition="cinema"] .year-control {background:#18181a;color:#e9d7b8;border-color:#605443;border-radius:2px}
body[data-edition="cinema"] .scroller {scrollbar-color:#655440 #191818}
body[data-edition="cinema"] .rows {
  --contact-edge:18px;
  padding-inline:calc(var(--contact-edge) + 7px);
  background-color:#1a191a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='22' viewBox='0 0 13 22'%3E%3Crect x='3' y='7' width='6.5' height='6' rx='1.6' fill='%23665b4b'/%3E%3Crect x='3.5' y='8.2' width='5.5' height='4.3' rx='1.2' fill='%233c3732'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='22' viewBox='0 0 13 22'%3E%3Crect x='3' y='7' width='6.5' height='6' rx='1.6' fill='%23665b4b'/%3E%3Crect x='3.5' y='8.2' width='5.5' height='4.3' rx='1.2' fill='%233c3732'/%3E%3C/svg%3E"),
    linear-gradient(90deg,#121213 var(--contact-edge),#494037 var(--contact-edge),#494037 calc(var(--contact-edge) + 1px),transparent calc(var(--contact-edge) + 1px)),
    linear-gradient(270deg,#121213 var(--contact-edge),#494037 var(--contact-edge),#494037 calc(var(--contact-edge) + 1px),transparent calc(var(--contact-edge) + 1px));
  background-size:13px 22px,13px 22px,100% 100%,100% 100%;
  background-position:2px 0,right 2px top,center,center;
  background-repeat:repeat-y,repeat-y,no-repeat,no-repeat;
}
body[data-edition="cinema"] .row {
  border-radius:1px;padding-inline:clamp(7px,.7vw,13px);
  grid-template-columns:minmax(70px,.44fr) minmax(0,1fr);gap:clamp(12px,1.1vw,20px);
  color:#e7e0d4;
}
body[data-edition="cinema"] .row:not(.selected)::after {left:0;right:0;background:#393436}
body[data-edition="cinema"] .row:hover {background:#292424}
body[data-edition="cinema"] .row.selected {
  background:linear-gradient(105deg,#49282a,#352426);
  border-color:#b1875b;box-shadow:inset 3px 0 #d2a768;
}
body[data-edition="cinema"] .row.selected::before {display:none}
body[data-edition="cinema"] .thumb {
  border-radius:0;padding:2px;background:#080909;box-shadow:0 0 0 1px #544c41;
}
body[data-edition="cinema"] .selected .thumb {box-shadow:0 0 0 1px #b38d60}
body[data-edition="cinema"] .row-title {letter-spacing:.015em;font-weight:550}
body[data-edition="cinema"] .selected .row-title {color:#ffe7bd}
body[data-edition="cinema"] .loc-date {color:#c2b6a6}
body[data-edition="cinema"] .now {color:#f3c68c}
body[data-edition="cinema"] .now i {filter:brightness(1.9) saturate(.65)}
body[data-edition="cinema"] .catalog-foot {border-color:#54473a;background:#242121}
body[data-edition="cinema"] .nav-status {color:#d1b995}
body[data-edition="cinema"] .browse-actions button {color:#dbc39b;background:#1b1919;border-color:#574c40;border-radius:2px}
body[data-edition="cinema"] .browse-actions button:hover:not(:disabled) {color:#f6dfbd;background:#462c2c}
body[data-edition="cinema"] dialog {color:#efe5d3;background:#242021;border:1px solid #756049;border-radius:4px}
body[data-edition="cinema"] dialog::backdrop {background:#0b070abd}
body[data-edition="cinema"] .sources a {color:#f2cb91}
body[data-edition="cinema"] .failure {color:#f8cb98}

@media (max-width:820px),(orientation:portrait) and (max-width:1100px) {
  body[data-edition="cinema"] .layout {padding:6px 7px max(6px,env(safe-area-inset-bottom));gap:6px}
  body[data-edition="cinema"] .stage {
    background-image:linear-gradient(90deg,#10080abb,transparent 8%,transparent 92%,#11080bb3),url('../assets/decor/exhibit-backdrop-mobile.webp');
  }
  body[data-edition="cinema"] .stage-head {padding:7px 13px 6px}
  body[data-edition="cinema"] .stage h2 {font-size:clamp(17px,3.1vw,25px);letter-spacing:.14em;margin:3px 0 0}
  body[data-edition="cinema"] .period {font-size:9px;letter-spacing:.14em}
  body[data-edition="cinema"] .map-switch {right:10px;padding:5px 7px}
  body[data-edition="cinema"] .map-area {margin:0 7px}
  body[data-edition="cinema"] .photo-frame {padding:3px 3px 0}
  body[data-edition="cinema"] .exhibit-caption {margin:0;padding:7px 13px 9px}
  body[data-edition="cinema"] .catalog-head {padding:8px 14px}
  body[data-edition="cinema"] .rows {--contact-edge:14px;padding-inline:calc(var(--contact-edge) + 5px);background-position:0 0,right 0 top,center,center}
  body[data-edition="cinema"] .row {grid-template-columns:minmax(70px,.4fr) minmax(0,1fr);gap:12px;padding-inline:7px}
  body[data-edition="cinema"] .thumb {padding:1px}
}
@media (max-height:580px) and (orientation:landscape) {
  body[data-edition="cinema"] .layout {gap:6px;padding:4px 7px}
  body[data-edition="cinema"] .stage-head {padding:5px 12px}
  body[data-edition="cinema"] .stage h2 {font-size:18px;margin-top:2px}
  body[data-edition="cinema"] .map-switch {right:8px;padding:4px 7px;font-size:11px}
  body[data-edition="cinema"] .period {font-size:9px}
  body[data-edition="cinema"] .exhibit-caption {padding:5px 12px 7px}
  body[data-edition="cinema"] .catalog-head {padding:5px 10px}
  body[data-edition="cinema"] .rows {--contact-edge:12px}
  body[data-edition="cinema"] .row {grid-template-columns:64px minmax(0,1fr)}
}
/* Place the embroidered silhouette inside the screen aperture so the console
   below it never covers the mountain or the commemorative monument. */
body[data-edition="cinema"] .map-area::before {
  inset:0 calc(-1 * clamp(7px,1.1vw,18px));
  background:
    radial-gradient(ellipse at 50% 47%,#ca925b12,transparent 69%),
    linear-gradient(90deg,#08070a4d,transparent 17%,transparent 90%,#08070a99),
    url('../assets/decor/exhibit-backdrop.webp') center bottom / 100% 100% no-repeat;
}
@media (max-width:820px),(orientation:portrait) and (max-width:1100px) {
  body[data-edition="cinema"] .map-area::before {
    inset:0 -7px;
    background-image:
      radial-gradient(ellipse at 50% 47%,#ca925b12,transparent 69%),
      linear-gradient(90deg,#08070a4d,transparent 17%,transparent 90%,#08070a99),
      url('../assets/decor/exhibit-backdrop-mobile.webp');
  }
}
body[data-edition="cinema"] .chooser-heading p {color:#c6b8a5}
body[data-edition="cinema"] .edition-card {color:#f6e3c4;background:#232123;border-color:#655743;border-radius:2px}
body[data-edition="cinema"] .edition-card-text small {color:#d0bfa9}
body[data-edition="cinema"] .edition-card:hover,
body[data-edition="cinema"] .edition-card[aria-current="true"] {border-color:#dab17b;box-shadow:0 0 0 1px #af814e}
body[data-edition="cinema"] .edition-button:hover {background:#453333}
