/* Approved Home adaptation: keep the navigation brand, remove its duplicate
 * from the hero. Preserve native text, CTA and the five-phone composition. */
.ab-editorial.page-template-mainpage .m-main > section.ab-hero-intro {
    padding-top: clamp(40px, 6svh, 72px);
}

.ab-editorial.page-template-mainpage .ab-hero-intro::before {
    content: none;
    background: none;
}

.ab-editorial.page-template-mainpage .ab-hero-intro p.m-intro__text {
    margin-bottom: 24px;
}

.ab-editorial.page-template-mainpage .ab-hero-intro .ab-hero-media {
    margin-top: clamp(28px, 5svh, 48px);
}

/* Shorter desktop windows get smaller phones, not clipped text or a fixed
 * hero height. Very short windows may scroll rather than squash the content. */
.ab-editorial.page-template-mainpage .ab-hero-intro .ab-hero-gallery {
    width: clamp(760px, min(calc(100% - 40px), calc((100svh - 490px) * 2.66)), 1426.65px);
}

@media (max-width: 759px) {
    .ab-editorial.page-template-mainpage .m-main > section.ab-hero-intro {
        padding-top: 32px;
    }

    .ab-editorial.page-template-mainpage .ab-hero-intro .m-intro__text-block {
        width: calc(100% - 32px);
    }

    .ab-editorial.page-template-mainpage .ab-hero-intro p.m-intro__text {
        margin-bottom: 24px;
    }

    .ab-editorial.page-template-mainpage .ab-hero-intro .ab-hero-media {
        margin-top: 24px;
    }

    /* Retain the original mobile crop and readable central-phone size. */
    .ab-editorial.page-template-mainpage .ab-hero-intro .ab-hero-gallery {
        width: 1050.12px;
    }
}
