/*------------------------------------*\
    
    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--multi {
    padding: 56px 0;
}

.half-and-half--double {
    padding: 56px 0;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

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

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

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

.half-and-half-image__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
}

.half-and-half--right .half-and-half-image__wrap {
    flex-direction: row-reverse;
}

.half-and-half-image__left {
    width: 43%;
    height: 253px;
}

.half-and-half-image__left img {
    border-radius: 20px 0 0 20px;
}

.half-and-half-image__right {
    width: calc(57% - 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
}

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

.half-and-half-image__full-wrap.image-size-cover {
    height: 180px;
    overflow: hidden;
}

/* .image-size-cover img {
    height: auto;
} */

.half-and-half-image__right img {
    height: 121px;
}

.half-and-half-image__right img:first-of-type {
    border-radius: 0 20px 0 0;
}

.half-and-half-image__right img:last-of-type,
.half-and-half-image__right img:nth-of-type(2) {
    border-radius: 0 0 20px 0;
}

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

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

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

.half-logo-icon {
    position: absolute;
    left: -60px;
    top: 40px;
    max-width: 226px;
    height: auto;
}

.half-and-half-image__double-wrap {
    display: flex;
    flex-wrap: wrap;
    row-gap: 11px;
}

.half-and-half-image__top,
.half-and-half-image__bottom {
    height: 122px;
    width: 100%;
}

.half-and-half-image__top img {
    border-radius: 0 20px 0 0;
}

.half-and-half--left .half-and-half-image__top img {
    border-radius: 20px 0 0 0;
}

.half-and-half-image__bottom img {
    border-radius: 0 0 20px 0;
}

.half-and-half--left .half-and-half-image__bottom img {
    border-radius: 0 0 0 20px;
}

.half-and-half .half-and-half-text .btn-primary:hover{
    background: var(--light-gray);
    color: var(--white);
    box-shadow: 0 0 8px 0 rgba(3,3,3,.5);
    border: 1px solid var(--white);
}


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

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

    .half-and-half-image__wrap {
        gap: 0 0;
        justify-content: space-between;
    }

    .half-and-half-image__left {
        height: 712px;
        width: 322px;
    }

    .half-and-half-image__left img {
        border-radius: 0;
    }

    .half-and-half-image__right {
        width: calc(100% - 352px);
        gap: 32px 0;
    }

    .half-and-half-image__right img {
        height: 340px;
        border-radius: 0;
    }

    .half-and-half-image__right img:first-of-type {
        border-radius: 0;
    }

    .half-and-half-image__right img:last-of-type,
    .half-and-half-image__right img:nth-of-type(2) {
        border-radius: 0;
    }


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

    .half-and-half--left .half-and-half-text {
        padding-bottom: 50px;
    }

    .half-logo-icon {
        left: -50px;
        top: 85px;
        max-width: 370px;
    }

    .half-and-half--right .half-and-half-text {
        padding-top: 50px;
    }

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

    .half-and-half--multi .half-and-half-image {
        padding: 0;
    }

    .half-and-half-image__double-wrap {
        row-gap: 32px;
    }

    .half-and-half-image__top,
    .half-and-half-image__bottom {
        height: 339px;
    }

}

@media (min-width: 1200px) {
    

    .half-and-half--multi {
        padding: 100px 0;
        align-items: center;
    }

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

    .half-and-half-image.half-single{
        min-height: 500px;
    }

    .half-and-half-image.half-triple,
    .half-and-half-image.half-double {
        min-height: 744px;
    }

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

    .half-and-half-text {
        padding: 0;
    }

    .half-and-half--right .half-and-half-text {
        padding-top: 50px;
    }

    .half-and-half--multi .half-and-half-text {
        padding-top: 9px;
        padding-bottom: 32px;
    }

    .half-and-half--left .half-and-half-text {
        padding-left: 63px;
    }

    .half-and-half--right .half-and-half-text {
        padding-right: 63px;
    }

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

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


    .half-and-half--left .half-and-half-image {
        padding: 0 0 0 90px;
    }

    .half-and-half--right .half-and-half-image {
        padding: 0 90px 0 0;
    }

    .half-and-half-image__wrap {
        gap: 0;
        height: 100%;
    }

    .home .half-and-half-image__wrap{
        position: relative;
    }


    .half-and-half-image__left {
        height: 100%;
        position: relative;
        width: 369px;
    }

    .half-and-half-image__right {
        width: calc(100% - 397px);
        position: relative;
        height: 100%;
    }

    .half-and-half-image__right img {
        height: calc(50% - 16px);
    }

    .half-logo-icon {
        left: -8px;
        top: 93px;
        max-width: 580px;
    }

    .half-and-half-image__left img {
        border-radius: 20px 0 0 20px;
        height: 697px;
    }

    .half-and-half-image__right img{
        height: 333px;
    }

    .half-and-half--right .half-and-half-image__left img {
        border-radius: 0 20px 20px 0;
    }

    .half-and-half-image__double-wrap {
        position: absolute;
        width: calc(100% - 90px);
        height: 100%;
        max-height: 712px;
    }

    .half-and-half-image__top,
    .half-and-half-image__bottom {
        height: calc(50% - 16px);
    }

    .half-and-half--double .half-and-half-text {
        padding-top: 10px;
        padding-bottom: 32px;
    }

}

@media (min-width: 2500px) {
    .half-and-half--left .half-and-half-text__wrapper{
        max-width: 70%;
    }


    .half-and-half--homepage .half-logo-icon{
        width: 25%;
        max-width: none;
        top: 55px;
    }
}


.half-and-half--full {
    padding: 0 0 56px 0;
}

.half-and-half--full .half-and-half-image {
    padding: 0;
}

.half-and-half-image__full-wrap {
    position: relative;
    height: auto;
}

.flex-opposite.half-and-half--left .half-and-half-text {
    padding-bottom: 0;
    padding-top: 40px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,3,3,0.2);
    border: none;
}

.video-bttn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.video-bttn svg {
    width: 23px;
    height: auto;
    transition: all .3s;
}

.half-logo-icon--left,
.half-logo-icon--right {
    width: 225px;
    top: auto;
    left: auto;
    bottom: 56px;
    right: -27px;
}

.brown.half-logo-icon{
    transform: scaleX(-1);
}


.half-and-half:has(.image-size-contain) {
    align-items: center;
}

.half-and-half-image:has(.image-size-contain) {
    min-height: unset;
    justify-content: center;
    display: flex;
    margin-top: 0;
}

.half-and-half-image__full-wrap.image-size-contain {
    position: relative !important;
    width: calc(100% - 100px) !important;
    height: auto !important;
    margin-top: 0;
}

.half-and-half-image__full-wrap.image-size-contain img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius) !important;
}

@media (max-width: 767px) {
    .half-and-half:has(.image-size-contain) {
        padding-top: 50px !important;
    }
}
@media (min-width: 768px) {
    
    .half-and-half--full {
        padding: 80px 0;
    }

    .no-top-padding {
        padding-top: 0;
        padding-bottom: 138px;
    }

    .half-and-half--right .half-and-half-image__full-wrap img {
        border-radius: 0 20px 20px 0;
    }


    .half-and-half-image__full-wrap.image-size-contain {
        width: calc(100% - 250px);
    }


    .half-and-half--right .video-bttn{
        border-radius: 0 20px 20px 0;
    }

    .half-and-half-image__full-wrap {
        height: 440px;
    }

    .half-and-half-image__full-wrap.image-size-cover {
        height: 500px;
    }

    .flex-opposite.half-and-half--left .half-and-half-text {
        padding-top: 50px;
    }

    .half-and-half-image__full-wrap.image-size-contain {
        width: calc(100% - 350px) !important;
    }

    .video-bttn::after {
        width: 136px;
        height: 136px;
    }

    .video-bttn svg {
        width: 46px;
    }

    .video-bttn {
        border-radius: 20px 0 0 20px;
    }

    .half-logo-icon--left {
        width: 343px;
        bottom: 4px;
        right: -66px;
    }

    .half-logo-icon--right {
        bottom: 80px;
        right: -41px;
        width: 343px;
    }

    .half-and-half-image__full-wrap {
        position: relative;
        height: 180px;
    }

    .half-and-half-image__full-wrap img {
        height: 100%;
    }
}

@media (min-width: 1200px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .half-and-half--full,
    .no-top-padding {
        padding: 100px 0;
    }


    .half-and-half--right .half-and-half-image__full-wrap img {
        border-radius: 0 20px 20px 0;
    }

    .half-and-half--right .video-bttn{
        border-radius: 0 20px 20px 0;
    }

    .half-and-half--left .half-and-half-image__full-wrap img {
        border-radius: 20px 0 0 20px;
    }

    .half-and-half-image__full-wrap {
        height: 440px;
    }

    .flex-opposite.half-and-half--left .half-and-half-text {
        padding-top: 50px;
    }

    .half-and-half--full .half-and-half-image__full-wrap {
        position: absolute;
        width: calc(100% - 90px);
        height: 100%;
    }

    .half-and-half--left .half-and-half-image__full-wrap {
        right: 0;
    }

    .video-bttn {
        border-radius: 20px 0 0 20px;
    }

    .video-bttn:hover svg {
        transform: scale(1.1);
    }

    .half-logo-icon--left {
        width: 578px;
        bottom: 0;
        left: -68px;
    }

    .half-logo-icon--right {
        bottom: 0;
        right: -0;
        width: 513px;
    }

    .brown.half-logo-icon{
        transform: scaleX(1);
    }

    .half-and-half--right .brown.half-logo-icon{
        transform: scaleX(-1);
    }

    .white.half-logo-icon{
        transform: scaleX(-1);
    }

    .white.half-logo-icon.half-logo-icon--right{
        transform: scaleX(1);
    }

}

@media (max-width: 1199px) {

    .flex-opposite .half-and-half-image,
    .flex-opposite .half-and-half-image > div {
        margin: 0;
    }

     .half-and-half-image, 
     .half-and-half-image__full-wrap {
        margin-top: 30px !important;
    }

    .half-and-half:has(.half-single):not(:has(.image-size-contain)) {
        padding-top: 0;
    }
}

.half-and-half.bg-brown p a.btn-primary {
    color: var(--white);
}

@media (max-width: 600px) {
   
    .half-and-half--right .half-and-half-image__right img:first-of-type {
        border-radius: 20px 0 0 0; 
    }

    .half-and-half--right .half-and-half-image__right img:last-of-type,
    .half-and-half--right .half-and-half-image__right img:nth-of-type(2) {
        border-radius: 0 0 0 20px; 
    }

    .half-and-half--right .half-and-half-image__left img {
        border-radius: 0 20px 20px 0; 
    }

    .half-text-half-video{
        padding-bottom: 0;
    }
}