/*------------------------------------*\
    
    Full-Width Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Full-Width 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-starter-blocks.php)

\*------------------------------------*/

.full-width-image-text {
    position: relative;
}

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

.full-width-image-text__content {
    padding: 0;
    position: relative;
    z-index: 2;
}

.full-width-image-text__content h1 {
    margin-bottom: 20px;
}

.full-width-image-text__headline {
    margin-top: 0;
    font-size: 40px;
    font-weight: 700;
}

.full-width-image-text__description:last-child {
    margin-bottom: 0;
}

.full-width-image-text__description a:not(.btn) {
    color: var(--color-white);
}

.full-width-image-text--homepage {
    padding: 98px 0;
}

.full-width-image-text--homepage .full-width-image-text__content {
    max-width: 546px;
    margin: 0 auto;
}

h3.full-width-image-text__headline {
    font-size: 24px;
    padding-bottom: 25px;
}

.full-width-image-text__description :where(h2,h3,h4,h5,h6,p,ul,ol) {
    color: var(--color-white); 
}

.full-width-image-text__description :where(h2,h3,h4,h5,h6) {
    font-weight: 700;
    padding-bottom: 25px;
} 

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

}

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

    .full-width-image-text--homepage .full-width-image-text__content {
        max-width: 603px;
    }
    
    .full-width-image-text__headline {
        font-size: 45px;
        font-weight: 900;
    }

    .full-width-image-text--padding {
        padding: 107px 0;
    }

    .full-width-image-text__description a:not(.btn):hover {
        color: var(--color-primary);
    }
}

@media (min-width: 1600px) {
    .full-width-image-text--homepage {
        padding: 319px 0;
    }

    .full-width-image-text--homepage .full-width-image-text__content {
        max-width: 880px;
    }

    .full-width-image-text--homepage .full-width-image-text__content p {
        font-size: 21px;
    }

    .full-width-image-text__headline {
        font-size: 50px;
    }

    h3.full-width-image-text__headline {
        font-size: 34px;
    }
}



.full-width-image-text--direct-overlay .full-width-image-text__headline,
.full-width-image-text--direct-overlay .full-width-image-text__description p {
    color: #fff;
}


.full-width-image-text--direct-overlay:before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.60);
    display: block;
}


.full-width-image-text--inner {
    padding: 98px 0;
}

.full-width-image-text--inner .full-width-image-text__content :where(h1,h2,h3,h4,h5,h6,p,ul,ol) {
    color: var(--color-white);
}

.full-width-image-text--inner .full-width-image-text__content h5 {
    color: #FFFFFF;
    font-weight: 700;
}

.full-width-image-text--inner .full-width-image-text__content {
    width: 100%;
    max-width: 766px;
    margin: 0 auto;
}

.full-width-image-text--flex {
    padding: 90px 0;
}

.full-width-image-text__description h3 {
    font-size: 28px;
}

.full-width-image-text .btn-white:hover {
    color: #fff;
}

.full-width-image-text .btn-white:hover::after {
    background: var(--color-black);
    border-color: var(--color-black);
}

@media(min-width: 768px) {
    .full-width-image-text--flex {
        padding: 105px 0;
    }
}

@media(min-width: 1200px) {

    .full-width-image-text--inner {
        padding: 89px 0;
    }

    .full-width-image-text--inner .full-width-image-text__content h5 {
        font-size: 24px;
        line-height: 1.333em;
    }

    .full-width-image-text__content__wrap {
        max-width: 766px;
        margin: 0 auto;
    }

    .full-width-image-text--flex {
        padding: 105px 0;
    }
}
