/* Scoped to the EXISTING homepage carousel. No image source is replaced.
   All slides have the same 16:9 frame; contain shows full photographs, cover crops.
   Do not override the carousel, navigation or slide-links overlays. */
#nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image,
#nmr-highlights-2 article[data-nmrpd-photo-fit] .wp-block-image > figure,
#nmr-highlights-2 article[data-nmrpd-photo-fit] figure.wp-block-image__figure {
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background-color:#eeeaf2;
}
#nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image > picture,
#nmr-highlights-2 article[data-nmrpd-photo-fit] .wp-block-image figure > picture {
  display:block;
  width:100%;
  height:100%;
}
#nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image img,
#nmr-highlights-2 article[data-nmrpd-photo-fit] .wp-block-image figure img {
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100%;
  max-height:100%;
  aspect-ratio:16 / 9;
  object-position:var(--nmrpd-photo-focus, 50% 50%) !important;
  object-fit:contain !important;
  transform:none;
}
#nmr-highlights-2 article[data-nmrpd-photo-fit="cover"] .nmr-hero-image img,
#nmr-highlights-2 article[data-nmrpd-photo-fit="cover"] .wp-block-image figure img {
  object-fit:cover !important;
}
/* Mobile: preserve photo proportions; never crop faces by default. */
@media(max-width:720px) {
  #nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image,
  #nmr-highlights-2 article[data-nmrpd-photo-fit] .wp-block-image > figure {
    max-width:100%;
    min-height:0;
  }
}
