/*------------------------------------*\
    
    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;
    align-items: flex-start;
}

.half-and-half::before {
    content: '';
    position: absolute;
    z-index: -1;
    background: transparent;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
}

.half-and-half--top-bg-white:before,
.half-and-half--bottom-bg-white:after {
    background-color: var(--color-white);
}

.half-and-half--top-bg-gray:before,
.half-and-half--bottom-bg-gray:after {
    background-color: var(--color-offwhite);
}

.half-and-half--top-bg-blue:before,
.half-and-half--bottom-bg-blue:after {
    background-color: var(--color-blue-2);
}

.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 {
    height: 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

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

.half-and-half-image {
    height: 276px;
    padding: 0 22px;
}

.half-video-btn {
    position: absolute;
    top: 0;
    left: 22px;
    width: calc(100% - 44px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.half-video-btn__icon {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: var(--color-white);
    opacity: 0.65;
    transition: transform 0.25s ease-in-out;
}

.half-video-btn svg {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
    transform: scale(1);
    transition: transform 0.25s ease-in-out;
}

@media (min-width: 1200px) {
    .half-video-btn:hover .half-video-btn__icon {
        transform: translateY(-50%) scale(0.85);
    }

    .half-video-btn:hover .half-video-btn svg {
        transform: scale(1.3);
    }
}

.half-and-half-image img {
    border-radius: 15px;
}

@media (min-width: 768px) {
    .half-and-half-image {
        height: 458px;
        padding: 0 110px;
    }

    .half-and-half-text {
        padding: 48px 52px 75px 52px;
    }

    .half-video-btn svg {
        width: 132px;
    }
}


@media (min-width: 1200px) {

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

    .half-and-half::after {
        content: '';
        position: absolute;
        z-index: -1;
        width: 100%;
        height: 50px;
        bottom: 0;
        left: 0;
    }
    
    
    .half-and-half-image img {
        position: relative;
    }

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

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

    .half-and-half--inner .half-and-half-text {
        padding-top: 193px;
        padding-bottom: 193px;
    }

    .half-and-half-image img {
        width: calc(100% - 129px);
        margin-left: auto;
    }

    .image-block-left .half-and-half-image img {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        margin-left: 0;
        margin-right: auto;
    }

    .image-block-right .half-and-half-image img {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        right: 0;
    }

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

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

    .half-video-btn svg {
        width: 201px;
    }

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

    .half-and-half--inner .half-video-btn svg {
        width: 246px;
    }
    
}

.bg-white + .half-and-half--top-bg-white .half-and-half-text,
.bg-gray + .half-and-half--top-bg-gray .half-and-half-text,
.bg-blue + .half-and-half--top-bg-blue .half-and-half-text {
    padding-top: var(--section-margins);
}