/* Pagina-achtergrond (per pagina via Pagina's aanpassen) */
body.page-has-bg {
    position: relative;
    isolation: isolate;
}

body.page-bg--full::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(250, 250, 250, 0.9), rgba(250, 250, 250, 0.86)),
        var(--page-bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

body.page-bg--partial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(48vh, 520px);
    z-index: -1;
    background-image: var(--page-bg-url);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.38;
    pointer-events: none;
}

body.page-has-bg .header,
body.page-has-bg .main-content,
body.page-has-bg .footer {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    body.page-bg--full::before {
        background-attachment: scroll;
    }
}
