/* Article illustrations must fit the reading column, including plain HTML images. */
body.single-post :where(.wp-block-post-content, .entry-content) img:not(.ae-astro-symbol):not(.emoji):not(.avatar) {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

body.single-post :where(.wp-block-post-content, .entry-content) figure:has(img):not(.wp-block-gallery) {
    max-width: 100%;
    box-sizing: border-box;
}

body.single-post :where(.wp-block-post-content, .entry-content) figure:not(.wp-block-gallery) img:not(.ae-astro-symbol):not(.emoji):not(.avatar) {
    display: block;
    margin-inline: auto;
}

/* Keep portraits and the article's cover fully visible at a comfortable height. */
body.single-post main .wp-block-post-featured-image img,
body.single-post :where(.wp-block-post-content, .entry-content) :is(.einstein-portrait, .case-study-portrait, .ae-article-portrait) img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(70vh, 640px);
    max-height: min(70svh, 640px);
    object-fit: contain !important;
    margin-inline: auto;
}
