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

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

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

.image-text__img__wrap {
    height: 209px;
    position: relative;
    margin-bottom: 62px;
    box-shadow: 0 0 15px rgba(0,0,0,0.16);
}

.image-text__img__wrap--pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 164px;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); 
}

.media-pattern {
    width: 221px;
    position: absolute;
    bottom: -80px;
    z-index: 2;
}

.image-text--left .media-pattern {
    right: -138px;
}

.image-text--right .media-pattern {
    left: -138px;
}

.play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    z-index: 4;
}

.play-bttn svg {
    transition: all .3s ease-in-out;
}

.play-bttn:hover svg {
    transform: scale(1.1);
}
.image-text__text__wrap .btn {
    margin-bottom: 16px !important;
    margin-left: 0 !important;
    margin-right:16px !important ;
}

@media (min-width: 768px) {
        
    .image-text__img__wrap {
        height: 351px;
    }

    .image-text__img__wrap--pattern::before {
        height: 275px;
    }

    .image-text__wrap {
        padding: 0 58px;
    }

}

@media (min-width: 1200px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }
        
    .image-text__img__wrap {
        height: auto;
        margin-bottom: 0;
    }


    .image-text__wrap {
        padding: 0;
    }

    .media-pattern {
        width: 335px;
    }

    .image-text--left .media-pattern {
        right: -132px;
    }
    
    .image-text--right .media-pattern {
        left: -100px;
    }

    .image-text--left .image-text__text__wrap {
        padding-right: 33px;
    }

    .image-text--right .image-text__text__wrap {
        padding-left: 33px;
    }
   
    .play-button:hover .play-icon {
        width: 110px;

    }

}