/*------------------------------------*\
    
    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 {
    position: relative;
    z-index: 1;
}

.half-and-half:first-child .image-block-left,
.half-and-half:first-child .image-block-right {
    padding-top: var(--section-margins);
}

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

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

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

.half-and-half-image img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

.half-and-half-text {
    padding: 40px 22px 60px;
    color: #454545;
    z-index: 2;
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
}

.half-and-half.white-bg {
    background-color: #ffffff;
}

.half-and-half.gray-bg {
    background-color: #eff2f5;
}

.half-svg {
    position: absolute;
    right: -30px;
    bottom: 50px;
    width: 401px;
    height: 491px;
    z-index: 1;
}

.half-svg-left {
    position: absolute;
    right: -30px;
    bottom: 230px;
    width: 401px;
    height: 491px;
    z-index: 1;
}

@media (min-width: 768px) {
    .half-and-half-image {
        height: 500px;
        display: flex;
        align-items: self-start;
        justify-content: center;
        gap: 20px;
    }

    .half-and-half-text {
        padding: 50px 52px 70px;
        color: #454545;
    }

    .half-svg {
        position: absolute;
        right: -0px;
        bottom: 50px;
        width: 547px;
        height: 345px;
    }

    .half-svg-left {
        position: absolute;
        right: -0px;
        bottom: 0;
        width: 547px;
        height: 491px;
    }
}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-image,
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
        height: auto;
    }

    .half-and-half-image img {
        position: absolute;
    }

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

    .half-and-half-text__wrapper {
        max-width: 662px;
        padding: 100px 16px 100px 96px;
    }

    .flex-opposite .half-and-half-text__wrapper {
        float: right;
        padding: 100px 96px 100px 16px;
    }

    .half-svg {
        position: absolute;
        right: -0px;
        bottom: 0;
        width: 547px;
        height: 491px;
    }

    .half-svg-left {
        position: absolute;
        right: 50%;
        bottom: auto;
        top: 0;
        width: 547px;
        height: 491px;
    }
}

@media (min-width: 1400px) {
    .half-and-half-text__wrapper {
        padding: 100px 0 100px 96px;
    }

    .flex-opposite .half-and-half-text__wrapper {
        padding: 100px 96px 100px 0;
    }
}
