/* Optional news imagery follows POP's existing paper, typography and editorial spacing. */
.story-photo {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink, #1f1f1f);
}

.story-photo img,
.story-photo-link {
  display: block;
  max-width: 100%;
}

.story-photo img {
  width: 100%;
  height: auto;
  background: var(--paper, #faf7f2);
}

.story-photo--card {
  margin-block-end: 22px;
}

.story-photo--lead {
  margin-block: 0 30px;
}

.story-photo--card img,
.story-photo--lead img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.story-photo--article {
  margin-block-start: clamp(24px, 4vw, 48px);
}

.story-photo--article img {
  /* Keep the full original frame inside the article. */
  height: auto;
  object-fit: contain;
}

.story-photo figcaption {
  display: grid;
  gap: 5px;
  padding-block-start: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  overflow-wrap: anywhere;
}

.story-photo-credit {
  color: var(--grey, #595959);
  font-size: 12px;
}

.story-photo figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-photo figcaption a:hover {
  color: var(--rust, #c24a33);
}

.story-photo a:focus-visible {
  outline: 2px solid var(--rust, #c24a33);
  outline-offset: 4px;
}

body.rtl .story-photo figcaption {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: normal;
}

body.rtl .story-photo-credit {
  font-size: 13px;
}

@media (max-width: 800px) {
  .story-photo--lead {
    margin-block-end: 24px;
  }
}
