/* Final Hero overrides keep legacy layout names compatible with the new media contract. */
.cc-hero--cover .cc-hero__media {
    position: relative;
    inset: auto;
    z-index: auto;
}
.cc-hero--cover .cc-hero__media::after { display: none; }
.cc-hero--cover .cc-hero__content { color: inherit; }
.cc-hero--cover.cc-hero--media-background-image .cc-hero__content,
.cc-hero--cover.cc-hero--media-background-video .cc-hero__content { color: #fff; }
.cc-hero__reduced-motion-poster { display: none !important; }
.cc-hero--media-none .cc-hero__inner { grid-template-columns: 1fr; }
.cc-hero__background > img,
.cc-hero__background > video {
    position: absolute;
    inset: 0;
}

@media (max-width: 760px) {
    .cc-hero__background--has-mobile-poster .cc-hero__video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-hero__background .cc-hero__reduced-motion-poster {
        display: block !important;
    }
}
