/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

body:after {
    content: none;
}

@media screen and (min-width: 700px) {
    .ingress {
        max-width: 90%;
    }
    
    header label.authorsLabel:not(:first-of-type) {
        margin-left: 36px;
    }
}
@media screen and (max-width: 700px) {
    header label.authorsLabel {
        display: block;
    }    
}

.mainNav {
    height: 90px;
    padding-top: 55px;
    padding-bottom: 55px;
}

    .mainNav a {
        border: 2px solid #000;
    }


/* Label */
main > .umb-grid {
    padding-top: 64px;
    margin-top: -32px;
}

.photostory main > .umb-grid {
    padding-top: 128px;
    margin-top: 0;
}

body.photostory #Innhold,
body.tidslinje #Innhold,
.umb-grid.hasLabel,
.umb-grid .hasLabel {
    position: relative;
}
    /*
.umb-grid .hasLabel [data-gallery_id] {
    margin-top: 0;
}*/

    body.photostory #Innhold a.label,
    body.tidslinje #Innhold a.label,
    .umb-grid a.label {
        display: inline-flex;
        align-items: center;
        width: auto;
        padding: 15px 20px;
        background: #d6cece;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        text-decoration: none;
        color: #000;
    }

        .umb-grid a.label span {
            max-width: min(50vh, 48vw);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


    body.photostory #Innhold a.label,
    body.tidslinje #Innhold a.label,
    .umb-grid .column a.label {
        position: absolute;
        top: -100px;
        right: 3vw;
        z-index: 1;
        -webkit-transform-origin: 100% 100%;
        -ms-transform-origin: 100% 100%;
        transform-origin: 100% 100%;
        -webkit-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }

        body.photostory #Innhold a.label svg,
        body.tidslinje #Innhold a.label svg,
        .umb-grid a.label svg {
            height: 24px;
            width: 24px;
            transform: rotate(-90deg);
            margin: 0 16px 0 4px;
        }


    .umb-grid.hasLabel a.label {
        margin-top: 16px;
    }

    .umb-grid.hasLabel > .grid-section {
        position: relative;
        border-top: solid 4px #000;
        margin-top: 64px;
    }

        .umb-grid.hasLabel > .grid-section > div:first-of-type {
            position: relative;
            padding-top: 32px;
        }

.column.hasLabel {
    margin-top: 16px;
}

.col-md-12.hasLabel {
    max-width: none;
}

    .col-md-12.hasLabel > div {
        max-width: 1200px;
        margin: 0 auto;
    }


.hasLabel > div figure.video:not(.hero) + .label {
    top: -42px;
    right: -2vw;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

@media screen and (min-width: 1000px) {
    .hasLabel > div figure.video:not(.hero) + .label {
        right: calc((100vw - 800px)/2);
        -webkit-transform: rotate(0deg) translateX(10%);
        -ms-transform: rotate(0deg) translateX(10%);
        transform: rotate(0deg) translateX(10%);
    }

    .umb-grid.hasLabel a.label {
        margin-top: 32px;
    }

    .row .column:not(.col-md-12):first-of-type a.label {
        right: 100%;
        -webkit-transform: rotate(-90deg) translateY(100%);
        -ms-transform: rotate(-90deg) translateY(100%);
        transform: rotate(-90deg) translateY(100%);
    }

    .row .column:not(.col-md-12):last-of-type a.label {
        right: 0;
    }


    .umb-grid.hasLabel > .grid-section > div:first-of-type {
        padding-top: 5vw;
    }

        .umb-grid.hasLabel > .grid-section > div:first-of-type::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 150px;
            border-left: solid 4px #000;
        }
}

@media screen and (min-width: 1000px) {
    .umb-grid .column.col-md-12 .photo-inline + a.label {
        right: unset;
        left: calc((100% - 1200px)/2 + 29px);
    }
}

body.photostory #Innhold > .photo-stack {
    max-width: calc(100% - 8vw);
    margin: 50px auto 0 auto;
    padding: 78px 0 0 0;
}

body.photostory #Innhold a.label,
body.tidslinje #Innhold a.label {
    top: 50px;
    left: 0;
    right: unset;
    z-index: 10;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: rotate( -90deg ) translateX(-100%);
    -ms-transform: rotate( -90deg ) translateX(-100%);
    transform: rotate( -90deg ) translateX(-100%);
}

body.photostory #Innhold figure.photo-stack .portrait img {
    max-height: unset;
}

@media screen and (min-width: 1300px) {
    body.photostory #Innhold > .photo-stack {
        max-width: 1200px;
    }

    body.photostory #Innhold a.label,
    body.tidslinje #Innhold a.label {
        left: calc((100% - 1200px)/2 + 15px);
    }

    .photo-big + a.label {
        right: calc((100vw - 1200px)/2 + 2vw) !important;
    }
}


.hasLabel iframe {
    height: 700px;
    align-self: flex-start;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    max-width: unset!important;
    overflow: hidden;
    pointer-events: none;
}



/* Transport */
@media screen and (min-width: 900px) {
    .trsp_artikkel .label-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }

    .trsp_artikkel .sidestories.transport {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        padding-top: 0;
    }
}
.trsp_artikkel .transport .sidestory {
    flex-direction: column;
    border: none;
}

    .trsp_artikkel .transport .sidestory .title {
        padding: 16px 0 0 0;
    }
        body:not(.episode).trsp_artikkel .transport .sidestory .title h3 {
            margin: 0 0 8px 0;
            padding: 0;
            font-size: 17px;
            line-height: 1em;
        }

        .trsp_artikkel .transport .sidestory .title span {
            margin-bottom: 12px;
            font-size: 14px;
        }

    .trsp_artikkel .transport .sidestory .media {
        margin: 0;
    }
    .trsp_artikkel .transport .sidestory img {
        padding: 0;
        object-fit: contain;
    }
    
    
    

    
/* Tidslinje */
.time_line {
    overflow: clip;
    padding-bottom: 64px;
}

.time_item {
    position: relative;  
    z-index: 1;
    width: 100%;
}

    .time_item:not(:first-of-type) {
        margin-top: 64px;
    }

    .time_item:first-of-type {
        margin-top: 50px;
        padding-top: 78px;
    }

.time_line .time_item > figure {
    display: block;
    margin-bottom: 20px;
    padding: 0;
}

    .time_line .time_item > figure > picture {
        max-height: unset;
    }

        .time_line .time_item > figure > picture > img {
            width: 100%;
        }

.time_item.full {
    display: inline-flex;
    flex-direction: column;
}
.time_item.full > *[class^="photo"] {
    order: 1;
}
.time_item.full > h2 {
    order: 2;
}
.time_item.full > p {
    order: 3;
}


.tidslinje h2 {
    padding: 0;
    margin: 0;
}

    .tidslinje h2 span {
        text-transform: initial;
    }



@media screen and (min-width: 800px) {
    .time_line {
        max-width: 1200px;
        margin: 0 auto;
    }

    .time_item {
        width: 45%;
        margin-top: 0;
    }

        .time_item:not(:first-of-type) {
            margin-top: -10%;
        }

        .time_item:nth-child(even) {
            margin-left: auto;
        }

        .time_item:nth-child(odd) {
            margin-right: auto;
        }

    .time_line .full {
        margin-top: 128px;
        width: 100%;
        background: #fff;
    }

        .time_line .full + .time_item {
            margin-top: 128px;
        }

    .time_item:first-of-type {
        margin-top: 32px !important;
    }
    
    
    .time_color {
        position: sticky;
        top: -300px; 
        width: 100%; 
        height: 0; 
    }

    .time_color .line { 
    position: absolute; 
        top: 0; 
        left: calc(50% - 1px); 
        height: 50vh; 
        width: 2px; 
        margin-top: 300px; 
    } 

}



body.tidslinje .photo-inline,
body.tidslinje .nve_medialibrary_element {
    margin-bottom: 16px;
}


body.tidslinje .photo-inline {
    margin-top: 16px;
}

body.tidslinje .nve_medialibrary_element:not(:first-of-type) {
    margin-top: 64px;
}
