/* Editorial cover system: live typography over AI-edited resident portraits based on source interviews. */
#mdi-residents .mdi-review-card {
  container-type: inline-size;
  color: inherit;
  text-decoration: none;
}
#mdi-residents .mdi-review-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #173c31;
}
#mdi-residents .mdi-review-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .6s ease;
}
#mdi-residents .mdi-review-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 19, 15, .92), rgba(3, 19, 15, .68) 27%, rgba(3, 19, 15, .15) 53%, transparent 70%),
    linear-gradient(0deg, rgba(3, 19, 15, .3), transparent 30%);
}
#mdi-residents .mdi-review-kicker {
  position: absolute;
  z-index: 2;
  inset: 5cqi 5cqi auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f5f1e5;
  font-size: clamp(7px, 2.1cqi, 10px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}
#mdi-residents .mdi-review-kicker > span {
  color: #e5d2a0;
  font-size: clamp(9px, 2.5cqi, 12px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
#mdi-residents .mdi-review-card .mdi-review-headline {
  position: absolute;
  z-index: 2;
  left: 5cqi;
  bottom: 5cqi;
  width: 45%;
  max-width: none;
  margin: 0;
  color: #fffdf7;
  font-family: EliSourceForum, Georgia, serif;
  font-size: clamp(17px, 6.4cqi, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
#mdi-residents .mdi-review-play {
  z-index: 3;
  right: 5cqi;
  bottom: 5cqi;
  width: clamp(36px, 10cqi, 46px);
  height: clamp(36px, 10cqi, 46px);
  padding: 0;
  border: 1px solid rgba(244, 238, 219, .65);
  background: rgba(22, 55, 41, .4);
  color: #fffdf7;
  transition: background-color .25s ease, border-color .25s ease;
}
#mdi-residents .mdi-review-play svg { width: 23px; height: 23px; fill: currentColor; }
#mdi-residents .mdi-review-card .mdi-review-caption {
  display: flex;
  align-items: baseline;
  min-height: 36px;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--evidence-muted, #b3c0b8);
}
#mdi-residents .mdi-review-watch {
  flex-shrink: 0;
  color: #f1eee4;
}
#mdi-residents .mdi-review-watch > span { margin-left: 5px; color: #d7c493; }
#mdi-residents .mdi-review-card:focus-visible { outline: 2px solid #d7c493; outline-offset: 4px; }
@media (hover: hover) {
  #mdi-residents .mdi-review-card:hover img { transform: none; }
  #mdi-residents .mdi-review-card:hover .mdi-review-play { background: #345443; border-color: #f5edda; }
}
/* The longest headline retains its complete wording at every card width. */
#mdi-residents .mdi-review-card[href$="456239589"] .mdi-review-headline {
  width: 48%;
  font-size: clamp(15px, 5.4cqi, 30px);
}
@container (max-width: 300px) {
  #mdi-residents .mdi-review-kicker { letter-spacing: .1em; }
  #mdi-residents .mdi-review-card .mdi-review-caption { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #mdi-residents .mdi-review-poster img,
  #mdi-residents .mdi-review-play { transition: none; }
}

#mdi-residents .mdi-evidence-reviews.is-review-slider { scrollbar-width: none; }
#mdi-residents .mdi-evidence-reviews.is-review-slider::-webkit-scrollbar { display: none; }


/* These supplied originals already match the shared 2:1 frame. */
#mdi-residents .mdi-review-card[href$="456239637"] .mdi-review-poster img,
#mdi-residents .mdi-review-card[href$="456239589"] .mdi-review-poster img {
  object-fit: contain;
  object-position: center;
}

/* Expanded 2:1 cover fills the card and retains all three faces. */
#mdi-residents .mdi-review-card[href$="456239992"] .mdi-review-poster img {
  object-fit: cover;
  object-position: center;
}
/* Studio treatment is authored in the same 2:1 frame as the card. */
#mdi-residents .mdi-review-card[href$="456239650"] .mdi-review-poster img {
  object-fit:cover;
  object-position:center;
}
