/*------------------------------------*\
    
    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 + .half-and-half {
    padding-top: 0 !important;
}

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

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

.half-and-half-image img {
    display: block;
    border-radius: 10px 10px 0 0;
}

.half-and-half-text {
    padding: 40px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
}

.half-and-half-text h2 span {
    font-style: italic;
}

.half-and-half--padding {
    padding: 80px 0;
}

.half-and-half-text p { 
    line-height: 1.5;
}

.half-and-half-image-div:not(.js-half-and-half-image) img {
    position: absolute;
}

.js-half-and-half-image ul {
    width: 100%;
}

/* for /about-us/our-team/ */

.block-team-profile .container {
    max-width: 1024px;
}

.block-team-profile .half-and-half-image { 
    height: auto !important;
}

.block-team-profile .half-and-half-image img {
    height: auto !important;
    position: relative;
}

@media (min-width: 768px) {

    .half-and-half-image {
        height: 300px;
    }
    
    .half-and-half-text {
        padding: 40px 40px;
    }
    
}

    
@media (min-width: 1200px) {
    
    
    .half-and-half-text {
        position: relative;
        height: auto;
        width: 51%;
    }

    .half-and-half-image {
        position: relative;
        height: auto;
        width: 49%;
    }

    .block-team-profile .half-and-half-text {
        display: flex;
        align-items: center;
        flex: 1;
        max-width: 60%;
    }

    .block-team-profile .half-and-half-image {
        flex: 1;
        max-width: 40%;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-text {
        padding: 60px 70px 68px 50px;
    }

    .flex-opposite .half-and-half-text {
        padding: 60px 70px 68px 50px;
    }

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

    .js-half-and-half-image,
    .js-half-and-half-image__item,
    .js-half-and-half-image div {
        border-radius: 10px 0 0 10px;
    }

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

    .flex-opposite .half-and-half-image img {
        border-radius: 0 10px 10px 0;
    }

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

    .half-and-half-text {
        border-radius: 0 10px 10px 0;
    }

    .flex-opposite .half-and-half-text {
        border-radius: 10px 0 0 10px;
    }

    .half-and-half--padding {
        padding: 100px 0;
    }
}


.js-half-and-half-image,
.js-half-and-half-image__item,
.js-half-and-half-image div {
    height: 100% !important;
}

.half-and-half-image .js-half-and-half-image__item  img {
    position: relative;
}

.js-half-and-half-image .slick-arrow {
    top: auto;
    bottom: 55px;
}

.js-half-and-half-image .slick-prev {
    left: 50%;
    margin-left: -123px;
}

.js-half-and-half-image .slick-next {
    right: 50%;
    margin-right: -93px;
}

.js-half-and-half-image__item {
    position: relative;
}


@media (min-width: 1200px) {
    
    .js-half-and-half-image__item::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 94px;
        left: 0;
        bottom: 0;
        background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    }
}

.half-and-half--video .half-and-half-image-div,
.half-and-half--video .half-and-half-image-div > a {
    height: 100%;
    position: relative;
    display: block;
}

.half-and-half--video .half-and-half-image-div > a {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .half-and-half--video .half-and-half-image-div > a {
        border-radius: 10px 0 0 10px;
    }

    .half-and-half--video .flex-opposite .half-and-half-image img {
        border-radius: 0 10px 10px 0;
    }
}

.half-and-half--video .half-and-half-image-div > a img {
    transition: transform 0.3s ease-in-out;
    transform: scale(1);
}

.half-and-half--video .half-and-half-image-div > a:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2;
    opacity: 0.5;
    border-radius: 10px 0 0 10px;
}

.half-and-half-video__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 1200px) {
    .half-and-half-video__icon {
        width: 120px;
        height: 120px;
    }

    .half-and-half--video .half-and-half-image-div > a:hover img {
        transform: scale(1.05);
    }

    .half-and-half--video .half-and-half-image-div > a:hover .half-and-half-video__icon {
        transform: translateY(-50%) scale(0.8);
    }

    .half-and-half--video .half-and-half-image-div > a:hover .half-and-half-video__icon > svg {
        transform: scale(1.5);
    }
}

.half-and-half-video__icon svg {
    position: relative;
    display: block;
    width: 40px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}