/*------------------------------------*\
    
    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;
    text-align: center;
}

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

.full-width-image-text--direct-overlay .full-width-image-text__content :where(p, h1, h2, h3, h4, h5, h6) {
    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%;
    opacity: 0.7;
    display: block;
    background: linear-gradient(to bottom, #23367c 0%, #265eac 100%);
}

.full-width-image-text--direct-overlay--bg-yellow::before {
    background: linear-gradient(to bottom, #ffc915 0%, #fceab0 100%);
}

.full-width-image-text--direct-overlay--bg-yellow .full-width-image-text__content :where(p, h1, h2, h3, h4, h5, h6):not(.sub-heading) {
    color: #14245f;
}

.full-width-image-text--direct-overlay--bg-yellow .btn-primary {
    background: #14245f;
    color: #fff;
}

.full-width-image-text--direct-overlay--bg-yellow .btn-primary:hover {
    background: #020c33;
    color: #fff;
}