/*------------------------------------*\

    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block.
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.image-text {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.image-text__pattern {
    position: absolute;
    z-index: -1;
    max-width: inherit;
    width: 308px;
    top: 250px;
    right: -171px;
    height: auto;
}

.image-text .flex-row {
    align-items: center
}

.image-text__img-flex {
    margin: 0 -8px;
    display: flex;
    flex-wrap: wrap;
}

.image-text__left,
.image-text__right {
    width: 50%;
    padding: 0 6px;
}

.image-text__sml-img {
    height: 78px;
}

.image-text__sml-img + .image-text__sml-img {
    margin-top: 17px;
}

.image-text__big-img {
    height: 173px;
}

.image-text__text__wrap {
    margin-top: 30px;
    padding-right: 28px;
}

@media (max-width: 1024px) {
    .image-text__sml-img,
    .image-text__right,
    .image-text__img__wrap {
        position: relative;
    }

    .image-text__sml-img:has(.responsive-image) img,
    .image-text__right:has(.responsive-image) img,
    .image-text__img__wrap:has(.responsive-image) img {
        opacity: 0;
    }

    .image-text__sml-img:has(.responsive-image) .responsive-image,
    .image-text__right:has(.responsive-image) .responsive-image,
    .image-text__img__wrap:has(.responsive-image) .responsive-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .image-text__pattern {
        width: 664px;
        top: 255px;
        right: -378px;
    }

    .image-text__img-flex {
        margin: 0 -14px;
    }

    .image-text__left,
    .image-text__right {
        padding: 0 14px;
    }

    .image-text__sml-img {
        height: 156px;
    }

    .image-text__sml-img + .image-text__sml-img {
        margin-top: 33px;
    }

    .image-text__big-img {
        height: 345px;
    }

    .image-text__text__wrap {
        padding-right: 0;
    }
}

@media (min-width: 1025px) {
    .image-text__sml-img .responsive-image,
    .image-text__right .responsive-image,
    .image-text__img__wrap .responsive-image {
        display: none;
    }
}

@media (min-width: 1200px) {
    .image-text__pattern {
        width: 1079px;
        top: auto;
        left: 119px;
        bottom: -314px;
    }

    .image-text__img-flex {
        margin: 0 -13px;
    }

    .image-text__left,
    .image-text__right {
        padding: 0 13px;
    }

    .image-text__sml-img {
        height: 312px;
    }

    .image-text__sml-img + .image-text__sml-img {
        margin-top: 32px;
    }

    .image-text__big-img {
        height: 656px;
    }

    .image-text__text__wrap {
        margin-top: 0;
        max-width: 689px;
    }

    .image-text--left .image-text__text__wrap {
        margin-left: auto;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__text__wrap .btn + .btn {
        margin-top: 30px;
        margin-left: 0;
        display: block;
        width: max-content;
    }
}


@media (min-width: 1400px) {
    .image-text__text__wrap .btn + .btn {
        display: inline-block;
        margin-left: 25px;
        margin-top: 0;
    }
}

.image-text__bg,
.media-graphics {
    position: absolute;
    width: 211px;
    left: -52px;
    bottom: 0;
    z-index: -1;
    height: auto;
}

.media-graphics--right {
    left: auto;
    right: -52px;
}

.image-text__bg--right {
    position: absolute;
    right: -18px;
    bottom: 0;
    width: 156px;
    z-index: -1;
}

.image-text--right .image-text__text-full {
    padding-bottom: 50px;
}

.image-text--left .image-text__text-full {
    padding-top: 50px;
}

.image-text__img__wrap {
    position: relative;
    height: 220px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
}

.video-bttn svg {
    width: 62px;
    height: auto;
    transition: all .3s;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text__text-full p {
    font-size: 18px;
    line-height: 1.444em;
}

.media-graphics {
    top: 144px;
}

@media (min-width: 768px) {
    .image-text__bg,
    .media-graphics {
        width: 375px;
        left: -170px;
    }

    .media-graphics--right {
        right: -56px;
        left: auto;
        width: 246px;
    }

    .image-text__bg--right {
        left: auto;
        right: -170px;
    }

    .media-graphics {
        top: 230px;
    }

    .image-text__text-full {
        padding-bottom: 70px;
    }

    .image-text__img__wrap {
        height: 392px;
    }

    .video-bttn svg {
        width: 103px;
    }
}

@media (min-width: 1200px) {
    .image-text__bg {
        width: 365px;
        left: -65px;
    }

    .image-text__bg--right {
        left: auto;
        right: -65px;
    }

    .image-text--right .image-text__text-full {
        padding-bottom: 0;
    }

    .image-text--left .image-text__text-full {
        padding-top: 0;
    }

    .image-text__img__wrap {
        height: auto;
    }

    .video-bttn svg {
        width: 112px;
    }

    .video-bttn:hover svg {
        transform: scale(1.1);
    }

    .image-text--right .image-text__text-full {
        padding-right: 40px;
    }

    .image-text--left .image-text__text-full {
        padding-left: 40px;
    }

    .image-text__text-full p {
        line-height: 1.625em;
    }

    .media-graphics {
        width: 641px;
        top: auto;
        bottom: 0;
        left: -130px;
    }

    .media-graphics--right {
        right: -5px;
        left: auto;
        width: auto;
    }
}