/*------------------------------------*\
    
    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;
    display: block;
}

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

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

.full-width-image-text__headline {
    margin-top: 0;
    padding-bottom: 20px;
    font-size: 30px;
}

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

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

.full-width-image-text__content {
    padding: 60px 22px 50px;
}

.full-width-image-text__description p {
    padding-bottom: 30px;
}

.full-width-pattern {
    position: absolute;
    top: 0;
    right: 400px;
    z-index: 1;
}

.full-width-pattern-left {
    position: absolute;
    top: 0;
    left: 270px;
    z-index: 1;
}

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

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

@media (min-width: 768px) {
    .full-width-image-text__content {
        padding: 40px;
    }

    .full-width-image-text__img {
        display: block;
    }

    .full-width-image-text {
        padding: 60px 0;
    }
    
    .full-width-image-text .container {
        padding: 0 52px;
    }

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

@media (min-width: 1200px) {
    .full-width-image-text__content {
        padding: 80px;
    }

    .full-width-image-text__description p {
        font-size: 16px;
    }
}


/* Full-Width Image + Text - Direct Text Overlay */
.full-width-image-text--direct-overlay .full-width-image-text__content {
    padding: 0 20px;
}

.full-width-image-text--direct-overlay .full-width-image-text__content {
    padding: 0 20px;
}

.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 - Text Box Overlay */
.full-width-image-text--box-overlay .full-width-image-text__content {
    background-color: rgba(0,0,0,0.83);
    border-radius: 0; 
    color: #fff;
}


.full-width-image-text__content {
    max-width: 870px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .full-width-image-text__content {
        margin: 0;
    }

    .full-width-image-text__content.right {
        float: right;
    }
}