/* Fourth slide: the three approved compositions retain their native ratio.
 * Existing slides keep their media, typography and focal points. */
.mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-slide-stack {
    position: static !important;
}
.mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: min(540px, 33vw);
    transform: translateY(-50%) !important;
}
.mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title {
    font-size: clamp(32px, 3.15vw, 54px) !important;
}
.mp-design-0799 [data-mp-hero]:has(.mp-hero-slide[data-mp-hero-index="3"].is-active) .mp-hero-proof {
    visibility: hidden;
}
.mp-design-0799 [data-mp-hero]:has(.mp-hero-slide[data-mp-hero-index="3"].is-active) .mp-hero-copy-carousel {
    transform: none !important;
}
.mp-design-0799 [data-mp-hero] .mp-hero-visual[data-mp-hero-index="3"] > picture > img {
    object-position: right center !important;
}
@media (min-width: 768px) and (min-aspect-ratio: 6/5) and (max-aspect-ratio: 3/2) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] { width: 20vw; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title { font-size: 30px !important; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead { font-size: 14px; }
}
@media (max-aspect-ratio: 6/5), (max-width: 767px) {
    .mp-design-0799 [data-mp-hero] .mp-hero-visual[data-mp-hero-index="3"] > picture > img {
        object-position: center top !important;
    }
    .mp-design-0799 [data-mp-hero]:has(.mp-hero-slide[data-mp-hero-index="3"].is-active) .mp-hero-copy-carousel {
        transform: none !important;
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] {
        top: auto !important;
        bottom: 125px !important;
        width: min(620px, calc(100vw - 2 * var(--mp-pad)));
        transform: none !important;
    }
    .mp-design-0799 [data-mp-hero]:has(.mp-hero-slide[data-mp-hero-index="3"].is-active) .mp-hero-overlay {
        background: linear-gradient(0deg, rgba(6,13,18,.86), rgba(6,13,18,.64) 35%, transparent 65%) !important;
    }
}
@media (min-width: 768px) and (max-width: 800px) and (max-aspect-ratio: 6/5) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] { bottom: 100px !important; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-eyebrow { display: none; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title { font-size: 28px !important; margin-bottom: 12px; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead { font-size: 14px; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-motion-07102 .mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-slide[data-mp-hero-index="3"] { transform: translateY(-50%) !important; }
}
@media (prefers-reduced-motion: reduce) and (max-aspect-ratio: 6/5), (prefers-reduced-motion: reduce) and (max-width: 767px) {
    .mp-motion-07102 .mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-slide[data-mp-hero-index="3"] { transform: none !important; }
}
@media (max-width: 767px) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] {
        left: 20px !important;
        bottom: 132px !important;
        width: calc(100% - 40px);
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title {
        font-size: clamp(26px, 7.8vw, 38px) !important;
        margin-bottom: 14px;
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-eyebrow {
        margin-bottom: 14px;
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-actions {
        gap: 8px;
    }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-actions a {
        font-size: 14px;
        min-height: 44px;
        padding: 0 16px;
        white-space: nowrap;
    }
}
@media (max-width: 359px) {
    .mp-design-0799 [data-mp-hero].mp-hero-four-slides.has-autoplay-toggle .mp-hero-controls {
        grid-template-columns: 44px 1fr 44px;
        grid-template-rows: 44px 44px;
    }
    .mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-dots { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
    .mp-design-0799 [data-mp-hero].mp-hero-four-slides [data-mp-hero-prev] { grid-column: 1; grid-row: 2; }
    .mp-design-0799 [data-mp-hero].mp-hero-four-slides [data-mp-hero-next] { grid-column: 2; grid-row: 2; justify-self: center; }
    .mp-design-0799 [data-mp-hero].mp-hero-four-slides [data-mp-hero-autoplay] { grid-column: 3; grid-row: 2; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-eyebrow { display: none; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] { bottom: 154px !important; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title { font-size: 24px !important; margin-bottom: 10px; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead { font-size: 13px; }
}

/* Short phone viewports: keep the foreground packages above the copy. */
@media (min-width: 360px) and (max-width: 767px) and (max-height: 720px) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] { bottom: 92px !important; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-eyebrow { display: none; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title { font-size: 24px !important; margin-bottom: 10px; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead { font-size: 13px; margin-bottom: 12px; }
}

@media (min-width: 360px) and (max-width: 767px) and (max-height: 720px) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-actions a { font-size: 13px; padding: 0 8px; }
}
@media (min-width: 1200px) and (max-height: 760px) {
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-hero-title { font-size: 36px !important; margin-bottom: 16px; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-eyebrow { margin-bottom: 12px; }
    .mp-design-0799 [data-mp-hero] .mp-hero-slide[data-mp-hero-index="3"] .mp-lead { font-size: 14px; margin-bottom: 18px; }
}

/* At 320px the image itself has no spare side margin for a zoom. */
@media (max-width: 359px) {
    .mp-motion-07102 .mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-visual[data-mp-hero-index="3"],
    .mp-motion-07102 .mp-design-0799 [data-mp-hero].mp-hero-four-slides .mp-hero-visual[data-mp-hero-index="3"] img { transform: none !important; }
}
