/* Keep each animated character within its decoded pixel budget, not just the stage width. */
.motion-story .motion-stage .motion-clip {
  --clip-ratio: 1;
  --clip-pixel-limit: 350px;
  --clip-target: clamp(270px, 27vw, 350px);
  display: block;
  width: auto;
  height: min(var(--clip-target), var(--clip-pixel-limit));
  max-width: 100%;
  max-height: none;
  justify-self: center;
  margin: 0;
  aspect-ratio: var(--clip-ratio);
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

@media (max-width: 700px) {
  .motion-story .motion-stage .motion-clip {
    --clip-target: clamp(175px, 52vw, 240px);
  }
}
