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

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

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

.half-and-half-text {
    padding: 0 22px 60px 22px;
    margin-top: -60px;
}

.half-and-half.bg-dark-gray {
    background-color: var(--color-black-100);
    color: var(--color-white);
}

.half-and-half.bg-dark-gray h2,
.half-and-half.bg-dark-gray h3,
.half-and-half.bg-dark-gray h4,
.half-and-half.bg-dark-gray h5,
.half-and-half.bg-dark-gray h6  {
    color: var(--color-white);
}

.half-and-half.bg-dark-gray h6:before {
    color: var(--color-gold)
}

.half-and-half.bg-dark-gray p a:not(.btn) {
    color: var(--color-white);
    border-color: var(--color-white);
}

.half-and-half-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 207px;
    left: 0;
    bottom: -1px;
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 15%,rgba(255,255,255,0.7) 58%,rgba(255,255,255,0.8) 85%,rgba(255,255,255,1) 100%);
}

.half-and-half.bg-dark-gray .half-and-half-image::after {
    background: linear-gradient(to bottom,  rgba(43,43,43,0) 0%,rgba(43,43,43,0) 15%,rgba(43,43,43,0.7) 58%,rgba(43,43,43,0.8) 85%,rgba(43,43,43,1) 100%);
}

.half-and-half.bg-dark-gray .uncover_slice {
    background: var(--color-black-100);
}

@media (min-width: 768px) {
    .half-and-half-image {
        height: 418px;
    }

    .half-and-half-image::after {
        height: 243px;
    }

    .half-and-half-text {
        padding: 0 52px 80px 52px;
    }
    
}
    
@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

    .image-block-right .half-and-half-image img {
        right: -3px;
    }

    .half-and-half-image {
        height: auto;
    }

    .half-and-half-image::after {
        height: 243px;
        bottom: 0;
    }

    .half-and-half-text {
        padding: 94px 16px;
        margin: 0;
    }

    .half-and-half-text__wrapper {
        max-width: 616px;
        width: 100%;
    }

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

    .half-and-half-image::after {
        max-width: 525px;
        height: 100%;
        background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.87) 18%,rgba(255,255,255,0.7) 45%,rgba(255,255,255,0) 100%);
        width: 100%;
    }

    .image-block-left .half-and-half-image::after {
        background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.7) 55%,rgba(255,255,255,0.87) 82%,rgba(255,255,255,1) 100%);
        left: auto;
        right: -1px;
    }

    .half-and-half.bg-dark-gray .half-and-half-image::after {
        background: linear-gradient(to right,  rgba(43,43,43,1) 0%,rgba(43,43,43,0.87) 18%,rgba(43,43,43,0.7) 45%,rgba(43,43,43,0) 100%); 
    }

    .image-block-left .half-and-half-image::after {
        background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.7) 55%,rgba(255,255,255,0.87) 82%,rgba(255,255,255,1) 100%);
        left: auto;
        right: -1px;
    }

    .image-block-left.bg-dark-gray  .half-and-half-image::after {
        background: linear-gradient(to right,  rgba(43,43,43,0) 0%,rgba(43,43,43,0.7) 55%,rgba(43,43,43,0.87) 82%,rgba(43,43,43,1) 100%);
    }

    .half-and-half.bg-dark-gray p a:not(.btn):hover {
        color: var(--color-gold);
        border-color: var(--color-gold);
    }
}
