/*------------------------------------*\
    
    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block. 
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/
.image-text {
    position: relative;
    z-index: 1;
}

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

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

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

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

.image-text .flex-row {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
    align-items: center;
}

.image-text__img {
    position: relative;
    height: 350px;
}

.image-text__img img {
    border-radius: 10px;
}

.image-text__img--sml {
    height: 181px;
}

.image-text--video .image-text__img {
    margin-bottom: 62px;
}

.image-text__info {
    position: absolute;
    left: 0;
    bottom: -62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-text__info-text {
    width: max-content;
    max-width: 189px;
    font-size: 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: bold;
}

.image-text--right .flex-row {
    flex-direction: column-reverse;
}

@media (max-width: 1199px) {
    .image-text--tablet-mobile-top .flex-row {
        flex-direction: column;
    }
    
    .image-text--tablet-mobile-bottom .flex-row {
        flex-direction: column-reverse;
    }
}

@media (min-width: 768px) {
    .image-text__img {
        height: 424px;
    }

    .image-text__img--sml {
        height: 339px;
    }

    .image-text--video .image-text__img {
        margin-bottom: 0;
    }

    .video-bttn svg {
        width: 80px;
    }
    
    .image-text__info {
        left: auto;
        right: 21px;
        bottom: auto;
        top: -54px;
        width: auto;
    }

    .image-text--left .image-text__info {
        left: 21px;
        right: auto;
    }

    .image-text--left.image-text--video {
        padding-top: 120px;
    }

}

@media (min-width: 768px) and (max-width: 1199px) {
    .image-text__info-text {
        transform: translateY(-10px);
    }
}

@media (min-width: 1200px) {

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

    .image-text .flex-row:has(.image-text__img--cover) {
        align-items: stretch;
    }

    .image-text__img {
        height: auto;
        max-width: 608px;
    }

    .image-text__img--sml {
        height: auto;
    }

    .image-text__half:has(.image-text__img--cover) {
        position: relative;
        min-height: 100%;
    }

    .image-text__img--cover {
        height: 100%;
    }

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

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

    .image-text__info {
        left: auto;
        right: 0;
        bottom: auto;
        top: auto;
        width: 152px;
    }

    .image-text__info svg, .image-text__info img {
        position: absolute;
        left: -74px;
        bottom: -69px;
    }

    .image-text--left .image-text__info {
        left: auto;
        right: auto;
    }

    .image-text--left .image-text__info svg, .image-text--left .image-text__info img {
        left: auto;
        right: -74px;
    }

    .image-text--left.image-text--video {
        padding-top: 100px;
    }

     .image-text--right .flex-row {
        flex-direction: row-reverse;
    }
}
@media( min-width:1491px) {
      .image-text__info {
             left: auto;
            right: -110px;
            bottom: 0;
            top: auto;
            width: 100px;
      }
       .image-text--left .image-text__info{
            left: -100px;
            right: auto;
       }
}

@media(min-width:1594px) {
    .image-text__info {
        left: auto;
        right: -168px;
        bottom: 0;
        top: auto;
        width: 152px;
    }
    .image-text--left .image-text__info{
        left: -168px;
        right: auto;
    }
}