/* Display crops only: every photo is the original supplied on 12 September 2026. */
body.v5 .mg-portrait-frame { display:block; position:relative; overflow:hidden; isolation:isolate; flex-shrink:0; width:100%; aspect-ratio:1; background:#d8c6b8; }
body.v5 .mg-portrait-frame > img { position:absolute!important; display:block!important; inset:auto; max-width:none!important; max-height:none!important; min-width:0!important; min-height:0!important; aspect-ratio:auto!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; object-fit:fill!important; transform:none!important; }
body.v5 .v5-person-image > .mg-portrait-frame,
body.v5 .firm-founder-card__portrait > .mg-portrait-frame { width:100%; height:100%; aspect-ratio:auto; }
body.v5 .mg-photo-visual > .mg-portrait-frame { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; }
body.v5 .v6-advisor > .mg-portrait-frame { width:100%; height:100%; min-height:135px; aspect-ratio:auto; }
body.v5.blog-article .author-card > .mg-portrait-frame { width:100%; height:clamp(230px,32vh,310px); aspect-ratio:auto; border-bottom:1px solid var(--wa-border); }
body.v5.blog-article .author-bottom > .mg-portrait-frame { width:112px; height:112px; flex:0 0 auto; border:2px solid var(--wa-gold); border-radius:50%; }
body.v5 .gf-authority-groups .mg-portrait-frame { width:58px; height:58px; grid-row:1; border-radius:50%; border:1px solid var(--v7-gold, #a49250); }
body.v5 .reader-evidence-authors .mg-portrait-frame { width:34px; height:34px; grid-row:1 / 3; border-radius:50%; border:1px solid var(--v7-gold, #a49250); }
body.v5 .reader-evidence-authors[data-count="3"] .mg-portrait-frame { grid-row:1; }
@media(max-width:760px) { body.v5 .gf-authority-groups .mg-portrait-frame { width:52px; height:52px; } }
/* Restore the former centered group crop. All group panels share one ratio,
   independent of the amount of copy beside them; portraits above are unchanged. */
body.v5.v6-home-approved .mg-home-photo,
body.v5.mg-photo-page .mg-photo-hero .mg-photo-visual:has(> img[src*="assets/photos/team.jpg"]),
body.v5 .v6-contact-photo {
  position:relative; width:100%; height:auto; min-height:0; aspect-ratio:3/2;
  align-self:start; margin:0; overflow:hidden; background:#d8c6ba;
}
body.v5.v6-home-approved .mg-home-photo > img,
body.v5.mg-photo-page .mg-photo-hero .mg-photo-visual > img[src*="assets/photos/team.jpg"],
body.v5 .v6-contact-photo > img[src*="assets/photos/team.jpg"],
body.v5 .mg-mandate-team > img[src*="assets/photos/team.jpg"] {
  display:block; width:100%; height:100%; max-width:none;
  object-fit:cover!important; object-position:50% 50%!important;
}
body.v5 .mg-mandate-team > img[src*="assets/photos/team.jpg"] { height:auto; aspect-ratio:3/2; }
@media(max-width:1100px) {
  body.v5.v6-home-approved .mg-home-photo,
  body.v5.mg-photo-page .mg-photo-hero .mg-photo-visual:has(> img[src*="assets/photos/team.jpg"]),
  body.v5 .v6-contact-photo,
  body.v5 .mg-mandate-team > img[src*="assets/photos/team.jpg"] { aspect-ratio:12/7; }
}

/* Second group photo: fill the frame and crop the lower legs at its edge. */
body.v5 .mg-contact-group{position:relative;overflow:hidden;aspect-ratio:3/2}
body.v5 :is(.v6-contact-photo,.mg-contact-group)>img[src*="team-kontakt.jpg"]{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:cover!important;object-position:center!important;transform:scale(1.2);transform-origin:50% 25%}
@media(max-width:1100px){body.v5 .mg-contact-group{aspect-ratio:12/7}}
