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

    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--pattern {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

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

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

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

.image-text--left .flex-row {
    flex-direction: row-reverse;
}

.image-text--right .flex-row {
    flex-direction: row;
}


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

.image-text__img__wrap img {
    border-radius: 10px;
}

.image-text__img__wrap--video {
    height: 209px;
}

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

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

.image-text__img__wrap.image-text-img__gal {
    height: auto !important;
}

.image-text-img__col [class*=col-] {
    padding: 5px;
}

.image-text-img__col [class*=col-] img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 150px;
}

.image-text-img__col.img-count_3 [class*=col-]:last-child {
    width: 100%;
}

@media (min-width: 768px) {

    .image-text__img__wrap {
        height: 486px;
    }

    .image-text__img__wrap--video {
        height: 424px;
    }

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

    .image-text-img__col [class*=col-] img {
        max-height: 200px;
    }
}

@media (min-width: 1025px) {
    .image-text-img__col [class*=col-] img {
        max-height: 260px;
        min-height: 260px;
    }
    .image-text-img__col.img-count_2 [class*=col-] img {
        min-height: 430px;
        max-height: 430px;
    }
}

@media (min-width: 1200px) {

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

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

    .image-text--right .image-text__img__wrap {
        margin-left: 16px;
    }

    .image-text--left .image-text__img__wrap {
        margin-right: 16px;
    }

    .image-text__img__wrap {
        height: auto;
    }

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

    .image-text--pattern::before {
        content: '';
        position: absolute;
        z-index: -1;
        width: 467px;
        height: 760px;
        background: linear-gradient(to bottom, rgba(139, 146, 148, 0) 0%, rgba(139, 146, 148, 0.85) 100%);
        bottom: -145px;
        left: -139px;
        clip-path: polygon(0 0, 0% 100%, 100% 100%);
        opacity: 0.3;
    }

    .image-text--pattern::after {
        content: '';
        position: absolute;
        z-index: -1;
        width: 573px;
        height: 880px;
        background: linear-gradient(to bottom, rgba(139, 146, 148, 0.85) 0%, rgba(139, 146, 148, 0) 100%);
        top: -118px;
        right: 0px;
        clip-path: polygon(100% 0, 0 0, 100% 100%);
        opacity: 0.3;
    }

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

}

@media (max-width: 1199px) {
    .image-text__video .flex-row {
        flex-direction: column-reverse;
    }

    .image-text__video.image-text--right .image-text__text {
        padding-top: 45px;
        padding-bottom: 0;
    }

}