/* Editorial imagery follows the site's domain, not the current template. */
body.fase-image-ratio-16x9 { --fase-editorial-image-ratio: 16 / 9; }
body.fase-image-ratio-2x1 { --fase-editorial-image-ratio: 2 / 1; }

body.fase-network-page .wp-block-post-featured-image img,
body.fase-network-page .wp-block-post-content .wp-block-image img,
body.fase-network-page .entry-content .wp-block-image img,
body:is(.home,.blog,.archive,.search) .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--fase-editorial-image-ratio);
    object-fit: contain;
}

/* The 16:9 profile uses its canonical Full WebP. The template controls only
 * responsive display and never lets a figure widen the viewport. */
body.fase-image-ratio-16x9 :is(.wp-block-post-content,.entry-content,.page-content) figure.wp-block-image {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    overflow: hidden;
}
body.fase-image-ratio-16x9 :is(.wp-block-post-content,.entry-content,.page-content) figure.wp-block-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}
