.story-mat {
  --story-ground:#0c0d0f;
  --story-ink:#fafafa;
  --story-button:#242527;
  display:grid;
  justify-items:center;
  background:var(--story-ground);
}
.story-mat .story-shell {
  aspect-ratio:9 / 16;
  width:min(100%,clamp(270px,21vw,342px));
  color:var(--story-ink);
  background:var(--story-ground);
  container-type:inline-size;
}
.story-shell .gallery-track {inset:2% 0 1%;height:auto}
.story-shell.profile-gallery .gallery-track {bottom:9.5%}
.story-shell .stadium-slide {perspective:none}
.story-shell .stadium-slide img.stage-photo {
  height:98%;
  max-width:96%;
  filter:none;
  transform:none;
  box-shadow:none;
}
.story-shell .stadium-slide img.phone {
  width:auto;
  aspect-ratio:.50;
  object-fit:cover;
  border-radius:14% / 7%;
}
.story-shell .stadium-slide img.flat {width:100%;height:100%;object-fit:contain}
.story-shell .gallery-controls:not([hidden]) {
  bottom:1%;
  gap:2cqw;
  padding:0;
  border:0;
  border-radius:0;
  color:var(--story-ink);
  background:transparent;
  font:700 clamp(13px,4.2cqw,18px)/1 Barlow,sans-serif;
}
.story-shell .gallery-controls button {
  display:grid;place-items:center;
  height:clamp(34px,11cqw,44px);
  width:clamp(34px,11cqw,44px);
  background:var(--story-button);color:var(--story-ink);
  font:400 clamp(24px,8cqw,34px)/1 Barlow,sans-serif;
  padding:0 0 .12em;
}
.story-shell .gallery-controls [role=status] {min-width:3.2em;text-align:center}
.story-shell .gallery-controls button:hover,.story-shell .story-picker button:hover {filter:brightness(1.25)}
.story-shell .story-picker button:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.story-shell .stage-featured {left:6px;top:5%;z-index:3}
.story-shell.monochrome .story-picker img {filter:grayscale(1)}

/* Segments let the visitor jump directly to a frame. */
.story-progress {
  --story-ground:#101511;
  --story-button:#303830;
}
.story-progress .story-shell {
  background:radial-gradient(ellipse at 50% 80%,color-mix(in srgb,var(--accent) 16%,var(--story-ground)),var(--story-ground) 72%);
}
.story-progress .profile-gallery .gallery-track {inset:5% 0 9.5%}
.story-progress .story-picker:not([hidden]) {
  position:absolute;z-index:2;inset:0 4% auto;
  display:flex;gap:4px;height:5.5%;
}
.story-progress .story-picker button {
  flex:1;min-width:0;border:0;padding:0;cursor:pointer;
  background:linear-gradient(#849184,#849184) center / 100% 3px no-repeat;
}
.story-progress .story-picker [aria-pressed=true] {
  background-image:linear-gradient(var(--accent),var(--accent));
}
.story-progress .gallery-controls:not([hidden]) {width:90%;justify-content:space-between}
.story-progress .gallery-controls button {border:1px solid #657361;background:#142014}

/* Soft backdrop and a light contact sheet. */
.story-studio {--story-ground:#e7e5dd;--story-ink:#1b201b;--story-button:#f7f6ef}
.story-studio .story-shell {
  background:linear-gradient(125deg,#c5c7bd 0%,#f1f0e9 32%,#eeece4 60%,#d0d2c7 100%);
}
.story-studio .gallery-track {inset:5% 0}
.story-studio .profile-gallery .gallery-track {bottom:13%}
.story-studio .stadium-slide img.phone {box-shadow:0 3cqw 4cqw -2cqw #2f362d80}
.story-studio .gallery-controls:not([hidden]) {bottom:2.5%;border-radius:99px;border:1px solid #c6c8bc;background:#fafaf2;gap:1cqw;box-shadow:0 3px 10px #30372e14}
.story-studio .gallery-controls button {background:transparent}

/* Selectable thumbnails stay inside the vertical frame. */
.story-thumbnails {--story-ground:#14191c;--story-button:#303a3d}
.story-thumbnails .profile-gallery .gallery-track {inset:2% 0 20%}
.story-thumbnails .gallery-controls:not([hidden]) {bottom:1%;gap:1cqw}
.story-thumbnails .story-picker:not([hidden]) {
  position:absolute;z-index:2;bottom:8.5%;left:4%;right:4%;
  height:10.5%;overflow-x:auto;display:flex;align-items:center;
  gap:7px;scrollbar-width:thin;
}
.story-thumbnails .story-picker button:first-child {margin-left:auto}
.story-thumbnails .story-picker button:last-child {margin-right:auto}
.story-thumbnails .story-picker button {
  height:94%;aspect-ratio:3 / 4;padding:2px;flex:none;border:1px solid #687076;
  border-radius:7px;background:#252c2e;cursor:pointer;
}
.story-thumbnails .story-picker img {width:100%;height:100%;object-fit:cover;object-position:center 30%;border-radius:4px}
.story-thumbnails .story-picker [aria-pressed=true] {outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:760px) {
  .story-mat .story-shell {width:min(100%,382px)}
}

.stadium-body {container-type:inline-size}
@container (min-width:280px) and (max-width:480px) {
  .stadium-bottom {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:clamp(8px,3cqw,16px);
  }
  .stadium-price {font-size:clamp(25px,7.6cqw,36px)}
  .stadium-bottom .buy-button {
    justify-self:end;
    width:auto;
    min-width:0;
    max-width:100%;
    gap:6px;
    padding:9px 12px;
    min-height:43px;
    font-size:clamp(15px,4.55cqw,22px);
  }
}
