.hero-media-frame {
    position:relative;
    width:100%;
    aspect-ratio:16 / 10;
    overflow:hidden;
    border-radius:14px;
    background:#15243c;
}
.hero-media-frame > :is(img,video) {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:var(--hero-x,50%) var(--hero-y,50%);
    transform-origin:var(--hero-x,50%) var(--hero-y,50%);
    transform:scale(var(--hero-zoom,1));
}
.hero-media-frame > [hidden] {display:none}
.hero-media-preview {max-width:520px}

.home-carousel--custom {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
    align-items:center;
    gap:12px 24px;
    padding:32px;
    background:var(--hero-bg);

}
.home-carousel--custom > .home-carousel__copy {grid-column:1;grid-row:1 / span 2}
.home-carousel--custom > .home-carousel__viewport {grid-column:2;grid-row:1}
.home-carousel--custom .home-carousel__controls {grid-column:2;padding:0}
.home-carousel--custom .home-carousel__slide {display:block;min-height:0;padding:0}
.home-carousel--custom .home-carousel__copy :is(h1,h4) {
    color:var(--hero-title);
    font:700 var(--hero-title-size)/1.12 var(--hero-title-font),system-ui,sans-serif;
}
.home-carousel--custom .home-carousel__copy p {
    color:var(--hero-description);
    font-size:var(--hero-description-size);
    font-family:var(--hero-description-font),system-ui,sans-serif;
}
.home-carousel--custom .hero-button {
    background:var(--hero-button-bg);
    border-color:var(--hero-button-bg);
    color:var(--hero-button-color);
}
.home-carousel--custom .hero-button:hover {text-decoration:underline}
.home-carousel--custom .home-carousel__controls button {background:#101d3a}
.home-carousel--custom .home-carousel__dots button {border-radius:20px}
.home-carousel--custom :is(button,a):focus-visible {outline:3px double currentColor}

@media (max-width:767px) {
    .home-carousel--custom {grid-template-columns:minmax(0,1fr);padding:22px}
    .home-carousel--custom > .home-carousel__copy,
    .home-carousel--custom > .home-carousel__viewport,
    .home-carousel--custom .home-carousel__controls {grid-column:auto;grid-row:auto}
}

.home-carousel__viewport {position:relative}
.home-carousel__viewport > .home-carousel__arrow {
    position:absolute;
    z-index:2;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    min-height:36px;
    color:#fff;
    background:#101d3a;
    cursor:pointer;
}
.home-carousel__arrow--previous {left:8px}
.home-carousel__arrow--next {right:8px}
.home-carousel__viewport > .home-carousel__arrow:focus-visible {outline:2px solid white;outline-offset:1px}

.hero-design-preview .home-carousel__copy {min-width:0;overflow-wrap:anywhere}
.hero-design-preview .home-carousel__copy :is(h4,p) {white-space:pre-wrap;margin:0 0 12px}
.hero-design-preview .hero-button:not([hidden]) {display:inline-block;padding:10px 18px;border-radius:8px}
.hero-design-preview [hidden] {display:none}
.hero-preview-placeholder {display:grid;place-items:center;text-align:center;padding:10px;color:#e1e7f2}

@media (max-width:767px) {
    .home-carousel.home-carousel--custom {padding:18px;gap:14px}
    .home-carousel .hero-media-frame {min-width:0}
    .home-carousel.home-carousel--custom .home-carousel__copy h1 {
        font-size:min(var(--hero-title-size),9vw);
    }
    .home-carousel.home-carousel--custom .home-carousel__copy p {
        font-size:min(var(--hero-description-size),6.5vw);
    }
    .home-carousel .home-carousel__viewport > .home-carousel__arrow {width:44px;min-height:44px}
}
