/* Muscle & Authority — source-specific editorial image framing.
 * These selectors follow the inspected image files, not the rotating story slots.
 * Existing media records, sources, editorial photographs and daily selection stay intact.
 */

/* Logos retain their complete lettering inside the existing card proportions.
 * Their own black artwork supplies the field; no tint or filter is applied.
 */
html body.ma-charcoal-edition .ma-reader-home .ma-home-story__media:has(
  img:is([src*="/ThaBox-in-Latta"], [src*="/Emosa-Pilates-studio-environment"])
) {
  background: #000 !important;
}

html body.ma-charcoal-edition .ma-reader-home .ma-home-story__media img:is(
  [src*="/ThaBox-in-Latta"],
  [src*="/Emosa-Pilates-studio-environment"]
) {
  box-sizing: border-box;
  padding: clamp(6px, 3%, 18px);
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #000;
  transform: none !important;
}

/* Misfit's mural is a panorama (about 3.38:1). Preserve the full photograph
 * in the established sponsor/card geometry, on the white editorial canvas.
 */
html body.ma-charcoal-edition .ma-reader-home :is(
  .ma-home-story__media,
  .ma-home-partner-card__media
):has(img[src*="/Misfit-Strength-Circus-training-environment-in-Seattle-Washington"]) {
  background: var(--ma-edition-panel, #ffffff) !important;
}

html body.ma-charcoal-edition .ma-reader-home :is(
  .ma-home-story__media,
  .ma-home-partner-card__media
) img[src*="/Misfit-Strength-Circus-training-environment-in-Seattle-Washington"] {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: var(--ma-edition-panel, #ffffff) !important;
  transform: none !important;
}

/* The Creed source is a tall owner portrait beneath a large wall sign.
 * The existing 21% focal position crops out his face in a wide story slot.
 * 52% includes his face and shoulders across the current card/rail ratios.
 */
html body.ma-charcoal-edition .ma-reader-home .ma-home-story__media img[src*="/Creed-Strength-and-Fitness-Chico"] {
  object-position: 50% 52% !important;
}

/* The Holland source is a close head-and-shoulders portrait, not a wide scene.
 * Larger feature slots use the white canvas and a bounded image, preserving
 * the entire portrait. Small rail/list thumbnails keep their existing geometry.
 */
html body.ma-charcoal-edition .ma-reader-home .ma-home-story:is(
  .ma-home-story--hero,
  .ma-home-story--feature,
  .ma-home-story--guide-lead,
  .ma-home-story--evidence-lead,
  .ma-home-story--spotlight-lead
) .ma-home-story__media:has(img[src*="/Holland-Fitness-and-Performance-training-environment-in-San-Ramon-California"]) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(12px, 1.5vw, 22px);
  background: var(--ma-edition-panel, #ffffff) !important;
}

html body.ma-charcoal-edition .ma-reader-home .ma-home-story:is(
  .ma-home-story--hero,
  .ma-home-story--feature,
  .ma-home-story--guide-lead,
  .ma-home-story--evidence-lead,
  .ma-home-story--spotlight-lead
) .ma-home-story__media img[src*="/Holland-Fitness-and-Performance-training-environment-in-San-Ramon-California"] {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 400px;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
}

@media (max-width: 680px) {
  html body.ma-charcoal-edition .ma-reader-home .ma-home-story:is(
    .ma-home-story--hero,
    .ma-home-story--feature,
    .ma-home-story--guide-lead,
    .ma-home-story--evidence-lead,
    .ma-home-story--spotlight-lead
  ) .ma-home-story__media:has(img[src*="/Holland-Fitness-and-Performance-training-environment-in-San-Ramon-California"]) {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }
}
