/* Use the original 3:4 portrait proportions on profile content. */
html.noanae-release.noanae-editorial body main#main :is(.v138-portrait,.tx-editorial-portrait,.doctor-photo,.physician-portrait) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  align-self: start !important;
  overflow: hidden !important;
  background: transparent !important;
}
html.noanae-release.noanae-editorial body main#main :is(.v138-portrait,.tx-editorial-portrait,.doctor-photo,.physician-portrait) > picture {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
}
html.noanae-release.noanae-editorial body main#main :is(.v138-portrait,.tx-editorial-portrait,.doctor-photo,.physician-portrait) img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  background: transparent !important;
  transform: none !important;
}
@media (max-width: 760px) {
  html.noanae-release.noanae-editorial body main#main .doctor-photo {
    margin-inline: 0 !important;
    width: 100% !important;
  }
}

/* Thermage: match the media frame to its 442 × 646 portrait source. */
html.noanae-release.noanae-editorial main#main :is(
  .v113-hero-film:has(> video > source[src$="/thermage-principle.mp4"]),
  .v148-principle-film:has(> video > source[src$="/thermage-principle.mp4"]),
  .v148-film-still:has(> img[src$="/thermage-principle.webp"])
) {
  width: min(100%, 320px) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  justify-self: center;
  background: transparent !important;
}

html.noanae-release.noanae-editorial main#main :is(
  .v113-hero-film:has(> video > source[src$="/thermage-principle.mp4"]),
  .v148-principle-film:has(> video > source[src$="/thermage-principle.mp4"]),
  .v148-film-still:has(> img[src$="/thermage-principle.webp"])
) > :is(video, img) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 442 / 646 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  background: transparent !important;
}

@media (min-width: 761px) {
  html.noanae-release.noanae-editorial main#main .v128-restored-hero:has(> .v113-hero-film source[src$="/thermage-principle.mp4"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(38vw, 380px)) !important;
  }

  html.noanae-release.noanae-editorial main#main .v148-principle:has(> .v148-principle-film source[src$="/thermage-principle.mp4"]) {
    grid-template-columns: minmax(0, min(38vw, 320px)) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  html.noanae-release.noanae-editorial main#main :is(
    .v113-hero-film:has(> video > source[src$="/thermage-principle.mp4"]),
    .v148-principle-film:has(> video > source[src$="/thermage-principle.mp4"]),
    .v148-film-still:has(> img[src$="/thermage-principle.webp"])
  ) {
    width: min(100%, 280px) !important;
  }
}
