

.tekstinostoKuvallaWrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
}


.tekstinostoKuvallaWrapper.moreMarginBottom {
    margin-bottom: 15px;
}


.tekstinotoKuvallaRivi {
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
}


.tekstinostoWrapper {
    position: relative;
    z-index: 5;

}


.tekstinostoWrapper::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 180%;
    background-color: inherit;
    content: '';
    transform-origin: right top;
    transform: rotateZ(-30deg);
    z-index: -1;
}


.tekstinostoWrapper.textOnRight::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180%;
    content: '';
    transform-origin: left top;
    transform: rotateZ(30deg);
    z-index: -1;
}


/* replacing background-color: inherit; for better compatibility (testimonials) ... */

.tekstinostoWrapper.has-original-blue-background-color::before {
    background-color: var(--col-orig-blue);
}

.tekstinostoWrapper.has-navy-blue-background-color::before {
    background-color: var(--col-navy-blue);
}

.tekstinostoWrapper.has-menthe-blue-background-color::before {
    background-color: var(--col-menthe-blue);
}

.tekstinostoWrapper.has-warm-glow-background-color::before {
    background-color: var(--col-warm-glow);
}

.tekstinostoWrapper.has-spring-green-background-color::before {
    background-color: var(--col-spring-green);
}

.tekstinostoWrapper.has-lotus-red-background-color::before {
    background-color: var(--col-lotus-red);
}

.tekstinostoWrapper.has-calm-grey-background-color::before {
    background-color: var(--col-calm-grey);
}

.tekstinostoWrapper.has-valkoinen-background-color::before {
    background-color: var(--col-valkoinen);
}


/**/


@media (min-width: 768px) {
    .tekstinostoWrapper {
        min-height: 400px;
    }

    .naturalHeight .tekstinostoWrapper {
        min-height: auto;
    }

}

.tekstinosto {
    padding: 40px 40px;

}

.slimPadding .tekstinosto {
    padding: 0 10px;
}

.tekstinostoKuvaWrapper {
    position: relative;
    z-index: 3;
    padding-top: 43.3%;
}

.tekstinostoKuva {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 4;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

}

.nostoToGrayScale .tekstinostoKuva {
    filter: grayscale(100%);
}


.viisteElementtiUlkolaita {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    transform-origin: right top;
    transform: translateX(-100%) rotateZ(-30deg);
    z-index: 5;
}

.tekstinostoKuvaWrapper.oikealla .viisteElementtiUlkolaita {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 150%;
    height: 150%;
    transform-origin: left top;
    transform: translateX(100%) rotateZ(30deg);
    opacity: 0;
}

.tekstinostoLinkkiPainike {
}

@media (max-width: 992px) {
    .tekstinostoKuvaWrapper {
    }

    .tekstinostoWrapper {
        background-color: transparent !important;
    }

    .tekstinostoWrapper::before,
    .tekstinostoWrapper.textOnRight::before {
        transform: none;
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }


    .tekstinostoKuvallaWrapper {
        height: 100%;
    }

    .tekstinostoKuvallaWrapper.moreMarginBottom {
        height: calc(100% - 15px);
    }

    .tekstinotoKuvallaRivi {
        height: 100%;
    }

    .tekstinostoWrapper {
        padding-top: 80px;
        padding-bottom: 60px;
    }


}


@media (max-width: 992px) {


}


@media (max-width: 575px) {
    .tekstinostoKuvaWrapper {
        padding-top: 57%; /*  16 / 9 */
    }

    .tekstinostoWrapper::before {
    }

    .tekstinostoWrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .row.tekstinotoKuvallaRivi .tekstinosto h2 {
        font-size: 2.5rem;
    }

}

@media (max-width: 450px) {
    .row.tekstinotoKuvallaRivi .tekstinosto h2 {
        font-size: 1.3rem;
        line-height: 1.4em;
    }
}

/**/

.slideImageWrapper {
    aspect-ratio: 16 / 9;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slideTextLeftColumn {
}

.slideTextRightColumn {
}


.slideTextWrapper {
    position: relative;
}

.slideTextLeftColumn,
.slideTextRightColumn {
    display: block;
    float: left;
    width: 100%;
    height: auto;
}

.slideTextRightColumn ul {
    padding-left: 0;
}

.slideColumnDivider {
    width: 30px;
    position: relative;
}

@media (min-width: 768px) {


    .slideTextWrapper {
        padding: 30px 10px 60px 10px;
    }

    .slideColumnDivider::before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 3px;
        height: calc(100% - 20px);
        transform: translateY(-50%);
        background-color: #FFFFFF;

        z-index: -1;
        content: '';

    }

/*
    .slideTextWrapper::before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 3px;
        height: calc(100% - 100px);
        transform: translateY(-50%);
        background-color: #ffffff;

        z-index: -1;
        content: '';

    }
*/

    .slideTextLeftColumn,
    .slideTextRightColumn {
        width: 50%;
       /* padding-top: 20px;*/
    }

    .slideTextLeftColumn {
        padding-right: 40px;
    }

    .slideTextRightColumn {
        padding-left: 40px;

    }


    /*.elomatic-section .slideTextLeftColumn p,
    .elomatic-section .slideTextRightColumn p ,*/
    .elomatic-section .slideTextRightColumn ol li,
    .elomatic-section .slideTextRightColumn ul li {

        font-size: 1.2rem;
    }

}

