/* Fra Sisyfos til Sarepta – ryddet og optimalisert CSS */

/* ========== BASISSTIL ========== */

body {
    background: url("images/bg02.jpg") repeat;
    background-color: #f4f4f4;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
}

/* ========== LAYOUT OG RESPONSIVITET ========== */

#wrapper {
    max-width: 960px;
    margin: 1em auto;
    padding: 2em 2em;
    background-color: #fdfdfd;
    border-radius: 1em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    #wrapper {
        padding: 1.2em 1em;
    }
}

@media (min-width: 1200px) {
    #wrapper {
        max-width: 800px;
        padding: 2em 3em;
    }
}

/* ========== HOVEDDEL ========== */

main {
    background: #f9f9f9 url('../images/paper-bg.jpg') repeat;
    padding: 30px;
    margin: 30px auto;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding-top: 0.5em;
}

/* ========== OVERSKRIFTER ========== */

h1 {
    color: #0a033f;
    font-weight: bold;
    text-align: center;
    font-size: 2.5em;
}

h2, h3 {
    color: #84001d;
    text-align: center;
}

h3 {
    font-weight: bold;
    color: #84001d;
}

h4 {
    font-size: 1.4em;
    font-weight: bold;
    text-align: left;
    margin-top: 1em;
}

h4.standard {
    font-size: 2em;
    margin-top: 1em;
    text-align: left;
}

h4.centered {
    font-size: 2em;
    text-align: center;
    color: #0a033f;
}

h4.right {
    font-size: 0.8em;
    text-align: right;
    color: #0a033f;
}

h4.highlight {
    font-size: 2em;
    color: darkred;
    font-weight: bold;
}

/* ========== PARAGRAF OG FIGUR ========== */

article p {
    line-height: 1.6;
    margin: 1em 0;
}

figure {
    margin: 2em 0;
    text-align: center;
}

figcaption {
    font-size: 0.9em;
    color: #444;
    margin-top: 0.5em;
}

/* ========== BILDER OG VIDEO ========== */

img,
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image,
.image-shadow,
.image-container,
.image-100% {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.logo1 {
    display: block;
    margin: 0 auto;
    width: 180px;
    height: auto;
}

/* ========== VIDEO WRAPPER ========== */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 2em auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ========== CAPTION - LIGHT 2 ========== */
.caption-light2 {
    font-size: 1.2rem;
    color: #111;
    background-color: #EDE9E8;
    padding: 0.8em 1em;
    border-radius: 0.4em;
    line-height: 1.4;
    margin-top: 0.5em;
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
}

/* skjul innhold og “lukk”-knapp når lukket */
.caption-light2 .full.hidden { display: none; }
.caption-light2 .toggle-close { display: none; }

/* når utvidet */
.caption-light2.expanded .full { display: block; }
.caption-light2.expanded .toggle-open { display: none; }
.caption-light2.expanded .toggle-close { display: inline-block; }


/* ========== CAPTION - LIGHT 3 ========== */
.caption-light3 {
    font-size: 0.8rem;
    color: #111;
    background-color: #EDE9E8;
    padding: 0.8em 1em;
    border-radius: 0.4em;
    line-height: 1.4;
    margin-top: 0.5em;
    position: relative;
    font-family: Verdana, sans-serif;
}

/* skjul innhold og “lukk”-knapp når lukket */
.caption-light3 .full.hidden { display: none; }
.caption-light3 .toggle-close { display: none; }

/* når utvidet */
.caption-light3.expanded .full { display: block; }
.caption-light3.expanded .toggle-open { display: none; }
.caption-light3.expanded .toggle-close { display: inline-block; }
```

/* ========== CAPTION - DARK ========== */

.caption-dark {
    font-size: 0.95rem;
    color: #fff;
    background-color: #111;
    padding: 0.8em 1em;
    border-radius: 0.4em;
    line-height: 1.4;
    margin-top: 0.5em;
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
}

.caption-dark .full.hidden {
    display: none;
}

.caption-dark.expanded .full {
    display: inline;
}

/* ========== CAPTION - DARK - NARROW ========== */

.caption-dark-narrow {
    font-size: 0.95rem;
    color: #fff;
    background-color: #111;
    padding: 0.8em 1em;
    border-radius: 0.4em;
    line-height: 1.4;
    margin: 0.5em auto;
    width: 60%;
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: left;
}

.caption-dark-narrow .full.hidden {
    display: none;
}

.caption-dark-narrow.expanded .full {
    display: inline;
}

.caption-dark a,
.caption-dark-narrow a {
    color: #fff;
    text-decoration: underline;
}

.caption-dark a:hover,
.caption-dark-narrow a:hover {
    color: #ddd;
}

.caption-dark-narrow .toggle-button {
    color: #fff;
    background: none;
    border: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.caption-dark-narrow .toggle-button:hover {
    color: #ddd;
}

/* ========== TOGGLE-KNAPP ========== */
/* Grunnstil for alle "Show more"-knapper. Overstyres i .caption-dark-narrow etc. */

.toggle-button {
    background: none;
    border: none;
    color: #0077cc;
    cursor: pointer;
    font-size: 0.9rem;
    padding-left: 0.4em;
    text-decoration: underline;
}

.toggle-button:hover {
    color: #005599;
}



/* === Video container og caption-stil === */

.video-wrapper {
    display: block;
    max-width: 800px;
    margin: 2em auto 0 auto;
    padding: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9-forhold */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sørger for at bildeteksten under video legger seg pent under */
.video-wrapper .caption-light {
    font-size: 0.95rem;
    color: #111;
    background-color: #ccc;
    padding: 0.8em 1em;
    border-radius: 0.4em;
    line-height: 1.4;
    margin-top: 0.5em;
    font-family: Georgia, 'Times New Roman', serif;
    position: static;
}

/* Mer synlig VIS MER / VIS MINDRE-knapp */
.toggle-button {
    background: none;
    border: none;
    color: #0077cc;
    cursor: pointer;
    font-size: 1.1rem;   /* litt større tekst */
    font-weight: bold;   /* fet skrift */
    padding-left: 0.4em;
    text-decoration: underline;
}

/* Skjul begge knappene som standard */
.toggle-open, .toggle-close {
    display: none;
}

/* Når boksen er lukket: vis kun "VIS MER" */
.caption-light2:not(.expanded) .toggle-open {
    display: inline-block;
}

/* Når boksen er åpen: vis kun "VIS MINDRE" */
.caption-light2.expanded .toggle-close {
    display: inline-block;
}

 /* Felles */
.image {
    display: block;
    margin: 0 auto;
}
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Landskap – 150 x 120 cm (5:4) */
.image.landscape {
    max-width: 100%;
}

/* Portrett – 120 x 150 cm (4:5) */
.image.portrait {
    max-width: 80%;
}

/* Digitalt format – 10 000 x 7 000 px (~7:5) */
.image.digital {
    max-width: 90%;
}

/* På mobil: alltid


/* ========== HEADER (Ryddet, responsiv og trygg) ========== */
.site-header { background:#000; width:100%; }
.site-header .header-inner{
  max-width:1200px; width:100%; margin:0 auto;
  padding:10px 16px;
  display:flex; align-items:center; justify-content:center;
  gap:12px; flex-wrap:wrap; box-sizing:border-box;
}
/* Logo og menybilder skalerer kontrollert */
.site-header .logo img,
.site-header .menu-icon img { display:block; height:auto; max-width:100%; }
/* Desktop */
@media (min-width:901px){
  .site-header .logo img{ height:60px; }
  .site-header .menu-icon img{ height:42px; }
}
/* Tablet */
@media (max-width:900px){
  .site-header .logo img{ height:54px; }
  .site-header .menu-icon img{ height:38px; }
}
/* Mobil */
@media (max-width:600px){
  .site-header .logo img{ height:46px; }
  .site-header .menu-icon img{ height:34px; }
}
/* Ekstra smal mobil – legg meny under logo */
@media (max-width:420px){
  .site-header .menu-icon{
    width:100%; display:flex; justify-content:center; margin-top:6px;
  }
}
/* Nøytraliser arvet sentrering for sikkerhets skyld */
.site-header .logo, .site-header .menu-icon { text-align:left; }
/* Fjern toppmarg */
body{ margin:0; }

.social-icons{ text-align:center; }
.social-icons a{ display:inline-block !important; margin:0 6px; }
.social-icons img{ display:block; }

/* KJERNELOGIKK FOR VIS MER / VIS MINDRE – GJELDER ALLE .toggle-caption */
.toggle-caption .full { display: none; }
.toggle-caption .toggle-close { display: none; }

.toggle-caption.expanded .full { display: block; }
.toggle-caption.expanded .toggle-open { display: none; }
.toggle-caption.expanded .toggle-close { display: inline-block; }

/* Kjerne – gjelder alle toggle-bokser */
.toggle-caption .full { display: none !important; }
.toggle-caption .toggle-open { display: inline-block !important; }
.toggle-caption .toggle-close { display: none !important; }

.toggle-caption.expanded .full { display: block !important; }
.toggle-caption.expanded .toggle-open { display: none !important; }
.toggle-caption.expanded .toggle-close { display: inline-block !important; }

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #222;
}

