body.ex-case-open {
  overflow: hidden;
}

.ex-case {
  --case-gutter: clamp(22px, 3.7vw, 60px);
  box-sizing: border-box;
  width: min(1480px, calc(100% - 64px));
  max-width: none;
  max-height: calc(100% - 52px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ex-line, #312e31);
  overflow: auto;
  overscroll-behavior: contain;
  background: #121113;
  color: var(--ex-ink, #f7f4f2);
  scrollbar-color: #565257 #121113;
}

.ex-case[open] {
  animation: ex-case-enter 260ms var(--ex-ease, cubic-bezier(.16, 1, .3, 1));
}

.ex-case::backdrop {
  background: #020203df;
  backdrop-filter: blur(6px);
}

.ex-case *, .ex-case *::before, .ex-case *::after {
  box-sizing: border-box;
}

.ex-case [hidden] {
  display: none !important;
}

.ex-case button, .ex-case input {
  font: inherit;
}

.ex-case button {
  color: inherit;
  cursor: pointer;
}

.ex-case button:disabled {
  cursor: default;
}

.ex-case :focus-visible {
  outline: 2px solid var(--ex-accent, #ff5548);
  outline-offset: 3px;
}

.ex-case svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ex-case-header {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding: clamp(26px, 3.2vw, 44px) var(--case-gutter) 24px;
  border-bottom: 1px solid var(--ex-line, #312e31);
}

.ex-case-header > div {
  min-width: 0;
}

.ex-case-brand {
  margin: 0 0 8px;
  color: var(--ex-accent, #ff5548);
  font-size: 13px;
  letter-spacing: .035em;
}

.ex-case-header h2 {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(27px, 3.7vw, 57px);
  font-weight: 570;
  line-height: 1.12;
  letter-spacing: -.038em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ex-case-back {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--ex-line, #312e31);
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 170ms ease, color 170ms ease;
}

.ex-case-back:hover, .ex-case-back:focus-visible {
  border-color: var(--ex-accent, #ff5548);
  color: var(--ex-accent, #ff5548);
}

.ex-case-groups {
  display: flex;
  gap: 22px;
  padding: 0 var(--case-gutter);
  border-bottom: 1px solid var(--ex-line, #312e31);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ex-case-groups button {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ex-muted, #b2aaaf);
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}

.ex-case-groups button:hover,
.ex-case-groups button[aria-pressed="true"] {
  color: var(--ex-ink, #f7f4f2);
  border-bottom-color: var(--ex-accent, #ff5548);
}

.ex-case-groups button:focus-visible {
  outline-offset: -3px;
}

.ex-case-groups button span {
  color: var(--ex-accent, #ff5548);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.ex-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(230px, 1fr);
  column-gap: clamp(26px, 4.1vw, 66px);
  padding: clamp(22px, 3vw, 37px) var(--case-gutter) clamp(28px, 3.1vw, 46px);
}

.ex-case-main, .ex-case-info {
  min-width: 0;
}

.ex-case-figure {
  margin: 0;
}

.ex-case-viewport {
  position: relative;
  height: clamp(260px, 47svh, 620px);
  padding: clamp(10px, 1.5vw, 24px);
  border: 1px solid var(--ex-line, #312e31);
  background: #080809;
  overflow: hidden;
  touch-action: pan-y;
}

.ex-case-art {
  display: grid;
  height: 100%;
  place-items: center;
}

.ex-case-art img,
.ex-case-art video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.ex-case-art img {
  visibility: hidden;
}

.ex-case-art img.is-ready {
  visibility: visible;
}

.ex-case-media-status {
  position: absolute;
  inset: 50% 16px auto;
  z-index: 1;
  margin: 0;
  color: var(--ex-muted, #b2aaaf);
  text-align: center;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.ex-case-caption {
  min-height: 18px;
  padding-top: 10px;
  color: var(--ex-muted, #b2aaaf);
  font-size: 13px;
  line-height: 1.55;
}

.ex-case-navigation {
  display: grid;
  grid-template-columns: 44px minmax(55px, auto) 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-block: 8px;
  border-block: 1px solid var(--ex-line, #312e31);
}

.ex-case-navigation button {
  display: grid;
  width: 44px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ex-line, #312e31);
  background: none;
}

.ex-case-navigation button:hover:not(:disabled),
.ex-case-navigation button:focus-visible {
  border-color: var(--ex-accent, #ff5548);
  color: var(--ex-accent, #ff5548);
}

.ex-case-navigation button:disabled {
  opacity: .35;
}

.ex-case-count {
  color: var(--ex-muted, #b2aaaf);
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ex-case-progress {
  appearance: none;
  display: block;
  width: calc(100% - 12px);
  min-width: 0;
  height: 36px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ex-case-progress:disabled {
  opacity: .4;
  cursor: default;
}

.ex-case-progress::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ex-accent, #ff5548) var(--ex-case-progress, 0%), #48444a var(--ex-case-progress, 0%));
}

.ex-case-progress::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ex-accent, #ff5548) var(--ex-case-progress, 0%), #48444a var(--ex-case-progress, 0%));
}

.ex-case-progress::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--ex-accent, #ff5548);
}

.ex-case-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ex-accent, #ff5548);
}

.ex-case-strip {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 12px 0 6px;
  overflow-x: auto;
  scrollbar-color: #5b5355 #151316;
  scrollbar-width: thin;
}

.ex-case-strip button {
  position: relative;
  flex: 0 0 clamp(60px, 6vw, 91px);
  padding: 0;
  aspect-ratio: 1.6;
  border: 1px solid var(--ex-line, #312e31);
  background: #060607;
  opacity: .7;
  overflow: hidden;
}

.ex-case-strip button:hover,
.ex-case-strip button[aria-current="true"] {
  border-color: var(--ex-accent, #ff5548);
  opacity: 1;
}

.ex-case-strip button:focus-visible {
  outline-offset: -3px;
}

.ex-case-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-case-thumb-play {
  position: absolute;
  inset: auto 3px 3px auto;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: white;
  background: #0b090bd9;
}

.ex-case-thumb-play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

.ex-case-info {
  align-self: start;
  display: flow-root;
}

.ex-case-description {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.65;
}

.ex-case-scope, .ex-case-group-note p, .ex-case-process p {
  margin: 0;
  color: var(--ex-muted, #b2aaaf);
  font-size: 13px;
  line-height: 1.75;
}

.ex-case-group-note, .ex-case-process {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ex-line, #312e31);
}

.ex-case-group-note h3 {
  margin: 0 0 6px;
  color: var(--ex-accent, #ff5548);
  font-size: 14px;
  font-weight: 530;
}

.ex-case-process summary {
  min-height: 30px;
  cursor: pointer;
  font-size: 14px;
}

.ex-case-process summary::marker {
  color: var(--ex-accent, #ff5548);
}

.ex-case-process p + p {
  margin-top: 8px;
}

.ex-case a.ex-case-original {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 18px;
  color: var(--ex-accent, #ff5548);
  font-size: 13px;
  text-underline-offset: 5px;
}

@keyframes ex-case-enter {
  from { opacity: 0; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .ex-case {
    --case-gutter: clamp(14px, 4.5vw, 31px);
    width: calc(100% - 22px);
    max-height: calc(100% - 30px);
  }

  .ex-case-header {
    gap: 11px;
    padding-block: 19px 15px;
  }

  .ex-case-header h2 {
    font-size: clamp(22px, 5.5vw, 34px);
  }

  .ex-case-back {
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
  }

  .ex-case-back > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ex-case-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .ex-case-viewport {
    height: clamp(182px, 59vw, 350px);
    padding: 6px;
  }

  .ex-case-viewport.is-portrait {
    height: min(57svh, 118vw);
  }

  .ex-case-info {
    padding-block: 20px 0;
    border-top: 1px solid var(--ex-line, #312e31);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-case[open] {
    animation: none;
  }
}


.ex-case-viewport { position: relative; }
.ex-case .ex-case-edge { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff65; border-radius: 50%; background: #09090bd9; color: white; z-index: 2; }
.ex-case-edge.edge-prev { left: 8px; }
.ex-case-edge.edge-next { right: 8px; }
.ex-case .ex-case-edge:disabled { opacity: .25; pointer-events: none; }
.ex-case .ex-case-edge:is(:hover,:focus-visible):enabled { background: #a02d26; }

.ex-case-main {display:flex;flex-direction:column;min-width:0;}
.ex-case-overview,.ex-enlarge,.ex-art-zoom button {background:#201819;color:white;border:1px solid #705451;padding:8px 13px;cursor:pointer;}
.ex-case-overview {align-self:flex-start;order:-2;margin-bottom:10px;}
.ex-case-overview:is(:hover,[aria-expanded="true"]),.ex-enlarge:hover {border-color:#ff6453;color:#ffb2a5;}
.ex-case-art img {cursor:zoom-in;}
.ex-enlarge {position:absolute;right:10px;bottom:10px;z-index:2;}
.ex-case-strip .ex-thumb-name {display:none;}
.ex-case-strip.is-overview {order:-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,42%),1fr));gap:10px;padding:4px 2px 16px;max-height:45vh;overflow:auto;}
.ex-case-strip.is-overview button {width:100%;height:auto;aspect-ratio:auto;text-align:left;background:#181517;color:white;}
.ex-case-strip.is-overview img {width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;}
.ex-case-strip.is-overview .ex-thumb-name {display:block;line-height:1.4;padding:5px;font-size:12px;}
.ex-case-strip button:is(:hover,:focus-visible) {outline:1px solid #ff6859;filter:brightness(1.12);}
.ex-art-zoom {position:fixed;inset:0;margin:auto;border:0;padding:44px 8px 8px;background:#090909;width:96vw;height:94dvh;max-width:100vw;}
.ex-art-zoom::backdrop {background:#000c;}
.ex-art-zoom img {display:block;width:100%;height:100%;object-fit:contain;}
.ex-art-zoom button {position:absolute;right:8px;top:5px;}

/* Edge-to-edge exhibition, with supporting material below the artwork. */
dialog.ex-case {
  inset: 0;
  width: 100%; height: 100dvh; max-height: none;
  margin: 0; border: 0; background: #080809;
  --case-gutter: clamp(16px, 3vw, 54px);
}
.ex-case-header {
  position: sticky; top: 0; z-index: 4;
  align-items: center; padding: 8px var(--case-gutter);
  background: #101012;
}
.ex-case-header > div { display: flex; align-items: baseline; gap: 15px; }
.ex-case-brand { margin: 0; font-size: 11px; }
.ex-case-header h2 { max-width: none; font-size: clamp(17px, 1.7vw, 28px); line-height: 1.25; }
.ex-case-layout { display: block; padding: 0 0 32px; }
.ex-case-viewport {
  height: auto; aspect-ratio: var(--art-ratio, 1.7778);
  max-height: calc(100dvh - 110px); width: 100%;
  padding: 0; border: 0; background: #080809;
}
.ex-case-art { position: absolute; inset: 0; }
.ex-case-main > :is(.ex-case-navigation,.ex-case-overview,.ex-case-strip), .ex-case-info {
  margin-inline: var(--case-gutter);
}
.ex-case-caption { padding: 12px var(--case-gutter) 0; }
.ex-case-overview, .ex-case-strip.is-overview { order: initial; }
.ex-case-overview { margin-block: 12px 0; }
.ex-case-info { padding-block: 24px; margin-top: 20px; border-top: 1px solid #343236; }
.ex-case-info > * { max-width: 78ch; }
dialog.ex-art-zoom { inset: 0; margin: 0; width: 100%; height: 100dvh; max-height: none; padding: 0; background: #050505; }
.ex-art-zoom button { z-index: 1; }
@media (max-width: 760px) {
  .ex-case-header > div { display: grid; gap: 2px; }
  .ex-case-header h2 { font-size: 16px; }
}

.ex-art-zoom[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#f7f4f0;}
.ex-theater-header,.ex-theater-footer {display:flex;align-items:center;gap:clamp(12px,2vw,32px);padding:10px clamp(14px,3vw,48px);background:#101012;}
.ex-theater-header span {color:#ff8479;white-space:nowrap;font-size:12px;}
.ex-theater-header strong {font-size:clamp(14px,1.25vw,20px);font-weight:550;}
.ex-art-zoom button {position:static;white-space:nowrap;min-height:40px;background:transparent;color:inherit;border:1px solid #444;padding:0 12px;}
.ex-theater-close,.ex-theater-footer nav {margin-left:auto;}
.ex-theater-footer p {font-size:14px;margin:0;}
.ex-theater-footer nav {display:flex;align-items:center;gap:9px;}
.ex-theater-footer output {white-space:nowrap;font:12px monospace;}
.ex-art-zoom button:disabled {opacity:.35;}
.ex-theater-stage {position:relative;overflow:hidden;touch-action:pan-y;}
.ex-theater-art {position:absolute;inset:0;}
.ex-theater-art :is(img,video),.ex-slide-preview {width:100%;height:100%;object-fit:contain;display:block;}
.ex-slide-preview {position:absolute;inset:0;pointer-events:none;background:#080809;}
.ex-theater-stage,.ex-case-viewport {user-select:none;cursor:grab;}
.is-sliding,.is-sliding * {cursor:grabbing;}
.ex-case-viewport.is-sliding :is(.ex-case-edge,.ex-enlarge){visibility:hidden;}
@media(max-width:600px){.ex-theater-header span{display:none;}.ex-theater-footer{align-items:center;gap:8px;}.ex-theater-footer p{font-size:12px;line-height:1.4;}}
