/**
 * MP-GEO photo kit - additive helpers for Chrome V3 Trust
 *
 * Base already in V3 css/shared.css:
 *   .photo · .photo__slot · .photo-credit · .lead__media · .story-card__media
 *
 * Include this file when binding real <img> crops (Publisher / cloud).
 * Prefer V3 shared for newsprint tokens; do not fork credit typography.
 */

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo, 2px);
  border: 1px solid var(--line, #e5e2dc);
  vertical-align: middle;
}

.lead__media.photo img,
.photo.photo--hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: none;
}

/* Card thumbs: kit crops are 4x3; V3 story-card media is ~16:10 - cover either */
.photo--card img,
.story-card__media .photo img,
.story-card__media > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.story-card__media:has(img) {
  background: transparent;
  border: none;
  display: block;
  aspect-ratio: auto;
}

.photo--faq img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo--card .photo-credit,
.photo--faq .photo-credit {
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ink-subtle, #6b6560);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Hide mock PHOTO label once img is present */
.photo:has(img) > .photo__slot {
  display: none;
}
