/*------------------------------------*\
    
    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 .container {
    position: relative;
    z-index: 1;
}

.image-text .flex-row {
    align-items: flex-start;
}

.image-text__text__wrap {
    padding-bottom: 40px;
}

.web {
    position: absolute;
    width: 202px;
    right: -119px;
    top: -115px;
    z-index: -1;
}

.js-media {
    padding-bottom: 90px;
}

.js-media.media-slider-count-1 {
    padding-bottom: 0!important;
}

.media {
    height: 198px;
    position: relative;
}

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

.media__bttn svg {
    width: 55px;
    height: auto;
}

.image-text__text__wrap h2 {
    padding-right: 35px;
}

.web--top {
    top: auto;
    bottom: 0;
    right: -78px;
}

.image-text__text__wrap .sub-heading {
    color: #FF6800;
}

.image-text__text__wrap .sub-heading--blue {
    color: #002855;
}

.image-item {
    margin-top: 10px;
    height: 217px;
}

.image-item.Full {
    height: auto;
}

.image-item.Contain img {
    -o-object-fit: contain;
    object-fit: contain;
}

@media (min-width: 768px) {
    .image-text__text__wrap {
        padding-bottom: 50px;
    }

    .web {
        position: absolute;
        width: 244px;
        right: -72px;
        top: auto;
        bottom: 300px;
    }

    .web--top {
        top: auto;
        bottom: 200px;
        right: -70px;
    }

    .js-media {
        padding-bottom: 95px;
    }

    .media {
        height: 366px;
    }


    .media__bttn svg {
        width: 79px;
        height: auto;
    }

    .image-text__text__wrap h2 {
        padding-right: 0;
        margin-right: -30px;
    }

    .image-item {
        margin-top: 0;
        height: 366px;
    }
}

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

    .image-text--left .image-text__text__wrap {
        margin-left: auto;
    }


    .image-text__text__wrap {
        padding-bottom: 50px;
    }

    .web {
        position: absolute;
        width:403px;
        right: -180px;
        top: -58px;
        bottom: auto;
    }

    .web--top-1 {
        top: -30px;
    }

    .web--top {
        right: -200px;
    }

    .image-text--left .web {
        left: -200px;
    }

    .js-media {
        padding-bottom: 60px;
    }

    .media {
        height: 405px;
    }

    .image-text__text__wrap h2 {
        margin-right: 0;
    }

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

    .image-text__text__wrap {
        padding: 0;
        max-width: 508px;
    }

    .js-media .slick-next {
        right: 0;
        margin: 0;
    }

    .js-media .slick-prev {
        left: auto;
        right: 60px;
        margin: 0;
    }

    .media__bttn svg {
        transition: all .3s ease-in-out;
    }

    .media__bttn:hover svg {
       transform: scale(1.1);
    }

    .image-item {
        height: 450px;
    }

    .image-text--inner1 .image-text__text__wrap,
    .image-text--inner2 .image-text__text__wrap {
        max-width: 540px;
    }

    .image-text--inner2 .image-text__text__wrap h2 {
        margin-right: -53px;
        letter-spacing: -0.03em;
    }
}

.image-text__text__wrap .btn {
    margin-top: 0;
}

