/* Portrait framing based on measured face bounds. Original images are preserved. */
img[src$="dina.webp"]{--face-image-height:139.562947%;--face-image-top:-0.694851%;--face-image-x:-51.489921%;}
img[src$="melvis.webp"]{--face-image-height:131.988846%;--face-image-top:-4.581097%;--face-image-x:-50.470914%;}
img[src$="mahesh.webp"]{--face-image-height:149.390832%;--face-image-top:-6.815505%;--face-image-x:-52.729481%;}
img[src$="cristina.webp"]{--face-image-height:142.050597%;--face-image-top:0.202591%;--face-image-x:-49.228780%;}
img[src$="kaunain.webp"]{--face-image-height:137.123975%;--face-image-top:-2.334635%;--face-image-x:-48.146513%;}

.sa.august .final-july-report .full-speaker-section .speaker-profile .full-speaker-media,
.august .exp-card .ep,
.august-request .speaker-card .speaker-photo,
.august .contributor-lineup .lineup-portrait {position:relative!important;overflow:hidden!important;}
.sa.august .final-july-report .full-speaker-section .speaker-profile .full-speaker-media img,
.august .exp-card .ep img.expert-photo,
.august-request .speaker-card .speaker-photo img,
.august .contributor-lineup .lineup-portrait img {
 position:absolute!important;inset:auto!important;left:50%!important;top:var(--face-image-top)!important;
 width:auto!important;height:var(--face-image-height)!important;
 min-width:0!important;max-width:none!important;max-height:none!important;
 object-fit:fill!important;object-position:initial!important;
 transform:translateX(var(--face-image-x))!important;transform-origin:initial!important;
 margin:0!important;padding:0!important;
}
.august .contributor-lineup .lineup-portrait {display:block;height:260px;background:#0c1f3c;}
@media(max-width:700px){.august .contributor-lineup .lineup-portrait{height:170px;}}
@media print{.august .contributor-lineup .lineup-portrait{height:48mm;}}

/* August screen portraits: retain equal face scale and leave headroom. */
@media screen {
 .sa.august .final-july-report .full-speaker-section .speaker-profile .full-speaker-media img,
 .sa.august .contributor-lineup .lineup-portrait img,
 .august .exp-card .ep img.expert-photo,
 .august-request .speaker-card .speaker-photo img {
  top:calc(var(--face-image-top) + 12%)!important;
 }
}

/* Summary and full-report portraits share the same restrained framing. */
@media screen {
 .august .exp-card .ep img.expert-photo,
 .sa.august .final-july-report .full-speaker-section .speaker-profile .full-speaker-media img {
  height:calc(var(--face-image-height) * .85)!important;
 }
}

/* Request-page portraits match the wider July framing within the same card size. */
@media screen {
 .august-request .speaker-card .speaker-photo img {
  height:calc(var(--face-image-height) * .58)!important;
  top:auto!important;bottom:0!important;
 }
}

/* Match Melvis's request-card face size and head position to the other contributors. */
@media screen {
 .august-request .speaker-card .speaker-photo img[src$="melvis.webp"] {
  height:calc(var(--face-image-height) * .64)!important;
  top:auto!important;bottom:0!important;
 }
}
/* Slightly closer request portraits, preserving the individual face calibration. */
@media screen {
 .august-request .speaker-card .speaker-photo img {height:calc(var(--face-image-height) * .66)!important;}
 .august-request .speaker-card .speaker-photo img[src$="melvis.webp"] {height:calc(var(--face-image-height) * .7283)!important;}
}
