.half-and-half-with-stats__image,
.half-and-half-with-stats__text {
    position: relative;
    width: 100%;
}

.half-and-half-with-stats__image {
    padding-right: 22px;
}

.half-and-half-with-stats__image-wrapper {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
}

.half-and-half-with-stats__image-wrapper img {
    border-radius: 0 10px 10px 0;
}

/* Video button border-radius to match image - inherits from global .video-bttn */
.half-and-half-with-stats .video-bttn {
    border-radius: 0 10px 10px 0;
}

.half-and-half-with-stats__text {
    z-index: 2;
    padding: 0 22px;
}

.half-and-half-with-stats__text-wrapper {
    margin-top: 35px;
}

.half-and-half-with-stats__top {
    margin-bottom: 35px;
}

.half-and-half-with-stats__stats {
    background: var(--color-bg-white);
    border-radius: 10px;
    padding: 50px 78px;
    display: flex;
    flex-direction: column;
    row-gap: 50px;
}

.bg-white .half-and-half-with-stats__stats {
    background: var(--color-bg-light-blue);
}

.stat {
    text-align: center;
}

.stat h4 {
    color: var(--color-text-primary);
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2em;
    margin-bottom: 8px;
}

.stat span {
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2em;
    text-transform: uppercase;
}

.half-and-half-with-stats.bg-light-blue .subheading,
.half-and-half-with-stats.bg-light-blue .subheading:before {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .half-and-half-with-stats__image {
        padding-right: 52px;
        padding-left: 52px;
    }

    .half-and-half-with-stats__image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .half-and-half-with-stats__image-wrapper img {
        border-radius: 10px;
    }

    .half-and-half-with-stats .video-bttn {
        border-radius: 10px;
    }

    .half-and-half-with-stats__text {
        padding: 0 52px;
    }

    .half-and-half-with-stats__text-wrapper {
        margin-top: 20px;
        display: flex;
        flex-direction: column-reverse;
    }

    .half-and-half-with-stats__top {
        margin-bottom: 0;
        margin-top: 50px;
    }

    .half-and-half-with-stats__stats {
        padding: 47px 35px;
        justify-content: space-between;
        flex-direction: row;
    }

    .half-and-half-with-stats__stats.two-thirds {
        justify-content: center;
        gap: 100px;
    }

    .half-and-half-with-stats__stats.one-third {
        justify-content: center;
    }

    .stat {
        text-align: center;
        width: 174px;
    }
}

@media (min-width: 1200px) {
    .half-and-half-with-stats.has-stats {
        padding-bottom: calc(var(--section-margins) + 93px);
    }

    .half-and-half-with-stats__image {
        width: calc(50% - 125px);
        padding: 0;
        height: auto;
    }

    .half-and-half-with-stats__text {
       width: calc(50% + 125px);
    }

    .half-and-half-with-stats__image-wrapper {
        position: absolute;
        width: 100%;
        aspect-ratio: auto;
        height: 100%;
    }

    .half-and-half-with-stats__image-wrapper img,
    .half-and-half-with-stats .video-bttn {
        border-radius: 0 10px 10px 0;
    }

    .half-and-half-with-stats__text {
        padding: 0 63px 0 75px;
    }

    .half-and-half-with-stats__text-wrapper {
        margin-top: 0;
        max-width: 681px;
        padding: 125px 0 168px;
        position: relative;
    }

    .half-and-half-with-stats__top {
        margin-bottom: 0;
        margin-top: 0;
    }

    .half-and-half-with-stats__stats {
        position: absolute;
        width: 1048px;
        right: 0;
        bottom: -93px;
        box-shadow: 0 0 0 20px var(--color-bg-light-blue);
        padding: 50px;
    }

    .bg-gray .half-and-half-with-stats__stats {
        box-shadow: 0 0 0 20px var(--color-bg-gray);
    }

    .half-and-half-with-stats__stats.two-thirds {
        width: 800px;
        justify-content: center;
        gap: 100px;
    }

    .half-and-half-with-stats--image-left .half-and-half-with-stats__stats.two-thirds{
        right: 248px;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__stats.two-thirds{
        left: 248px;
    }

    .half-and-half-with-stats__stats.one-third {
        width: 400px;
        justify-content: center;
    }

    .half-and-half-with-stats--image-left .half-and-half-with-stats__stats.one-third {
        right: 548px;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__stats.one-third {
        left: 548px;
    }

    .bg-white .half-and-half-with-stats__stats {
        box-shadow: 0 0 0 20px #fff;
    }

    .stat {
        width: auto;
    }

    .stat h4 {
        font-size: 45px;
    }

    /* Image Right Variation */
    .half-and-half-with-stats--image-right .half-and-half-with-stats__image {
        order: 2;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__image-wrapper img,
    .half-and-half-with-stats--image-right .video-bttn {
        border-radius: 10px 0 0 10px;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__text {
        order: 1;
        padding: 0 75px 0 63px;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__stats {
        right: auto;
        left: 0;
    }

    .half-and-half-with-stats--image-right .half-and-half-with-stats__text-wrapper {
        margin-left: auto;
    }
}