.story-media {
  margin: calc(var(--story-pad) * -1) calc(var(--story-pad) * -1) 2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-warm, #efe8dc);
  border-bottom: 1px solid var(--line, rgba(34, 42, 35, 0.14));
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.story-media.is-error {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--paper-warm)), var(--paper-warm));
}

.story-media-fallback {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.story:hover .story-media img {
  transform: scale(1.012);
}

.story-wide .story-media {
  aspect-ratio: 21 / 9;
}

.story:nth-of-type(1) .story-media img { object-position: center 38%; }
.story:nth-of-type(2) .story-media img { object-position: center 52%; }
.story:nth-of-type(3) .story-media img { object-position: center 48%; }
.story:nth-of-type(4) .story-media img { object-position: center 50%; }
.story:nth-of-type(5) .story-media img { object-position: center 50%; }
.story:nth-of-type(6) .story-media img { object-position: center 62%; }
.story:nth-of-type(7) .story-media img { object-position: center 50%; }
.story:nth-of-type(8) .story-media img { object-position: center 50%; }
.story:nth-of-type(9) .story-media img { object-position: center 48%; }

@media (max-width: 680px) {
  .story-media {
    margin-bottom: 1.4rem;
    aspect-ratio: 4 / 3;
  }

  .story-wide .story-media {
    aspect-ratio: 16 / 10;
  }

  .story:nth-of-type(1) .story-media img { object-position: center 35%; }
}

@media (prefers-reduced-motion: reduce) {
  .story-media img { transition: none; }
  .story:hover .story-media img { transform: none; }
}
