/* Apply to both the first painted hero and the interactive homepage. Size the
   signature against the space for text, independent of the photograph. */
:is(#banner_image, #wg-frontdoor-main, body[data-view="home"]) .wg-home-hero .herotext {
    container-type: inline-size;
    min-inline-size: 0;
}

@media (min-width: 701px) {
    :is(#banner_image, #wg-frontdoor-main, body[data-view="home"]) .wg-home-hero .herotext {
        padding-inline-start: min(30%, max(clamp(22px, 5vw, 82px), calc((100vw - 1360px) / 2)));
    }
}

:is(#banner_image, #wg-frontdoor-main, body[data-view="home"]) .wg-home-hero .herotext h1.wg-brand-tagline {
    /* The pre-render and the interactive view use different root font sizes. */
    font-size: clamp(32px, 5vw, 76px);
    font-size: min(76px, 17cqi);
    max-inline-size: none;
}

:is(#banner_image, #wg-frontdoor-main, body[data-view="home"]) .wg-home-hero h1.wg-brand-tagline > :is(span, em) {
    display: block;
    white-space: nowrap;
    overflow-wrap: normal;
}
/* Mobile Safari needs an explicit width to size a photo with absolute-positioned content. */
@media (max-width: 700px) {
    #for-homeowners .wg-home-owner-photo {
        width: 100%;
        min-width: 0;
        aspect-ratio: 7 / 4;
    }
}
