/*------------------------------------*\
    
    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;
    flex: 0 0 100%;
}

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

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

.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: #F4F4F4;
}

.half-and-half-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 88px;
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); 
    z-index: 1;
}

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

    .half-and-half-image::before {
        height: 174px;
    }

    .half-and-half-image img {
        height: 448px;
    }
}


@media (min-width: 1025px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
        height: 100%;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

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

    .flex-opposite .half-and-half-text {
        padding: 60px 30px 60px 16px;
    }
    
}

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

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

    .half-and-half-text.left .half-and-half-text__wrapper {
        float: right;
    }

    .half-and-half-text {
        padding: 104px 16px 100px 50px;
    }

    .flex-opposite .half-and-half-text {
        padding: 104px 50px 104px 16px;
    }

    .half-and-half-text__wrapper h3 {
        padding-bottom: 28px;
    }

    .half-and-half-text__wrapper .btn {
        margin-top: 10px;
    }
}
