/*------------------------------------*\
    
    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;
    min-height: 300px;
    background-color: #192941;
}

.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;
    opacity: .8;
}

.full-width-image-text__img_secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 6;
    display: block;
}

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

.full-width-image-text__headline {
    margin-top: 0;
}

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

.full-width-image-text__content {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap;
}

.btn-discover {
    margin: 0 auto;
}

.full-width-image-text__content-holder {
    display: block;
    vertical-align: middle;
    z-index: 10;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY( -50% );
    transform: translateY( -50% );
}

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

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

@media ( min-width: 1025px ) {
    .full-width-image-text__content {
        padding: 100px 70px;
    }
}

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

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

.full-width-image-text__description {
    text-align: center;
}

.full-width-image-text__description a {
    box-shadow: 0 1px 30px 0 rgb( 0 0 0 / 10% );
}

.full-width-image-text__headline,
.full-width-image-text__description p {
    color: #fff;
    font-size: 41px;
    font-weight: 500;
    text-shadow: 0 1px 30px 0 rgb( 0 0 0 / 10% );
}

@media ( min-width: 921px ) {
    /* Overlay Color */
    .full-width-image-text--direct-overlay:after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.2;
        background: #192941;
        display: block;
    }

    .second-overlay {
        display: none;
        z-index: 5;
    }

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

/* Full-Width Image + Text - Text Box Overlay */
.full-width-image-text__content {
    border-radius: 4px;
}

@media ( max-width: 600px ) {
    .full-width-image-text {
        position: relative;
        min-height: 285px;
        background-color: #192941;
    }

    .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;
        opacity: .8;
    }

    .full-width-image-text--direct-overlay:after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.2;
        background: #192941;
        display: block;
    }

    .full-width-image-text__content {
        margin-top: 0px;
        padding: 0;
    }

    .full-width-image-text__headline {
        color: #fff;
        font-size: 32px;
        font-weight: 800;
    }

    .btn-discover {
        width: 100%;
        margin: 0 auto;
    }

    .full-width-image-text__content-holder {
        display: block;
        vertical-align: unset;
        z-index: 10;
        position: unset;
        top: unset;
        -webkit-transform: unset;
        transform: unset;
    }

    .full-width-image-text__img_secondary {
        z-index: 1;
    }
}

@media ( min-width: 1024px ) {
    .full-width-image-text {
        position: relative;
        min-height: 500px;
    }
    .full-width-image-text__headline {
        font-size: 42px;
    }
}
