/* Shared presentation across all domains; source ratios stay domain-specific. */
body img,
body :is(.wp-block-image,.wp-block-post-featured-image,.fase-page-featured-image,.fase-related-image,.fase-magazine-card__image,.fase-home-service-card,.fase-home-services__feature,.fase-home-service-card__media,.fase-home-services__feature-media,.fase-home-services__process-media) {
    border-radius: 0 !important;
}
/* Identity portraits remain circular even though editorial media uses square corners. */
body :is(.fase-post-author-avatar,.fase-post-author-bio-avatar,.fase-author-archive-profile__avatar,.fase-linkedin-contact__avatar) {
    border-radius: 50% !important;
}
/* Native Gutenberg circle masks must not override square image corners. */
body .wp-block-image.is-style-circle-mask img { mask-image: none !important; -webkit-mask-image: none !important; }

@media (max-width: 600px) {
    html,
    body { overflow-x: clip !important; }
    /* Same gutter as the single template: theme root padding minus its 6px expansion.
     * Viewport sizing avoids compounding gutters in nested page content wrappers. */
    body.page.fase-network-page:not(.fase-home2-page) :is(.page-header,.page-content,.entry-content,.wp-block-post-content,.fase-page-opening,.fase-page-excerpt) {
        box-sizing: border-box;
        width: calc(100vw - var(--wp--style--root--padding-left, 16px) - var(--wp--style--root--padding-right, 16px) + 12px) !important;
        max-width: none !important;
        margin-inline: auto !important;
        padding-inline: 0 !important;
    }
    /* Override the legacy page figure rule (width/max-width/margin !important). */
    body.page.fase-network-page :is(.page-content,.entry-content,.wp-block-post-content) figure.wp-block-image,
    body.page.fase-network-page .fase-page-opening .fase-page-featured-image,
    body.page.fase-network-page .fase-legal-hero {
        box-sizing: border-box;
        width: 100vw !important;
        max-width: none !important;
        margin-inline: calc(50% - 50vw) !important;
        border-radius: 0 !important;
        border-inline: 0;
    }
    body:is(.single-post,.page) :is(.fase-home-service-card,.fase-home-services__feature) { overflow: visible; }
    body .fase-single-post.has-global-padding :is(.wp-block-post-featured-image,.fase-share-bar),
    body:is(.single-post,.page) :is(.wp-block-post-featured-image,.fase-page-featured-image,figure.wp-block-image,.fase-related-image,.fase-magazine-card__image,.fase-home-service-card__media,.fase-home-services__feature-media,.fase-home-services__process-media,.fase-youtube-video,.fase-share-bar) {
        box-sizing: border-box !important;
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 0 !important;
    }
    body:is(.single-post,.page) :is(.wp-block-post-featured-image,.fase-page-featured-image,figure.wp-block-image) img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    body:is(.single-post,.page) .fase-share-bar {
        justify-content: center;
        padding-inline: 8px !important;
    }
    body.single-post .fase-youtube-video { border-radius: 0 !important; }
    body:is(.single-post,.page) figure.wp-block-image figcaption { padding-inline: 20px; }
}
