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

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

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

.half-and-half {
    align-items: center;
}

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

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

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

.image-block-right .half-and-half-image img {
    border-radius: 40px 0 0 80px;
}

.image-block-left .half-and-half-image img {
    border-radius: 0 40px 80px 0;
    object-position: top;
}

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

.half-and-half-image__wrapper {
    position: relative;
    height: 250px;
}

.half-and-half-text__wrapper img {
    border-radius: 20px 40px 40px 20px;
}

.half-and-half-text__wrapper .btn-group {
    margin-right: -13px;
}

.image-block-right .half-and-half-image .video-bttn  {
    border-radius: 40px 0 0 80px;
}

.image-block-left .half-and-half-image .video-bttn  {
    border-radius: 0 40px 80px 0
}

@media (min-width: 768px) {
    .image-block-right .half-and-half-image {
        padding-left: 52px;
    }

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

    .half-and-half-text {
        padding: 50px 52px 0;
    }

    .half-and-half-image__wrapper {
        height: 400px;
    }
    
    .half-and-half-text__wrapper .btn-group {
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }

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

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

    .half-and-half-text {
        padding: 0 63px;
    }

    .half-and-half-image__wrapper {
        height: 616px;
    }
    
    .image-block-right .half-and-half-text {
        padding-right: 16px;
    }

    .image-block-left .half-and-half-text {
        padding-left: 16px;
    }

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

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