﻿/*.kierunek-preview-background {
    position: relative;
    isolation: isolate;
}

.kierunek-preview-background__image {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(100%, 1920px);
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.kierunek-preview-background__content {
    position: relative;
    z-index: 1;
}*/
.kierunek-preview-background {
    position: relative;
    isolation: isolate;
    min-height: 100%;
}

.kierunek-preview-background__image {
    position: sticky;
    top: 0;
    width: min(100%, 1920px);
    height: 100vh;
    margin: 0 auto;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.kierunek-preview-background__content {
    position: relative;
    z-index: 1;
}

.kierunek-preview-background__content--with-bg {
    margin-top: -100vh;
}
/*---*/
.kierunek-public-background {
    position: relative;
    /*isolation: isolate;*/
    width: 100%;
    max-width: 1920px;
    min-height: calc(100vh-150px);
    margin-inline: auto;
}

    .kierunek-public-background::before {
        content: "";
        position: fixed;
        top: 0;
        left: 50%;
        width: min(1920px, 100vw);
        height: 100vh;
        transform: translateX(-50%);
        background-image: var(--programme-background, none);
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        pointer-events: none;
        z-index: -1;
    }

.kierunek-public-content {
    position: relative;
    z-index: 1;
}
