/* Large portraits retain the original framing, including the space above the head. */
.story img.doctor-photo-full {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1333 / 2000;
  object-fit: contain;
  object-position: center top;
  justify-self: center;
}

/* A head-and-shoulders crop must not grow with a wide tablet card. */
.card-media.doctor-photo-thumb {
  position: relative;
  background-size: auto 230%;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #bfbfbf;
}
.card-media.doctor-photo-thumb:empty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1.53295;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #bfbfbf, transparent 18%, transparent 82%, #bfbfbf);
  pointer-events: none;
}
.card-media.doctor-photo-thumb > img {
  object-position: center top;
}
