/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

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

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

.half-and-half {
    padding: 64px 22px;
}

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

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    width: 100%;
}

.half-and-half-text {
    padding-top: 30px;
}

.half-and-half-image__wrap {
    position: relative;
    height: 236px;
}

.image-block-left .half-and-half-image__wrap img {
    border-radius: 0px 50px 24px 0px;
}

.image-block-right .half-and-half-image__wrap img {
    border-radius: 50px 0px 0px 24px;
}

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

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

.image-block-left .video-bttn {
    border-radius: 0px 50px 24px 0px;
}

.image-block-right .video-bttn {
    border-radius: 50px 0px 0px 24px;
}

.image-block-right--bottom .half-and-half-text {
    padding-top: 0;
    padding-bottom: 30px;

}

.btn-wrap {
    margin-top: 30px;
}

@media (min-width: 768px) {
        
    .half-and-half {
        padding: 80px 52px;
    }


    .half-and-half-text {
        padding-top: 44px;
    }

    .half-and-half-image__wrap {
        height: 473px;
    }

    .image-block-left .half-and-half-image__wrap img,
    .image-block-left .video-bttn  {
        border-radius: 0px 100px 24px 0px;
    }

    .image-block-right .half-and-half-image__wrap img,
    .image-block-right .video-bttn {
        border-radius: 100px 0px 0px 24px;
    }

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

    .image-block-right--bottom .half-and-half-text {
        padding-top: 0;
        padding-bottom: 44px;
    }
}

@media (min-width: 1200px) {

    .half-and-half {
        padding: 0;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half-text {
        padding: 100px 22px 116px;
    }

    .half-and-half-image__wrap {
        height: 100%;
    }

    .video-bttn:hover {
        border: none;
    }

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

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

    .image-block-left .half-and-half-image {
        padding-right: 124px;

    }

    .image-block-right .half-and-half-image {
        padding-left: 124px;
    }

    .half-and-half-text__wrapper {
        max-width: 613px;
    }

    .image-block-right .half-and-half-text__wrapper {
        margin-left: auto;
    }

    
    .image-block-right--bottom .half-and-half-text {
        padding-top: 100px;
        padding-bottom: 116px;
    }
    
    .btn-wrap {
        margin-top: 40px;
    }
}