/*------------------------------------*\
    
    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 {
    padding: 50px 0;
}

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

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

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

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

.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: 8px 0 0 8px;
    object-position: top center;
}

.image-block-right .half-and-half-image img.object-fit--contain {
    object-position: center;
}

.image-block-left .half-and-half-image img {
    border-radius: 0 8px 8px 0;
}

.image-block-left .half-and-half-image--sharp img,
.image-block-right .half-and-half-image--sharp img {
    border-radius: 0;
}

.read-more__box {
    margin-bottom: 30px;
}


.video-bttn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-bttn svg {
    width: 60px;
    height: auto;
    transition: all .3s;

    @media( min-width : 1200px ) {
        width: 110px;
    }
}

.half-and-half.bg-dark-blue, 
.half-and-half.bg-blue-gradient {
    & h2, h3, h4, h5, h6 {
        color: #ffffff;
        -webkit-text-fill-color: #fff;
    }
}

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

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

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

@media( min-width : 1200px ) and (max-width : 1600px) {
    .half-and-half-image img {
        object-position: right;
    }
}
    
@media (min-width: 1200px) {
    
    .half-and-half-image {
        height: auto;
        max-height: 700px;
        aspect-ratio: 4 / 3 auto;
        align-self: stretch;
        width: calc(50% - 92px);
    }

    .half-and-half-text {
        width: calc(50% + 92px);
        padding-bottom: 0;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

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

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

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

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

    .half-and-half .read-more__box {
        max-height: 230px;
    }

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