/*------------------------------------*\
    
    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--homepage {
    padding: 75px 0 30px;
}

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

.image-text .flex-row {
    align-items: center
}

.image-text__img {
    position: relative;
    z-index: 2;
}

.image-text__img--border {
    border-radius: 20px;
    border: 2px solid #594B1A;
    height: 299px;
}

.fixed-height-mobile .image-text__img--border {
    height: auto;
}

.image-text__img--with-logo {
    margin-top: 20px;
}

.image-text__img--border img {
    border-radius: 20px;
    z-index: 1;
    width: 100%;
    object-fit: cover;
    height: 100%;
    object-position: top;
}

.image-label {
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 20px 0px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.70) 0%, rgba(7, 5, 4, 0.35) 100%);
    backdrop-filter: blur(3.5px);
    z-index: 3;
    max-width: 215px;
    text-align: right;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
    padding: 5px 15px;
}

.image-text__text {
    margin-top: 30px;
}

.image-text__text .read-more__box {
    max-height: 190px;
}

.logo-icon {
    position: absolute;
    right: 0;
    top: -22px;
    max-width: 82px;
    z-index: 2;
}

.image-text--left .logo-icon {
    right: auto;
    left: 0;
}

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

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -50%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transform: translate(0, 50%);
}

.video-bttn::before {
    content: '';
    position: absolute;
    width: 99px;
    height: 99px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.70) 0%, rgba(7, 5, 4, 0.35) 100%);
    backdrop-filter: blur(3.5px);
    z-index: -1;
}

.video-bttn svg {
    width: 39px;
    height: auto;
    margin-left: 10px;
}

.image-text__top-content {
    position: relative;
}

.media-left-pattern {
    position: absolute;
    top: 50%;
    left: -131px;
    transform: translate(0, -50%);
    z-index: -1;
    width: 335px;
    max-width: initial !important;
}

.media-right-pattern {
    right: -131px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: -1;
    width: 335px;
    max-width: initial !important;
}

.image-text__img--center {
    position: relative;
    z-index: 2;
}

.image-text__img--border .logo-icon img {
    border-radius: 0;
}

.image-text .z-index-2 {
    z-index: 2;
    position: relative;
}

@media (min-width: 768px) {
    .image-text--homepage {
        padding: 120px 0 56px;
    }

    .image-label {
        max-width: 400px;
        padding: 4px 35px;
    }

    .image-text__text {
        margin-top: 55px;
        padding: 0 58px;
    }

    .image-text__text .read-more__box {
        max-height: 230px;
    }

    .logo-icon {
        top: -28px;
        max-width: 115px;
    }

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

    .video-bttn::before {
        width: 150px;
        height: 150px;
    }

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

    .image-text__img--center img {
        margin: 0 auto;
        max-width: 496px;
    }

    .media-left-pattern {
        left: -120px;
        width: 353px;
    }

    .media-right-pattern {
        right: -120px;
        width: 353px;
    }
}

@media (min-width: 1200px) {
      .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text--homepage {
        padding: 200px 0;
    }

    .image-text__img--border {
        height: auto;
        margin-top: 0;
    }

    .image-label {
        max-width: 480px;
        font-size: 20px;
        line-height: 1.3em;
        padding: 9px 35px;
    }

    .image-text__text {
        margin-top: 0;
        padding: 0 0 0 22px;
    }

    .image-text--right .image-text__text {
        padding: 0 22px 0 0;
    }

    .image-text__img--with-logo {
        margin-top: 20px;
    }

    .image-text__text .read-more__box {
        max-height: 300px;
    }

    .logo-icon {
        top: -65px;
        max-width: 142px;
    }

  .video-bttn:hover path {
        stroke: #B89A23; 
    }

    .image-text--right .image-text__text {
        padding-right: 33px;
    }

     .image-text--left .image-text__text {
        padding-left: 28px;
    }

    .image-text__img--center img {
        margin: 0 ;
        max-width: 100%;
    }

     .media-left-pattern {
        left: -370px;
        width: 773px;
        top: 0;
        transform: translate(0);
    }

    .media-right-pattern {
        right: -370px;
        width: 773px;
        top: 0;
        transform: translate(0);
    }
}





