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

.image-text__img img {
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.image-text__img {
    height: 295px;
    padding-left: 7px;
    position: relative;
    z-index: 1;
}

.image-text__img:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 164px;
    height: 250px;
    background: #292929;
    z-index: -1;
    clip-path: polygon(0 1%, 100% 90%, 96% 100%, 0% 100%);
}

.image-text__text {
    padding-top: 36px;
    color: #000000;
}

.image-text__text h2 {
    color: #000000;
}

.image-text .cta-dots-right {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.image-text .cta-dots-left {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
}

.home .image-text .cta-dots-left {
    bottom: -25px;
}

@media (min-width: 768px) {
    .image-text--padding {
        padding: 94px 0 130px 0;
    }

    .image-text--padding .container {
        padding: 0 110px;
    }

    .image-text__img {
        height: 488px;
        padding-left: 11px;
    }
    
    .image-text__img:before {
        bottom: -11px;
        width: 271px;
        height: 414px;
    }
    
    .image-text__text {
        padding-top: 60px;
    }

    .btn-margin-top {
        margin-top: 20px;
    }

    .image-text .cta-dots-right {
        max-width: 400px;
    }

    .image-text .cta-dots-left {
        max-width: unset;
    }
}

@media (min-width: 1200px) {
    .image-text--padding {
        padding: 110px  0;
    }

    .image-text--padding .container {
        padding: 0 16px;
    }

    .image-text--padding .row {
        align-items: center;
    }

    .image-text__img {
        width: 545px;
        height: 488px;
    }

    .image-text__text {
        width: calc(100% - 545px);
        padding-left: 80px;
        padding-top: 0;
        padding-right: 0;
    }

    .flex-row {
        display: flex;
        flex-wrap: wrap;
        padding: 0 16px;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
        padding: 0 16px;
    }

    .flex-opposite .image-text__text {
        padding-left: 0;
        padding-right: 112px;
        padding-top: 0;
    }

    .flex-opposite .image-text__img {
        padding-left: 0;
        padding-right: 11px;
    }

    .flex-opposite .image-text__img:before {
        left: -11px;
        right: auto;
        bottom: -11px;
        clip-path: polygon(0 0, 100% 53%, 71% 100%, 0% 100%);
    }

    .image-text .cta-dots-right {
        max-width: 100%;
        height: auto;
        width: auto;
    }

    .image-text .cta-dots-left {
        max-width: 100%;
        height: auto;
        width: auto;
    }

    .home .image-text .cta-dots-left {
        bottom: -135px;
    }
}
