/* The seven exhibits share one stage. Hidden panels size the grid without taking focus. */
.wall-home #page #main #made-with-moira > .sg-viewport {
  display:grid; grid-template-columns:minmax(0,1fr); position:relative; max-width:1260px;
  width:100%; height:auto; margin:1rem 0 0; padding:0; overflow:visible; contain:layout; scroll-snap-type:none;
}
.wall-home #page #made-with-moira article[data-gallery-slide] {
  --exhibit-accent:#bf916e;
  display:grid; grid-area:1/1; grid-template-columns:minmax(0,2.1fr) minmax(200px,.9fr);
  grid-template-rows:1fr 1fr; align-content:center; column-gap:clamp(24px,3vw,52px); row-gap:1rem;
  width:100%; height:100%; min-width:0; margin:0; padding:clamp(20px,3vw,44px);
  box-sizing:border-box; overflow:visible; color:var(--ink);
  background:radial-gradient(ellipse at 10% 0%,color-mix(in srgb,var(--exhibit-accent) 12%,transparent),transparent 69%),var(--bg-raise);
  border:1px solid color-mix(in srgb,var(--exhibit-accent) 35%,var(--line)); border-radius:10px; box-shadow:none;
}
.wall-home #page #made-with-moira article[data-gallery-slide][hidden] { display:grid!important; visibility:hidden; pointer-events:none; }
.wall-home #page #made-with-moira article[data-gallery-slide="1"] { --exhibit-accent:#c88971; }
.wall-home #page #made-with-moira article[data-gallery-slide="2"] { --exhibit-accent:#629b87; }
.wall-home #page #made-with-moira article[data-gallery-slide="3"] { --exhibit-accent:#879bc5; }
.wall-home #page #made-with-moira article[data-gallery-slide="4"] { --exhibit-accent:#c5a76d; }
.wall-home #page #made-with-moira article[data-gallery-slide="5"] { --exhibit-accent:#b391bc; }
.wall-home #page #made-with-moira article[data-gallery-slide="6"] { --exhibit-accent:#95a8ad; }
.wall-home #page #made-with-moira [data-gallery-slide] > h3 {
  grid-area:1/2; align-self:end; margin:0; color:var(--ink);
  font-size:clamp(2.1rem,3.5vw,3.6rem); text-wrap:balance;
}
.wall-home #page #made-with-moira [data-gallery-slide] > h3 a { color:inherit; }
.wall-home #page #made-with-moira [data-gallery-slide] > p {
  grid-area:2/2; align-self:start; margin:0; max-width:32ch; color:var(--muted); font:400 1rem/1.55 var(--sans);
}
.wall-home #page #made-with-moira [data-gallery-slide] > :is(.showcase-demo,.showcase-apps-preview) {
  grid-area:1/1/3/2; width:100%; min-width:0; align-self:center; margin:0; box-sizing:border-box;
}
.wall-home #page #made-with-moira [data-gallery-slide] > :is(.showcase-demo,.showcase-apps-preview) > :is(small,figcaption,.sa-open-product) {color:var(--muted)}
.sg-controls {max-width:1260px;margin-top:1.75rem}
.sg-choices {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,1vw,14px)}
.sg-choices button {
  display:grid;gap:.45rem;align-content:start;min-width:0;background:transparent;color:var(--muted);
  border:0;border-bottom:2px solid transparent;padding:0 0 .5rem;cursor:pointer;
  font:500 clamp(.68rem,.93vw,.85rem)/1.25 var(--sans);text-align:start;
}
.sg-choices button[aria-selected=true] {color:var(--ink);border-color:var(--verm)}
.sg-thumbnail {display:block;width:100%;aspect-ratio:2.15;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:var(--bg-raise)}
.sg-thumbnail img {position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;margin:0!important;padding:0!important}
html[data-scheme=dark] .sg-thumbnail .sg-light,html:not([data-scheme=dark]) .sg-thumbnail .sg-dark {display:none}
.sg-toolbar {display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:1260px}
.sg-paging {display:flex;align-items:center;gap:.5rem}
.sg-paging button {font:500 1.15rem/1 var(--sans);width:40px;min-height:44px;background:transparent;border:0;color:var(--ink);cursor:pointer}
.sg-status,.sg-pause {font:500 .8rem/1.4 var(--sans);color:var(--muted);margin:0}
.sg-status {font-variant-numeric:tabular-nums}
@media(max-width:700px){.sg-paging{gap:0}.sg-paging button{width:32px}.sg-toolbar{gap:.4rem}}
.sg-pause {min-height:44px;border:0;background:none;padding:.5rem 0;cursor:pointer}
.sg-controls :focus-visible,.sg-toolbar :focus-visible,.sg-film-chapters a:focus-visible {outline:2px solid var(--verm-text);outline-offset:3px}
.showcase-gallery .showcase-apps-preview .sa-story-stage {
  height:clamp(260px,24vw,320px);aspect-ratio:auto;
}
.showcase-gallery .sa-cast .sa-cast-themes,.showcase-gallery .sa-cast .sa-capture {height:100%}
.showcase-gallery .sa-cast .sa-capture img {max-height:100%;width:100%;object-fit:contain}
.sg-film-chapters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:.65rem}
.sg-film-chapters a {display:grid;grid-template-columns:1fr auto;gap:.3rem;font:500 .77rem/1.3 var(--sans);color:var(--ink);text-decoration:none}
.sg-film-chapters img {grid-column:1/-1;display:block;width:100%;aspect-ratio:16/6;object-fit:cover;object-position:center;border-radius:3px;margin:0!important}
.sg-film-chapters time {color:var(--muted);font-variant-numeric:tabular-nums}
.sg-film-chapters a:hover span {text-decoration:underline}
@media (prefers-reduced-motion:no-preference) {
  .sg-thumbnail img {transition:transform .24s ease}
  .sg-choices button:hover img {transform:scale(1.05)}
  [data-gallery-slide]:not([hidden]) > :is(.showcase-demo,.showcase-apps-preview) {animation:sg-arrive .23s ease-out both}
  @keyframes sg-arrive {from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}
}
@media (max-width:960px) {
  .wall-home #page #made-with-moira article[data-gallery-slide] {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:.65rem;padding:clamp(14px,3vw,26px)}
  .wall-home #page #made-with-moira [data-gallery-slide]>h3 {grid-area:1/1;align-self:start}
  .wall-home #page #made-with-moira [data-gallery-slide]>p {grid-area:2/1;max-width:60ch;font-size:.94rem}
  .wall-home #page #made-with-moira [data-gallery-slide]>:is(.showcase-demo,.showcase-apps-preview) {grid-area:3/1;align-self:start;margin-block:.55rem 0}
}
@media (max-width:700px) {
  .wall-home #page #main>#made-with-moira {padding-inline:56px 14px}
  .wall-home #page #made-with-moira article[data-gallery-slide] {padding:12px;grid-template-rows:auto minmax(0,1fr) auto}
  .wall-home #page #made-with-moira [data-gallery-slide]>:is(.showcase-demo,.showcase-apps-preview) {grid-area:2/1;align-self:center}
  .wall-home #page #made-with-moira [data-gallery-slide]>p {grid-area:3/1;align-self:end;border-top:1px solid var(--line);padding-top:.7rem}
  .sg-choices {display:flex;overflow-x:auto;gap:10px;padding:2px 2px .3rem;scrollbar-width:thin}
  .sg-choices button {flex:0 0 4.75rem;font-size:.72rem}
  .sg-pause,.sg-status {font-size:.72rem}
  .sg-film-chapters {grid-template-columns:1fr;gap:0}
  .sg-film-chapters a {grid-template-columns:minmax(64px,32%) 1fr auto;align-items:center;gap:.6rem;padding:.4rem 0;font-size:.8rem;border-bottom:1px solid var(--line)}
  .sg-film-chapters img {grid-column:1;aspect-ratio:1.9}
  .sg-film-chapters time {font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){.showcase-gallery *{scroll-behavior:auto!important}}
