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

.image-block-left {
    flex-direction: column-reverse;
}

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

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

.half-and-half-image .placeholder {
    width: 100%;
    height: 100%;
}

.image-block-left .half-and-half-text {
    padding: var(--section-margins) 22px 25px;
}

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

@media (min-width: 768px) {
    .half-and-half-image {
        height: 511px;
    }
    
    .image-block-left .half-and-half-text {
        padding: var(--section-margins) 52px 50px;
    }

    .image-block-right .half-and-half-text {
        padding: var(--section-margins) 52px 50px;
    }
}
    
@media (min-width: 1200px) {
    .image-block-left {
        flex-direction: row;
    }

    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

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

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

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

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

    .image-block-right .half-and-half-text {
        padding-right: 66px;
    }
}