/* Preserve the complete technical image; never crop off a fixture or diagram. */
body img.mg-editorial-image--contain { object-fit: contain !important; object-position: center !important; background: #fff; }
.mg-post__hero:has(.mg-editorial-image--contain) { background: #fff; }
.mg-post__hero:has(img[class*="mg-editorial-image--"]) { height: auto; max-height: none; aspect-ratio: auto; display: block; }
.mg-post__hero img[class*="mg-editorial-image--"] { max-height: 380px; max-width: 100%; height: auto !important; width: auto !important; margin-inline: auto; }
.mg-post__hero figcaption { padding: 12px 18px; font-size: 14px; line-height: 1.9; color: #33475b; background: #f3f6f8; }
.mg-post__hero .mg-image-credit { display: block; margin-block-start: 6px; overflow-wrap: anywhere; }
.mg-post__hero .mg-image-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mg-post__hero .mg-image-credit a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 760px) {
	.mg-post__hero img[class*="mg-editorial-image--"] { max-height: 260px; }
	.mg-post__hero figcaption { padding: 10px 14px; font-size: 13px; }
}
html[data-theme="dark"] .mg-post__hero figcaption,
body.dark .mg-post__hero figcaption { color: #d6e2ec; background: #102332; }
