.pageSection {
    padding-top: 80px;
    padding-bottom: 80px;
}


.sectionContent {
    position: relative;
    z-index: 5;
}


.sectionContent .wp-block-columns {
    margin-bottom: 0;
}


/*  Selectable padding */


.elomatic-section.noPadding {
    padding: 0 !important;
}


/*  */
.elomatic-section.noPadding .wp-block-columns:last-of-type {
    margin-bottom: 0;
}


.elomatic-section.lightPadding {
    padding-top: 40px;
    padding-bottom: 40px;
}

.elomatic-section.normalPadding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.elomatic-section.extraPadding {
    padding-top: 80px;
    padding-bottom: 80px;
}


@media (min-width: 992px ) {
    .elomatic-section.extraPadding {
        padding-top: 180px;
        padding-bottom: 180px;
    }

}


/*  Selectable height preferences */

.sectionHeightMin100VH {
    min-height: 100vh;
}


@media (orientation: portrait) {
    .entry-content .sectionHeightMin100VH.elomatic-section:first-of-type {
        min-height: auto;
        /*   aspect-ratio: 16/9;*/
    }
}


.natural-height {
}

.natural-wide {
    min-height: calc(100vw * (1 / 2.39));
}


.max1100 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


/* Replaces max1100 -class */
.widthNarrow {
    max-width: 995px;
    margin-left: auto;
    margin-right: auto;
}

.widthMedium {
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
}

.maxWidthFull {
}

.positionRelative {
    position: relative;
}

.coverBackground {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.coverBackground.sectionBG-position-bottom {
    background-position: center bottom;
}

.coverBackground.sectionBG-position-top {
    background-position: center top;
}

.bgImgFromRight {
    background-position-x: right;
}

.bgImgFromLeft {
    background-position-x: left;
}


.elevatedZ,
.elomatic-section.elevatedZ {
    z-index: 30;
}

/**/

/*  backend Editor: just for you */

.wp-block-acf-elomatic-section-wrapper.has-background {
    padding: 0;
}


/*  Taustavideo */


.sectionVideoWrapper {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.sectionVideo {

}

/* Taustaväri "huntu"  */

.sectionBackgroundColorVeil {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
}

.sectionHasBackgroundImage .sectionBackgroundColorVeil {
    opacity: 0.5;
    mix-blend-mode: multiply;
}

/*  Elomatic "grid" svg:llä tehdyt kuviot  */

.sectionGridWrapper {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow: hidden;
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.startShapesFromBottom .sectionGridWrapper {
    top: auto;
    bottom: 0;
    max-height: none;
}


.elomatic-section.startShapesFromBottom {
    overflow: hidden;
}

.sectionGridWrapperExtension {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: pink;

}

.sectionGridWrapper[data-fill="transparent"] + .sectionGridWrapperExtension {
    background-color: transparent;
}

.sectionGridWrapper[data-fill="white"] + .sectionGridWrapperExtension {
    background-color: #ffffff;
}


.gridBlockRow {
    position: relative;
    display: block;
    float: left;
    width: 100%;
    height: auto;
}

.gridBlockRow[data-sarakkeita="8"] {
}

.gridBlock {
    display: block;
    float: left;
    width: 25%;
    height: auto;
}

.gridBlockRow[data-sarakkeita="8"] .gridBlock {
    width: calc(100% / 8);
}

.gridBlock svg {
    display: block;
    float: left;
    width: 100%;
    height: auto;
}

/* Original Blue */
svg polygon[data-bg="OB"] {
    fill: var(--col-orig-blue);
    stroke: var(--col-orig-blue);
}

svg polygon[data-bg="OB8"] {
    fill: var(--col-orig-blue-80);
    stroke: var(--col-orig-blue-80);
}

svg polygon[data-bg="OB6"] {
    fill: var(--col-orig-blue-60);
    stroke: var(--col-orig-blue-60);
}

svg polygon[data-bg="OB4"] {
    fill: var(--col-orig-blue-40);
    stroke: var(--col-orig-blue-40);
}

svg polygon[data-bg="OB2"] {
    fill: var(--col-orig-blue-20);
    stroke: var(--col-orig-blue-20);
}

/* Navy Blue */
svg polygon[data-bg="NB"] {
    fill: var(--col-navy-blue);
    stroke: var(--col-navy-blue);
}

svg polygon[data-bg="NB8"] {
    fill: var(--col-navy-blue-80);
    stroke: var(--col-navy-blue-80);
}

svg polygon[data-bg="NB6"] {
    fill: var(--col-navy-blue-60);
    stroke: var(--col-navy-blue-60);
}

svg polygon[data-bg="NB4"] {
    fill: var(--col-navy-blue-40);
    stroke: var(--col-navy-blue-40);
}

svg polygon[data-bg="NB2"] {
    fill: var(--col-navy-blue-20);
    stroke: var(--col-navy-blue-20);
}

/* Menthe Blue*/
svg polygon[data-bg="MB"] {
    fill: var(--col-menthe-blue);
    stroke: var(--col-menthe-blue);
}

svg polygon[data-bg="MB8"] {
    fill: var(--col-menthe-blue-80);
    stroke: var(--col-menthe-blue-80);
}

svg polygon[data-bg="MB6"] {
    fill: var(--col-menthe-blue-60);
    stroke: var(--col-menthe-blue-60);
}

svg polygon[data-bg="MB4"] {
    fill: var(--col-menthe-blue-40);
    stroke: var(--col-menthe-blue-40);
}

svg polygon[data-bg="MB2"] {
    fill: var(--col-menthe-blue-20);
    stroke: var(--col-menthe-blue-20);
}

/**/


svg polygon[data-bg="ELB"] {
    fill: var(--col-extra-light-blue);
    stroke: var(--col-extra-light-blue);
}

/* Warm Glow */
svg polygon[data-bg="WG"] {
    fill: var(--col-warm-glow);
    stroke: var(--col-warm-glow);
}

svg polygon[data-bg="WG8"] {
    fill: var(--col-warm-glow-80);
    stroke: var(--col-warm-glow-80);
}

svg polygon[data-bg="WG6"] {
    fill: var(--col-warm-glow-60);
    stroke: var(--col-warm-glow-60);
}

svg polygon[data-bg="WG4"] {
    fill: var(--col-warm-glow-40);
    stroke: var(--col-warm-glow-40);
}

svg polygon[data-bg="WG2"] {
    fill: var(--col-warm-glow-20);
    stroke: var(--col-warm-glow-20);
}

/* Industry Yellow */
svg polygon[data-bg="IY"] {
    fill:var(--col-industry-yellow);
    stroke: var(--col-industry-yellow);
}

svg polygon[data-bg="IY8"] {
    fill:var(--col-industry-yellow-80);
    stroke:var(--col-industry-yellow-80);
}

svg polygon[data-bg="IY6"] {
    fill: var(--col-industry-yellow-60);
    stroke: var(--col-industry-yellow-60);

}

svg polygon[data-bg="IY4"] {
    fill:var(--col-industry-yellow-40);
    stroke: var(--col-industry-yellow-40);;
}

svg polygon[data-bg="IY2"] {
    fill: var(--col-industry-yellow-20);
    stroke: var(--col-industry-yellow-20);
}


/* Spring geen */
svg polygon[data-bg="SG"] {
    fill: var(--col-spring-green);
    stroke: var(--col-spring-green);
}

svg polygon[data-bg="SG8"] {
    fill: var(--col-spring-green-80);
    stroke: var(--col-spring-green-80);
}

svg polygon[data-bg="SG6"] {
    fill: var(--col-spring-green-60);
    stroke: var(--col-spring-green-60);
}

svg polygon[data-bg="SG4"] {
    fill: var(--col-spring-green-40);
    stroke: var(--col-spring-green-40);
}

svg polygon[data-bg="SG2"] {
    fill: var(--col-spring-green-20);
    stroke: var(--col-spring-green-20);
}

/* Lotus Red */
svg polygon[data-bg="LR"] {
    fill: var(--col-lotus-red);
    stroke: var(--col-lotus-red);
}

svg polygon[data-bg="LR8"] {
    fill: var(--col-lotus-red-80);
    stroke: var(--col-lotus-red-80);
}

svg polygon[data-bg="LR6"] {
    fill: var(--col-lotus-red-60);
    stroke: var(--col-lotus-red-60);
}

svg polygon[data-bg="LR4"] {
    fill: var(--col-lotus-red-40);
    stroke: var(--col-lotus-red-40);
}

svg polygon[data-bg="LR2"] {
    fill: var(--col-lotus-red-20);
    stroke: var(--col-lotus-red-20);
}

svg polygon[data-bg="CG"] {
    fill: var(--col-calm-grey);
    stroke: var(--col-calm-grey);
}


svg polygon[data-bg="W"] {
    fill: var(--col-valkoinen);
    stroke: var(--col-valkoinen);
}

svg polygon[data-bg="TRSP"] {
    fill: transparent;
    stroke: transparent;
}


svg polygon[data-bg="EGG"] {
    fill: var(--col-elron-grayish-green);
    stroke: var(--col-elron-grayish-green);
}

svg polygon[data-bg="ENB"] {
    fill: var(--col-elron-navy-blue);
    stroke: var(--col-elron-navy-blue);
}

svg polygon[data-bg="ELT"] {
    fill: var(--col-elron-light-taupe);
    stroke: var(--col-elron-light-taupe);
}

svg polygon[data-bg="ELB"] {
    fill: var(--col-elron-light-blue);
    stroke: var(--col-elron-light-blue);
}


svg polygon[data-bg="ELG"] {
    fill: var(--col-elron-light-green);
    stroke: var(--col-elron-light-green);
}


/* opacity */
/*
svg polygon[data-opacity="1"] {
    fill-opacity: 1;
    stroke-opacity: 1;
    stroke-width: 2.2;
}

svg polygon[data-opacity="0.5"] {
    fill-opacity: 0.5;
    stroke-opacity: 0.05;
    stroke-width: 1;
}

svg polygon[data-opacity="0"] {
    fill-opacity: 0;
    stroke-opacity: 0;
}
*/
/**/


svg polygon[data-opacity="1"] {
    fill-opacity: 1;
    stroke-opacity: 1;
    stroke-width: 2.2;
}

svg polygon[data-opacity="0.8"] {
    fill-opacity: 0.8;
    stroke-opacity: 0.265;
    stroke-width: 1;
}

svg polygon[data-opacity="0.6"] {
    fill-opacity: 0.6;
    stroke-opacity: 0.1;
    stroke-width: 1;
}

svg polygon[data-opacity="0.5"] {
    fill-opacity: 0.5;
    stroke-opacity: 0.05;
    stroke-width: 1;
}

svg polygon[data-opacity="0.4"] {
    fill-opacity: 0.4;
    stroke-opacity: 0.04;
    stroke-width: 1;
}

svg polygon[data-opacity="0.2"] {
    fill-opacity: 0.2;
    stroke-opacity: 0.02;
    stroke-width: 1;
}

svg polygon[data-opacity="0"] {
    fill-opacity: 0;
    stroke-opacity: 0;
}

/**/
@media (max-width: 992px) {

}

/* / Elomatic "grid" svg:llä tehdyt kuviot  */

/* Typography */

p.sectionIngres {
    font-weight: bold;
}

.is-style-elomatic-typo-large p.sectionIngres {
    font-size: 1.8em;
    margin-top: 1.8em;
}


@media (min-width: 550px) {
    .is-style-elomatic-typo-large p.sectionIngres {
        font-size: 2.0em;
    }

}

span.fontSize2Rem,
p.fontSize2Rem {
}

.elomatic-section ol li,
.elomatic-section ul li {
    padding-bottom: 0.8em;

}

.elomatic-section ol li {
    padding-bottom: 1.2em;
}


.elomatic-section ul,
.elomatic-section ol {
    padding-left: 10px;
}


.elomatic-section h1 {
    margin-bottom: 1em;
    font-weight: 700;

}

.elomatic-section h2 {
    font-weight: 700;
    margin-bottom: 1em;
}

.elomatic-section h3 {
    font-weight: 700;
    margin-top: 1em;
    margin-bottom: 0.4em;
}

.elomatic-section h4 {
    font-weight: 700;
}

body.home .elomatic-section h4 {
    font-size: calc(2.275rem + .3vw);
}


.entry-content .elomatic-section:first-of-type h1 {
    margin-top: 150px;
}

@media (orientation: portrait) {

}

@media (max-width: 600px) {

}


@media (max-width: 781px) {
    .frontPageSectionImageLinks .wp-block-media-text p a {
        font-size: 1.8em;
    }
}


@media (min-width: 768px) {
    .elomatic-section h1 {
        font-size: calc(3.0rem + 1.5vw);
        font-weight: 700;
        margin-bottom: 0.6em;
    }
}

@media (min-width: 992px) {

    .pageSection {

    }


    .elomatic-section {
    }

    .elomatic-section h1 {
        font-size: calc(3.4rem + 1.5vw);
        font-weight: 700;
        margin-bottom: 0.8em;
    }

    .elomatic-section.frontPageBU h1 {
        font-size: calc(2.15rem + 1.5vw);
        font-weight: 700;
        margin-bottom: 0.8em;
    }


    .elomatic-section h2 {
        font-size: calc(2.35rem + 1.5vw);
        font-weight: 700;
        margin-top: 1em;
        margin-bottom: 0.4em;
    }

    .elomatic-section h2:has(+ .sectionIngres) {
        margin-bottom: 0.8em;
    }

    .elomatic-section h3 {
        font-size: 4.15rem;
        font-weight: 700;
        margin-bottom: 0.4em;
    }


    body.single-top-engineer .elomatic-section h2,
    body.single-articles .elomatic-section h2 {
        font-size: calc(1rem + 1.5vw);
    }


    body.single-top-engineer .elomatic-section h3,
    body.single-articles .elomatic-section h3 {
        font-size: calc(0.7rem + 1.5vw);
    }

    body.single-top-engineer .elomatic-section h4,
    body.single-articles .elomatic-section h4 {
        font-size: calc(0.5rem + 1.5vw);
    }


    .elomatic-section p {
        font-size: 1.35rem;
        line-height: 1.4em;
        margin-bottom: 0.8em;
    }

    .elomatic-section p.sectionIngres {

        font-size: 1.70rem;
        font-weight: 500;

        margin-bottom: 1em;
    }


    span.fontSize2Rem,
    p.fontSize2Rem {
        font-size: 1.75rem;
        font-weight: bold;
    }

    p + p.fontSize2Rem {

    }


    .elomatic-section ul,
    .elomatic-section ol {
        font-size: 1.35rem;
        padding-left: 10px;
    }

    .elomatic-section ol {
        padding-left: 20px;
    }


    .elomatic-section h4 {
        font-size: 2.4rem;
        font-weight: bold;
        margin-top: 0.8em;
        margin-bottom: 0.6em;

    }


}


/* Front page:  just for you */
.elomatic-section.frontPageBU h3 {
    margin-bottom: 0.8em;
}

.frontPageBU {
}


.frontPageSectionImageLinks p.sectionIngres,
.elomatic-section .frontPageSectionImageLinks p.sectionIngres {
    margin-bottom: 0;
}


@media (min-width: 992px) {
    .elomatic-section.frontPageBU h3 {
        font-size: 3.15rem;
        margin-bottom: 1em;

    }
}

/*  Column Extra classesssss */

.infoColumn {
}

blockquote {
    border-left: 6px solid var(--col-navy-blue);
    padding-left: 15px;
}

blockquote.thin-white-border {
    border-left: 3px solid #fff;
}

/* Scroll Down */

.elomaticScrollDown {
    display: none;
    color: #FFFFFF;
}


.elomaticScrollDown.scroll-align-center {
    right: 50%;
}

.elomaticScrollDown.scroll-navy-blue,
.elomaticScrollDown.scroll-navy-blue::after {
    border: 2px solid var(--col-navy-blue);
    color: var(--col-navy-blue);
}


@media (min-width: 616px) {

    .elomaticScrollDown {
        display: block;
        position: absolute;
        z-index: 90;
        bottom: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        border: 2px solid #fff;
        line-height: 48px;
        text-align: center;
        cursor: pointer;
        border-radius: 50%;
    }

    .elomaticScrollDown::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #fff;
        z-index: 1;
        content: '';
        animation-delay: 3s;
        animation-direction: normal;
        animation-duration: 10s;
        animation-fill-mode: both;
        animation-iteration-count: infinite;
        animation-name: scrollDownAtt;
        animation-play-state: running;
        animation-timing-function: ease-in-out;
    }


}

@keyframes scrollDownAtt {

    0% {
        transform: scale(1);
        opacity: 0;
    }

    10% {
        transform: scale(1);
        opacity: 1;
    }

    20% {
        opacity: 0.65;
    }

    25% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }


    /*
        0% {
            box-shadow: 0 0 0 0 #fff inset;
        }

        15% {
            box-shadow: 0 0 0 4px #fff inset;
        }

        30% {
            box-shadow: 0 0 0 0 #fff inset;
        }

        31% {
            box-shadow: 0 0 0 0 #fff;
        }

        45% {
            box-shadow: 0 0 3px 5px #fff;
        }

        60% {
            box-shadow: 0 0 0 0 #fff;
        }

        100%{
            box-shadow: 0 0 0 0 #fff;
        }
        */
}

