.stats-with-image {
    display: flex;
    min-height: 600px;
}

.stats-with-image__container {
    display: flex;
    flex: 1;
}

.stats-with-image__container--column {
    flex-flow: column nowrap;
}

.stats-with-image .container__item {
    display: flex;
    flex: 1;
    height: 300px;
}

.stats-with-image .stats-with-image__container--row .container__item {
    height: 600px;
}

.stats-with-image .container__item--stretch .item__image {
    height: 600px;
}

.stats-with-image .item__image {
    flex: 1;
    transition: opacity 0.5s, flex 0.5s, height 0.5s;
    height: 300px;
}

.stats-with-image .item__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.stats-with-image .item__content-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    color: var(--color-white);
    transition: width 0.5s;
}

.stats-with-image .item__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    flex: 4;
}

.stats-with-image .item__heartline-container {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 18px;
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.stats-with-image .content__stat {
    font-style: normal;
    font-weight: 700;
    font-size: 85px;
    line-height: 100%;
}

.stats-with-image .content__unit {
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 130%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stats-with-image .content__description {
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
}

.stats-with-image .content__button {
    display: flex;
    align-items: center;
    width: fit-content;
    font-weight: 700;
    color: var(--color-white);
    gap: 5px;
    margin-top: 5px;
}

.stats-with-image .content__button .material-symbols-outlined {
    font-weight: 700;
}

.stats-with-image .item__heartline {
    position: absolute;
    bottom: 0;
    right: 0;
}

.stats-with-image .item__heartline img {
    height: 600px;
}

@media only screen and (max-width: 1400px) {
    .stats-with-image .content__stat {
        font-style: normal;
        font-weight: 700;
        font-size: 60px;
        line-height: 120%;
    }
}

@media only screen and (min-width: 1200px) {
    /* Added hover only for default and reverse to avoid the full image item */
    .stats-with-image .container__item--default:hover .item__image {
        opacity: 0;
        flex: 0;
    }

    .stats-with-image .container__item--reverse:hover .item__image {
        opacity: 0;
        flex: 0;
    }

    .stats-with-image
        .stats-with-image__container--row
        .container__item--default:hover
        .item__image {
        height: 0px;
        flex: 0;
    }
}

@media only screen and (max-width: 1200px) {
    .entry-content[ast-blocks-layout] .stats-with-image,
    .stats-with-image {
        flex-flow: column nowrap;
        min-height: auto;
        max-width: 768px;
    }

    .stats-with-image .container__item {
        flex: unset;
    }

    .stats-with-image .content__stat {
        font-style: normal;
        font-weight: 700;
        font-size: 40px;
        line-height: 120%;
    }
}

@media only screen and (max-width: 767px) {
    .stats-with-image__container--row {
        flex-flow: column nowrap;
    }

    .stats-with-image .container__item {
        flex-direction: column !important; /* Intentional to override js from desktop view */
        min-height: 600px;
    }

    .stats-with-image .container__item--stretch {
        display: none;
    }
}
