.parallaxSectionWrapper {
    background-color: transparent;
    position: relative;
}

#magicBG,
.parallaxBGwrapper {
    display: block !important;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin-bottom: -100vh; /* "Nollataan" osion korkeus ja saadaan ensimmäinen sectio parallaxSectionWrapper ylöreunaan kiinni*/

    z-index: -1;
    background-color: transparent;
    background-position: center top;
    background-size: cover;
}


.magicBGdia,
.parallaxDiaBG {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-position: center top;
    background-size: cover;

    z-index: 2;

}

/* Let's remove backgound colors from sections (they'll be used in ".parallaxDiaBG .sectionBackgroundColorVeil") */

.parallaxSectionWrapper .elomatic-section,
.parallaxSectionWrapper .elomatic-section .sectionBackgroundColorVeil {
    background-color: transparent !important;
}



.parallaxDiaBG .sectionBackgroundColorVeil {
    opacity: 1;
}

.parallaxDiaBG.hasBackgroundImage .sectionBackgroundColorVeil {
    opacity: 0.75;
    mix-blend-mode: multiply;
}


/* Taustakuvien vaihtoanimaatioita...  */

.magicBGdia.klipattu,
.parallaxDiaBG.klipattu {
    clip-path: polygon(0 0, -30% 0, 0% 100%, 0% 100%);
}

.magicBGdia.klipattu.ylhaaltaAlas,
.parallaxDiaBG.klipattu.ylhaaltaAlas {
    /* clip-path: polygon(130% 0, 100% 0, 100% 100%, 100% 100%);*/
    clip-path: polygon(0 0, -30% 0, 0% 100%, 0% 100%); /* ok */
}


.parallaxDiaBG.avaa {
    /*z-index: 3;*/
}

.magicBGdia.klipattu.avaa,
.parallaxDiaBG.klipattu.avaa {
    transition: clip-path 0.6s ease-in-out 0s;
    clip-path: polygon(0 0, 100% 0, 130% 100%, 0% 100%);
}

.magicBGdia.klipattu.ylhaaltaAlas.avaa,
.parallaxDiaBG.klipattu.ylhaaltaAlas.avaa {
    /*clip-path: polygon(0 0, 100% 0, 100% 100%, -30% 100%);*/
    clip-path: polygon(0 0, 100% 0, 130% 100%, 0% 100%); /* ok */
}

.parallaxDiaBG.klipattu.avaa.ekaAvattuLadattu {
    transition: clip-path 0s ease-in-out 0s;
}
