
:root {
    --banner-top-background: #CF112D;
    --banner-top-color: white;
    --body-max-width: 1360px;
    --body-mid-width: 960px;
    --body-min-layout: 640px;
    --standard-margin: 10px;
    --standard-padding: 15px;
    
    --utfall-positiv: calc((var(--body-max-width) - var(--body-mid-width)) / 2);
    --utfall-negativ: calc(var(--utfall-positiv) * -1)
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(res/font/Barlow-Regular.otf) format('opentype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(res/font/Barlow-Italic.otf) format('opentype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url(res/font/subset-Barlow-Bold.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, header, main, article, footer, ul, ol, menu, img, figure {
    margin: 0;
}

button {
    border: none;
    background: transparent;
}

html, body {
    font-family: Barlow, sans-serif;
    font-size: 1.15rem;
    line-height: 1.3;
    overflow-x: hidden;
    Xheight: 100%;
    width: 100%;
    z-index: 50;
    position: relative;
}

h1, figcaption.h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.17rem; }
h4 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
    margin-left: var(--standard-margin);
    margin-top: 0.5rem; 
    margin-bottom: 0.5rem;
}
main p, article p, div.p {
    margin: 1rem 0;
    margin-top: 0;
    line-height: 1.2;
    Xborder: 1px solid green;
}

body > article, body > main, body > header, body > footer, #bane {
    max-width:var(--body-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    Xoverflow-y: scroll;
}

#bane {    
    padding-left: 26px;
    padding-top: 10px;
    padding-bottom: 10px;
    Xborder: 1px solid brown;
}
@media screen and (max-width:640px) {
    #bane { padding-left: 10px }
}

MOVEDimg { max-width: 100%; height: auto; }
a { text-decoration:none; color:black;}
a:hover { text-decoration: underline; }

/* 202511+ */
article a:not([data-load="ingress"]) { color: #3e96b4; }
article aside a:not([data-load="ingress"]) { color: black; }

article a[href^="http://"]:after,
article a[href^="https://"]:after {
  content: url('res/lenke-ekstern-sort.svg');
  position: relative;
  bottom: -2px;
  left: 2px;
}


figure, img {
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: auto;
}

.sentrer {
    text-align: center;
}

main p, article p {
    margin-left: var(--standard-margin);
    margin-right: var(--standard-margin);
}

figure figcaption {
    margin-left: var(--standard-margin);
    margin-right: var(--standard-margin);
    display: flow-root;
    font-size: smaller;
}

figure {
    margin-bottom: 10px;
}

figure figcaption span.byline {
    float: right;
}

ul {
    Xmargin-top: -0.5rem;
    Xmargin-bottom: 1.5rem;
    Xmargin-left: var(--standard-margin);
    Xmargin-right: var(--standard-margin);
}

li {
    Xmargin: 0.5rem 0;
}

html.article body > article {
    max-width: 960px;
}

html.main div.ingress figcaption {
    display: none;
}

html.main div.ingress {
    display: flow-root;
}

.karusell {
    margin-bottom: 1rem;
    position: relative;
}


#topp {
   background-color: var(--banner-top-background);
   color: white; 
   text-align: right;
   padding: 10px;
   margin: 0;
   font-size: 18px;
}

#topp a { color:white; }
#topp span { white-space: nowrap; }
#topp img { margin-left:10px;position:relative;bottom:-3px;left:-5px; }

#hovednavigasjon { 
    display: flow-root;
    overflow-x: hidden;
    position: relative;
}

main div.super {
    font-size: smaller;
    border-top: 1px solid #ccc;
    padding-left: var(--standard-padding);
}

a#logo {
    Xmin-width:285px;
    Xmax-width:285px;
    min-width: 380px;
    max-width: 380px;
    float: left;
}

a#logo img {
    Xmin-width:285px;
    Xmax-width:285px;
    min-width: 300px;
    max-width: 300px;
    width: 300px;
    float: left;
}

#sidemenyknapp { display: none; }

#meny li a[href="./"] { text-decoration: underline; }

#meny {
    list-style:none;
    margin-bottom: 0;
    padding-bottom: 2px;
    position: absolute;
    bottom: 0;
    right: 0;
}

#meny li {
    display: inline-block; 
    margin: 6px 20px;
    font-weight: bold;
    font-size: 1.05rem;
}


@media only screen and (max-width:960px) {

    #hovednavigasjon {
      position: relative;
      Xdisplay: flow-root;
      overflow: visible;
      Xbackground: #fff;
      z-index: 50;
    }
    
    #meny {
      position: absolute;
      top: 0;
      right: 0;
      width: 250px;
      background: #eee;
      transform: translateX(0); /* Open by default */
      transition: transform 0.3s ease;
      Xlist-style: none;
      margin: 0;
      z-index: 200;
      Xbox-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
      border: 1px solid #555;
      height: 180px;
      padding-top: 70px;
      border-radius: 0 0 0 15px;
    }
    
    #meny.lukket {
      transform: translateX(100%);
    }
    
    #sidemenyknapp {
        display: inline;
        position: absolute;
        right: 30px;
        top: 30px;
        z-index: 300;
    }

}

@media only screen and (min-width:640px) {
    .spalter3 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, auto));
        row-gap: 15px;
        column-gap: 25px;
        padding:0;
    }
    
    article {
        margin: 0 auto;
    }
}

footer {
    color: white;
    background-color: black;
    font-family: Helvetica, Arial, sans-serif;
    font-size: smaller;
}

footer a { color: white; }

footer > * {
    display: flow-root;
    padding: var(--standard-padding);
}

footer a#til-topps {
    border: 1px solid #555;
    border-radius: 40px;
    height: 30px;
    padding: 10px 40px;
}

footer a#til-topps:hover {
    border: 1px solid white;
}

footer ul {
    margin-top: 40px;
    padding-left: 0;
    list-style-position: inside;
}

footer ul li {
    margin: 1rem;
    margin-left: 0;
}

footer ul li::marker {
    content: "⟫ ";
    content: "→ ";
}

footer > * {
    padding: var(--standard-padding);
    margin: var(--standard-margin);
}

@media screen and (min-width: 960px) {

    footer {
        display: flex;
        gap: var(--standard-margin); 
    }
    
    footer > * {
        flex: 1;
        Xborder: 2px solid yellow;
        vertical-align: middle;
    }
    
    footer div:nth-child(1) { order: 2; }
    footer div:nth-child(2) { order: 3; }
    footer div:nth-child(3) { order: 1; }
}

@media screen and (max-width: 960px) {
    html.article footer > * {
        text-align: center;
        margin: 0;
    }
    footer {
        padding-top: 1rem;
    }
}

@media print and (min-width: 19cm) {

    html, body {
        font-size: 0.95rem;
    }

    * {  color: black; background: white; background-color: white; }
    body { margin-left: 1.5cm; margin-right: 0.5cm; width: auto; }
    
    #topp, #sidemenyknapp, #meny { display: none; }
    #bane { margin-left: 0; padding-left: 0; }
    
    footer div:nth-child(1) { display: none; }
    footer, footer a, footer time, footer b, footer div, footer p {
        color:black;
        background: white;
        background-color: white;
    }
    footer { border-top: 1px solid black; }
    footer > * {
        margin: 0;
        padding: 0;
    }
    
    .ikkeutskrift {
        display: none;
    }
}


/* FIKS: utfall bare med store bredder
 problem: max-width 100% tillater ikke øning i størrelse
 max-width: (større px) øker bredden på elementet swiper jobber i!
 er løsningen å sette eksplisitt bredde på swiper når det er utfall på rot-elementet?
*/

@media screen and (min-width:1360px) {

    html.article .utfall-h:not(.utfall-v) {
        max-width: 1160px;
        Xmargin-right: calc(((var(--body-max-width) - var(--body-mid-width)) / 2) * -1);
        margin-right: var(--utfall-negativ);
        Xborder-right: 10px solid yellow;
    }
    
    html.article .utfall-v:not(.utfall-h) {
        max-width: 1160px;
        Xmargin-left: calc(((var(--body-max-width) - var(--body-mid-width)) / 2) * -1);
        margin-left: var(--utfall-negaiv);
        Xborder-left: 10px solid yellow;
    }
    html.article .utfall-v.utfall-h {
        max-width: 1360px;
        Xmargin-left: calc(((var(--body-max-width) - var(--body-mid-width)) / 2) * -1);
        Xmargin-right: calc(((var(--body-max-width) - var(--body-mid-width)) / 2) * -1);
        margin-left: var(--utfall-negativ);
        margin-right: var(--utfall-negativ);
    }
}

.fullbredde, .supersize {}
.bredde-1-3, .bredde-2-3, .bredde-100 {}
.flyt-h, .flyt-v {}

@media only screen and (min-width:640px) {

    html.article .flyt-v {
        float: left;
        margin-right: calc(var(--standard-margin)*1.5);
    }
    
    html.article .flyt-h {
        float: right;
        margin-left: calc(var(--standard-margin)*1.5);
    }
    
    html.article .bredde50 {
        width: 50%
    }
    
    html.article .bredde1-3 {
        width: 33%;   
    }
    
    html.article .bredde2-3 {
        width: 66%;
    }

}

a:not(:visited) .linksom {
    color: blue;
}

.nobr {
    white-space:nowrap;
}

.museumsvenner-flyt-h {
    float: right;
    margin-left: var(--standard-margin);
}

body > footer {
    margin-top: calc(var(--standard-margin)*2);
}

html.article aside {
    font-size: smaller;
    padding: 20px;
    border: 1px solid #555;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #b9dbe5;
}

html.article figure figcaption span.byline, html.article figure figcaption span.byline a {
    color: #aaa;
}

article, main {
    position: relative;
}

.uferdig {
    padding: 10px 20px;
    border: 2px solid darkred;
    border: 0.5rem double #D23;
    border-radius: 10px;
    background-color: cornsilk;
    background-color: rgba(255,255,255,0.5);
    width: 250px;
    transform: rotate(12deg);
    position: absolute;
    right: 250px;
    right: -20px;
    font-weight: bold;
    Xopacity: 0.8;
    color: darkgreen;
    color: darkred;
    text-align: center;
    font-size: 1.6rem;
    font-family: Helvetica, Arial, sans-serif;
    color: darkgreen;
    border-color: darkgreen;

}

.uferdig::after {
    content: "UNDER ARBEID";
}

footer {
    clear: both;
}
  
