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

.half-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}

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

.half-and-half-image {
    align-self: stretch;
}

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

.half-and-half-image__wrapper {
    height: 100%;
    position: relative;
}

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

.video-bttn__wrapper {
    position: relative;
    z-index: 1;
}

.video-bttn__wrapper::before {
    content: '';
    position: absolute;
     width: 144px;
    height: 144px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-gray-200);
    opacity: 0.46;
    border-radius: 50%;
    z-index: -1;
    transition: all .3s;
}

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

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

    .half-and-half-image__wrapper {
        margin-right: 52px;
    }
}
    
@media (min-width: 1200px) {

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

    .half-and-half {
        padding: 115px 0;
    }
    
    .half-and-half-image {
        width: calc(50% - 200px);
    } 

    .half-and-half-text {
        width: calc(50% + 200px);
        padding: 0 63px;
    }

    .half-and-half-image__wrapper {
        margin-right: 0;
    }

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

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

    .video-bttn:hover .video-bttn__wrapper::before {
        width: 230px;
        height: 230px;
        background: var(--primary-color-dark);
        opacity: 0.70;
    }

}

@media (min-width: 1600px) {
    .image-block-left  .half-and-half-text {
        padding-left: 108px;
    }

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