/*------------------------------------*\
    
    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)

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

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

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

.image-text--homepage {
    position: relative;
    z-index: 1;
    background: #EEEEEE;
}

.image-text__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    opacity: 0.13;
}

@media (max-width: 1199px) {
    .image-text__bg {
        opacity: 1;
    }
}

.image-text__text p {
    color: rgba(0,39,69,0.8);
}

.bg-navy .image-text__text p {
    color: #fff;
}

.bg-navy .image-text__text blockquote p {
    color: rgba(0,39,69,0.8);
}

.image-text__img__flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    row-gap: 15px;
}

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

.image-text__img__sml {
    width: 50%;
    padding: 0 8px;
    height: 192px;
}

.image-text__img__big {
    width: 100%;
    padding: 0 8px;
    height: 213px;
}

.image-text__img__full {
    height: 236px;
    position: relative;
}

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

.image-text__img__full > img {
    height: 100%;
}

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

.image-text--left .image-text__text {
    padding-bottom: 30px;
}

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

.image-text__img__full--video {
    height: 218px;
    margin-bottom: 73px;
}

.image-text--left .image-text__img__full--video {
    margin-left: 25px;
}

.video-info {
    position: absolute;
    background: #EBF3FA;
    bottom: -73px;
    left: -25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
    width: 192px;
    padding: 6px 10px;
    color: #002745;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2em;
    z-index: 1;
}

.video-info img {
    border-radius: 0 !important;
    position: absolute;
    z-index: -1;
    width: 60px;
    left: 54px;
    top: -46px;
}

@media (min-width: 768px) {
    .image-text__img__flex {
        margin: 0 -12px;
        row-gap: 24px;
    }

    .image-text__img__sml {
        padding: 0 12px;
    }

    .image-text__img__big {
        padding: 0 12px;
    }

    .image-text__img__full {
        height: 371px;
    }

    
    .image-text--left .image-text__text {
        padding-bottom: 49px;
    }

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

    .image-text__img__full--video {
        height: 380px;
        margin-bottom: 41px;
    }

    .image-text--left .image-text__img__full--video {
        margin-left: 87px;
    }

    .video-info {
        bottom: -41px;
        left: -87px;
        width: 294px;
        padding: 8px 18px;
        
    }

    .video-info img {
        width: 114px;
        left: 102px;
        top: -78px;
    }

}

@media (min-width: 1200px) {
    .image-text--homepage {
        padding: 90px 0;
    }

    .image-text__text {
        margin-bottom: 0;
        margin-right: -16px;
    }

    .image-text__img__flex {
        max-width: 602px;
        margin-left: auto;
    }

    .image-text__img__full {
        height: auto;
        max-width: 578px;
    }

    .image-text--right .image-text__img__full {
        margin-left: auto;
    }

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

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

    .image-text__img__full--video {
        height: auto;
        margin-bottom: 41px;
    }

    .image-text--left .image-text__img__full--video {
        margin-left: 0;
    }

    .video-info img {
        width: 114px;
    }

    .video-bttn:hover svg {
        transform: scale(1.1);
        transition: all .3s;
    }

    .image-text--right {
        .video-info {
            right: -87px;
            left: auto;
        }

        .video-info img {
            transform: scale(-1, 1);
            left: 0;
            right: 0;
            margin: 0 auto;
        }
    }
}


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

        .image-text__text {
            padding-top: 49px;
            padding-bottom: 0;
        }
    }

    .image-text__img__full--video {
        max-width: calc(100% - 100px);
        margin-left: auto;
    }

    .video-info {
        left: -100px;
    }
}

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

        .image-text__text {
            padding-top: 30px;
        }
    }
    
    .image-text--left .image-text__img__full--video,
    .image-text__img__full--video {
        max-width: calc(100% - 100px);
        margin-left: auto;
    }

    .video-info {
        left: -100px;
    }
}