/*------------------------------------*\
    
    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-image, 
.half-and-half-text {
    position: relative;
    width: 100%;
}

.half-and-half-image {
    height: 200px;
}

.half-and-half-text {
    padding: 32px 21px var(--section-margins);
}

.half-and-half-text .btn-grp-wrapper {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .half-and-half-image {
        height: 464px;
    }
    
    .half-and-half-text {
        padding: 32px 110px var(--section-margins);
    }
}
    
@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half-image {
        height: auto;
    }
    
    .half-and-half-text {
        padding: var(--section-margins) 63px;
    }

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

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

@media (min-width: 1600px) {
    
    .image-block-left .half-and-half-text {
        padding-left: var(--section-margins);
    }

    .image-block-right .half-and-half-text {
        padding-right: var(--section-margins);
    }
    
}

.custom-video-container {
    display: none;
    width: 100%;
    max-width: 90vw !important;
    aspect-ratio: 16/9;
    padding: 16px;

    iframe {
        width: calc( 100% - 16px );
        height: calc( 100% - 16px );
    }
}