/*------------------------------------*\

    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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.half-and-half-image,
.half-and-half-text {
    position: relative;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
}

.tax-product_cat .half-and-half-text {
    background-color: var(--color-offwhite);
}

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

/* .page-id-5123 .half-and-half-image img {
    object-position: top;
} */

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

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

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

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

.bg-dark .half-and-half-text .btn-secondary {
    background-color: var(--color-white);
}

.half-and-half.no-margin {
    margin: 0 0 0 0;
}

.half-and-half.section-margins {
    margin: 65px 0;
}

.half-and-half.section-margins:last-child {
    margin-bottom: 0;
}

.half-and-half-image a {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.half-and-half-image .video-image .icon-play {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 50%;
    background-color: var(--color-white);
    z-index: 2;
    opacity: 0.85;
}

.half-and-half-image .video-image .icon-play:before,
.half-and-half-image .video-image .icon-play:after {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.6);
    border-radius: 50%;
    -webkit-animation: pulse 1.6s linear infinite forwards;
            animation: pulse 1.6s linear infinite forwards;
}

.half-and-half-image .video-image .icon-play:after {
    -webkit-animation-delay: 0.8s;
            animation-delay: 0.8s;
}

@-webkit-keyframes pulse {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    80% {
        -webkit-transform: scale(1.5);
                transform: scale(1.5);
    }
    100% {
        -webkit-transform: scale(1.5);
                transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    80% {
        -webkit-transform: scale(1.5);
                transform: scale(1.5);
    }
    100% {
        -webkit-transform: scale(1.5);
                transform: scale(1.5);
        opacity: 0;
    }
}

.half-and-half-image .video-image .icon-play span {
    display: block;
    width: 0;
    height: 0;
    position: relative;
    left: 5px;
    border-top: 25px solid transparent;
    border-right: 0;
    border-bottom: 25px solid transparent;
    border-left: 40px solid var(--color-gray-2);
    z-index: 5;
}

.half-slider-slide img {
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    height: 100%;
}

.half-slider-slide {
    position: relative;
    height: 305px;
}

.pin-save__wrapper {
    position: absolute;
    top: 20px;
    left: 25px;
    visibility: hidden;
    opacity: 0%;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    z-index: 99;
    cursor: pointer;
}

.half-slider-slide:hover .pin-save__wrapper {
    visibility: visible;
    opacity: 100%;
}

.half-and-half-slider {
    width: 100%;
    max-width: 100%;
}

.tax-product_cat .half-and-half {
    margin: 0 -22px;
}

@media (min-width: 768px) {

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

    .tax-product_cat .half-and-half {
        margin: 0 -16px;
    }

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

    .half-and-half.no-margin {
        margin: 0 0 0 0;
    }

    .half-and-half.section-margins {
        margin: 90px 0;
    }

    .half-slider-slide {
        height: 605px;
    }
}

@media( min-width : 1200px ) and ( max-width : 1300px ) {
    .half-and-half-text__wrapper h2 {
        font-size: 40px;
    }
}

@media( min-width : 1300px ) and ( max-width : 1600px ) {
    .half-and-half-text__wrapper h2 {
        font-size: 46px;
    }
}

@media (min-width: 1200px) {

    .half-and-half {
        margin-top: 96px;
        margin-bottom: 156px;
    }

    .tax-product_cat .half-and-half {
        margin: 0 -52px;
    }

    .flex-opposite {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
            -ms-flex-direction: row-reverse;
                flex-direction: row-reverse;
    }

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

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

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

    .half-and-half-slider {
        max-width: 50%;
    }

    .half-slider-slide {
        height: 805px;
    }

    .half-and-half-image img {
        position: absolute;
    }

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

    .half-and-half.no-margin {
        margin: 0 0 0 0;
    }

    .half-and-half.section-margins {
        margin: 160px 0 130px 0;
    }

    .bg-dark .half-and-half-text .btn-secondary:hover {
        background-color: rgba(255,255,255,0.7);
    }
}

@media (min-width: 1200px) {
    .half-and-half-image .video-image {
        max-height: 450px;
        align-self: center;
        justify-self: center;
    }

    .half-and-half-image {
        display: flex;
    }
}

@media (min-width: 1440px) {
    .half-and-half {
        margin-top: 110px;
    }

    .half-and-half-image:last-child .video-image {
        margin: 0 auto 0 0;
    }

    .half-and-half-image .video-image {
        /* width: calc(100% - 70px); */
        margin: 0 0 0 auto;
    }

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

    .image-block-right  .half-and-half-image img {

        right: 0;
    }
}

@media (min-width: 1650px) {
    .half-and-half-image .video-image {
        /* width: calc(100% - 170px); */
        margin: 0 0 0 auto;
    }
}

.contain .half-and-half-image img {
    object-fit: contain;
}
