/* Images keep their chosen desktop width, but shrink with the article.
 * An automatic height removes the fixed HTML height responsible for cropping.
 * This applies equally to uploaded images and externally hosted image URLs.
 */
body .article-content img,
body .article-prose img,
body .entry-content img {
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    box-sizing: border-box !important;
}

/* Gutenberg image/caption wrappers must also fit the text column.
 * Reset crop ratios for image figures without changing columns or galleries.
 */
body .article-content .wp-block-image,
body .article-prose .wp-block-image,
body .entry-content .wp-block-image,
body .article-content .wp-caption,
body .article-prose .wp-caption,
body .entry-content .wp-caption {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body .article-content picture,
body .article-prose picture,
body .entry-content picture {
    display: block;
    max-width: 100%;
}
