/*------------------------------------*\
    
    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;
}

.image-text.graphics + section {
    z-index: 1;
}

.image-text__bg {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: -1;
}

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

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

.image-text__text {
    margin-bottom: 30px;
}

.image-text__img-wrap {
    /* height: 250px; */
    height: auto;
}

.image-text__img img {
    border-radius: 8px;
}

.image-text__img-flex {
    display: flex;
    margin: 0 -11px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.image-text__img-sml {
    width: 50%;
    padding: 0 11px;
    height: 196px;
}

.image-text__img-sml--right {
    margin-top: 19px;
}

.image-text__video-text {
    text-align: center;
}

.image-text__img-video  {
    position: relative;
    height: 250px;
}

.image-text__img-video img {
    border: 6px solid #FDF1D8;
    border-radius: 20px;
}

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

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

.image-text__text ul {
    margin-left: 0;
}

@media (min-width: 768px) {
    .image-text__text {
        margin-bottom: 50px;
    }
    
    .image-text__img-wrap {
        /* height: 350px; */
        height: auto;
        width: 60%;
        margin: 0 auto;
    }
    
    .image-text__img img {
        border-radius: 20px;
    }

    .image-text__text .btn {
        margin-top: 10px;
    }

    .image-text__img-flex {
        margin: 0 -16px;
    }
    
    .image-text__img-sml {
        padding: 0 16px;
        height: 400px;
    }
    
    .image-text__img-sml--right {
        margin-top: 35px;
    }

    .image-text--video  .flex-opposite {
        flex-direction: column-reverse;
    }

    .image-text--video .image-text__text {
        margin-top: 50px;
    }
    
    .image-text__video-text {
        text-align: left;
    }

    .image-text__img-video  {
        height: 350px;
    }

    .image-text__img-video img {
        border: 12px solid #FDF1D8;
        border-radius: 20px;
    }

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

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__text {
        margin-bottom: 0;
    }
    
    .image-text__img-wrap {
        height: auto;
        width: auto;
    }

    .image-text__img-sml {
        height: auto;
    }
    
    .image-text__img-sml--right {
        margin-top: 86px;
    }

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

    .image-text--video .image-text__text {
        margin-top: 0;
    }
    

    .image-text__img-video  {
        height: auto;
    }

    .image-text__img-video img {
        border: 20px solid #FDF1D8;
    }

    .video-bttn svg {
        width: 130px;
    }
    .video-bttn:hover{
        background: none;
    }
    .video-bttn:hover svg {
        width: 150px;
    }
    
}