/*
2026 © Monoform
http://www.monoform.no
*/

/* RESET
----------------------------------------------- */

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent; /* For some Androids */
}

* {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

img, picture, video, canvas {
  width: 100%;
  height: auto;
  display: block;

  vertical-align: middle;
  font-style: italic;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

p {
  text-wrap: pretty;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* FOCUS STYLING
----------------------------------------------- */

*:focus {
  outline-offset: 0;  /* Kan settes til -4px For å gjøre focusrammen mindre rundt objektet */
}

input:focus {
  outline: 0;
}

/* DEFAULT STYLING
----------------------------------------------- */

:root {
  /* Turn on use of light-dark. Example: color: light-dark(#333b3c, #efefec);
  color-scheme: light dark;  */
  
  /* Fonts */
  --ff-primary: "Open Sans", sans-serif;
  --fs-primary: clamp(1.7rem, 0.411vw + 1.466rem, 2rem);
  --fw-primary: 400;
  --standard-lineheight: 1.5;

  --fs-h1: clamp(3.5rem, 1.233vw + 2.797rem, 4.4rem);
  --fs-h2: clamp(2.8rem, 0.548vw + 2.488rem, 3.2rem);
  --fs-h3: clamp(2rem, 0.411vw + 1.766rem, 2.3rem);
  --fs-h4: clamp(1.7rem, 0.411vw + 1.466rem, 2rem);
  --fs-h5: clamp(1.6rem, 0.274vw + 1.444rem, 1.8rem);
  --fs-h6: clamp(1.4rem, 0.274vw + 1.244rem, 1.6rem);

  /* Colors */
  --color-primary: #0064a2;
  --color-text: #404040;
  --color-light: #f0f0f0;

  /* Spacing, gap */
  --global-spacing: 60px;
  --global-gap: 36px;

  /* Layout */
  --menu-height: 160px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  :root {
    --global-spacing: 40px;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  :root {
    --menu-height: 120px;
  }
}

html {
  height: 100%;
  font-size: 62.5%;
  scroll-padding-top: var(--menu-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--menu-height);
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--ff-primary);
  font-size: var(--fs-primary);
  font-weight: var(--fw-primary);
  line-height: var(--standard-lineheight);
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

/* MARGER, PADDING OG STØRRELSER */

.wrapper-large {
  width: min(1500px, 88%);
  margin: 0 auto;
}

.wrapper-normal {
  width: min(1000px, 88%);
  margin: 0 auto;
}

.global-padding {
  padding: var(--global-spacing) 0;
}

.bg-color {
  background-color: var(--color-light);
}

.bg-none + .bg-none,
.bg-color + .bg-color /* Slås av hvis det brukes forskjellige fargede bakgrunner */ {
  margin-top: calc(var(--global-spacing) * -1);
}

/* TEXT STYLING
Bruk https://geary.co/clamp-calculator/
Min viewport 570px, Max viewport 1300px */

h1 {font-size: var(--fs-h1);}
h2 {font-size: var(--fs-h2);}
h3 {font-size: var(--fs-h3);}
h4 {font-size: var(--fs-h4);}
h5 {font-size: var(--fs-h5);}
h6 {font-size: var(--fs-h6);}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.2;
}

h3, h4, h5, h6 {
  line-height: 1.35;
}

.titlestyle {
  padding-top: var(--global-spacing);
}

.titlestyle h1,
.titlestyle h2 {
  padding-bottom: 0.8em;
}

.titlestyle h3,
.titlestyle h4,
.titlestyle h5,
.titlestyle h6 {
  padding-bottom: 1em;
}

.textstyle h3,
.textstyle h2,
.textstyle h1 {
  padding-bottom: 0.3em;
}

/* Styling av titler i moduloversikten */
h3 span {
  color: red;
  opacity: 0.5;
  font-weight: 500;
}

/* Order: a, a:visited, a:hover, a:active */

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-text);
}

a[href^="tel"] {
  color: inherit; /* Inherit text color of parent element. */
  text-decoration: none; /* Remove underline. */
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

.bildetekst {
  font-size: 1.8rem;
  font-style: italic;
  margin-top: 0.5em;
}

.breadcrumbs {
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 2em;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--color-primary);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .breadcrumbs {
    font-size: 1.4rem;
    margin-bottom: 1em;
  }
}

.vis-flere {
  text-align: right;
  padding-top: 40px;
}

.vis-flere a {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.vis-flere a:hover {
  color: var(--color-text);
}

.vis-flere a i {
  margin-left: 10px;
}

@media only screen and (max-width: 1279px) { /* Tablet Horizontal */
  .vis-flere a {
    font-size: 2.2rem;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .vis-flere a {
    font-size: 2.0rem;
  }
}

.textstyle ol, .textstyle ul {
  margin-left: 0;
  padding-left: 0;
}

.textstyle ul {
  list-style: disc;
  padding-left: 1.15em;
}

/*
.textstyle li::marker {
  color: red;
}
*/

.textstyle ol {
  list-style: decimal;
  padding-left: 1.5em;
}

/* Listevarianter fra Rich Text Editor (CKEditor).
   Editoren lagrer valgt variant som inline-stil, f.eks. <ol style="list-style-type:upper-roman;">.
   Inline-stil vinner alltid over reglene over, så selve varianten trenger ingen CSS.
   Det som må justeres er plassen til venstre: brede markører som 01., 10. og VIII.
   får ikke plass i 1.4em og stikker ut av tekstkolonnen. */

/* To sifre: 01., 02. … og vanlige tallister med 10 punkter eller flere */
.textstyle ol:has(> :nth-child(10)),
.textstyle ol[style*="decimal-leading-zero"] {
  padding-left: 2.1em;
}

/* Romertall (små og store): viii. og VIII. er de bredeste.
   Står sist, så den vinner over regelen over når en romertalliste har 10+ punkter. */
.textstyle ol[style*="roman"] {
  padding-left: 2.3em;
}

.textstyle p+p, .textstyle ul+p, .textstyle ol+p, .textstyle ol+ul, .textstyle ul+ol, .textstyle p+h3, .textstyle h3+h3, .textstyle ul+h3, .textstyle ol+h3,
.textstyle p+h2, .textstyle h2+h2, .textstyle ul+h2, .textstyle ol+h2, .textstyle p+h1, .textstyle h1+h1, .textstyle ul+h1, .textstyle ol+h1 {
  margin-top: 1.5em;
}

/* JUMP TO MAIN CONTENT */

a.jump-to-main {
  position: absolute;
  left: -2000px;
  top: 10px;
  font-size: 16px;
  background-color: var(--color-text);
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  z-index: 99990;
}

a.jump-to-main:focus-visible {
  left: 10px;
}

/* RESET FORM */

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #9f9f9f;
}

/* BUTTON */

.button {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 0.25em;
  font-size: clamp(1.6rem, 0.274vw + 1.444rem, 1.8rem);
  font-weight: 500;
  text-decoration: none;
  padding: 0.8em 1.8em;
  margin: 0;
  cursor: pointer;
  transition: background-color 200ms ease-in;
}

.button-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  background-color: var(--color-text);
  color: #fff;
}

.buttonwrapper {
  display: flex;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}

/* GRID */

.gridcontent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min-col-size), 100%), 1fr));
  gap: var(--global-gap);
}

/* wrapper-normal */
.grid-4 {
  --grid-min-col-size: 220px;
}

.grid-3 {
  --grid-min-col-size: 300px;
}

.grid-2 {
  --grid-min-col-size: 470px;
}

/* wrapper-large */
.wrapper-large .grid-4 {
  --grid-min-col-size: 340px;

}

.wrapper-large .grid-3 {
  --grid-min-col-size: 350px;
}

.wrapper-large .grid-2 {
  --grid-min-col-size: 730px;
}

.colorbox {
  height: 200px;
  background-color: var(--color-primary);
}

/* TOPPSØK */

.toppsok ::placeholder {
  color: #fff;
}

.toppsok {
  background-color: var(--color-text);
  padding: 40px 0;
}

.sok {
  width: 100%;
  padding: 50px 0;
}

.sokefelt {
  position: relative;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 10px;
}

.sokefelt i {
  position: absolute;
  top: 2px;
  left: 0;
  font-size: 2.6rem;
}

.sokefelt input {
  background-color: transparent;
  font-size: 2.0rem;
  color: #fff;
  width: 100%;
  padding-left: 35px;
}

.sokefelt input:focus {
  outline: none;
}

/* SØKERESULTATER */

.resultat-container {
  border-top: 1px solid var(--color-text);
  margin-top: 30px;
}
.soke-item {
  display: flex;
  gap: 20px;
  text-decoration: none;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-text);
  align-items: center;
}

.soke-item > div {
  margin-right: auto;
}

.soke-item i {
  font-size: 2.8rem;
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .soke-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* MAIN MENU */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition:
  transform 300ms ease-in-out,
  box-shadow 300ms ease-in-out;
}

.mainmenu {
  display: flex;
  align-items: center;
  background-color: #fff;
}

/* Clear styling on buttons in main menu */
.mainmenu button {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

/* Klasser for å legge på skygge og skjule headeren */
header.shadow {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Legg til en lett skygge */
}

header.hidden {
  transform: translateY(-100%); /* Skjul headeren */
}

.menu-flex {
  height: var(--menu-height);
  display: flex;
  align-items: center;
  gap: 20px;
}

.mainlogo {
  margin-right: auto;
}

.mainlogo img {
  max-width: 250px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li a {
  font-size: 2.0rem;
  text-decoration: none;
  color: var(--color-text);
}

nav ul li a:hover,
.mainmenu button:hover {
  color: var(--color-primary);
}

.menu-icon {
  position: relative;
  z-index: 9999;
  cursor: pointer;
  padding: 20px 0 15px 20px;
  display: block;
}

.menu-icon .menu-icon-bar,
.menu-icon .menu-icon-bar::before,
.menu-icon .menu-icon-bar::after {
  width: 28px;
  height: 3px;
  background-color: var(--color-text);
  display: block;
  transition: background-color 0.3s ease-out, top 0.3s ease-out, transform 0.3s ease-out;
}

.menu-icon .menu-icon-bar {
  display: block;
  position: relative;
}

.menu-icon .menu-icon-bar::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  transition: background-color 0.3s, top 0.3s, transform 0.3s;
}

.menu-icon .menu-icon-bar::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  transition: background-color 0.3s, top 0.3s, transform 0.3s;
}

.menu-visible .menu-icon .menu-icon-bar {
  background-color: transparent;
}

.menu-visible .menu-icon .menu-icon-bar:before {
  top: 0;
  transform: rotate(45deg);
  background-color: #fff;
}

.menu-visible .menu-icon .menu-icon-bar:after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #fff;
}

.menytrigger {
  display: none;
}

.soketrigger .sokeikon {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .menytrigger {
    display: block;
    order: 4;
  }

  button.soketrigger {
    margin-top: 6px;
  }

  nav {
    position: fixed;
    width: 100%;
    height: 100%;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-text);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    padding: 200px 6%;
  }

  .menu-visible nav {
    visibility: visible;
    opacity: 1;
  }

  .menu-visible {
    overflow: hidden;
  }

  .menu-visible main {
    pointer-events: none;
  }

  .menu-visible header.hidden {
    transform: none;
  }

  nav ul li a {
    color: #fff;
  }

  nav ul li a:hover {
    color: #fff;
    opacity: 0.6;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}

/* TOPPBANNER */

.toppbanner {
  position: relative;
  width: 100%;
  height: 550px;
  background-color: #fff;
}

.toppbanner-media {
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  z-index: 0;
}

.fillparent {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.toppbanner-overlay {
  background-color: #000;
  pointer-events: none;
  z-index: 1;
}

.toppbanner-payoff-flex {
  display: flex;
  align-items: center;
  padding: var(--global-spacing) 0;
  pointer-events: none;
  z-index: 2;
}

.toppbanner h1 {
  color: #fff;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .toppbanner {
    height: 420px;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .toppbanner {
    height: 240px;
  }
}

/* FLUID CONTENT
----------------------------------------------- */

/* HR STYLING */

hr {
  border: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-text);
}

/* Innhold-ingress */

.innhold-ingress {
  font-size: clamp(1.9rem, 0.411vw + 1.666rem, 2.2rem);
  font-weight: 600;
}

.innhold-ingress.bg-none + .innhold-brodtekst.bg-none {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: 1.5em;
}

/* Innhold-tittel */

.innhold-tittel.bg-none + .bg-none {
  margin-top: calc(var(--global-spacing) * -2);
}

.innhold-tittel.bg-color + .bg-color,
.innhold-tittel.bg-none + .bg-color {
  margin-top: calc(var(--global-spacing) * -1);
}

.innhold-tittel.bg-color + .bg-color {
  padding-top: calc(var(--global-spacing) * -2);
}

.innhold-tittel + .innhold-parallax {
  margin-top: calc(var(--global-spacing) * -1);
}

/* Innhold-sitat */

.sitat-bilde {
  width: 200px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.sitat-flex {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--global-gap);
}

.sitat-tekstcontainer {
  align-self: center;
  min-width: 0;
}

.sitat-sitat p {
  font-size: clamp(2.6rem, 0.548vw + 2.288rem, 3rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-primary);
}

.sitat-kilde {
  margin-top: 1em;
}

.sitat-kilde span {
  font-weight: 600;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .sitat-flex {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sitat-bilde {
    width: 170px;
  }
}

/* Innhold-bilde */

.innhold-bilde.bg-none + .innhold-bilde.bg-none,
.innhold-bilde.bg-color + .innhold-bilde.bg-color {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: var(--global-gap);
}

.bildegrid {
  display: grid;
  gap: var(--global-gap);
  /* direction: rtl; Sette bilder til høyre */
}
/* Unngå høyrejustert tekst i bildeteksten
.bildeitem {
  direction: ltr;
}
*/

.bildegrid.spaltegrid-1 {
  grid-template-columns: 1fr;
}

.bildegrid.spaltegrid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bildegrid.spaltegrid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.innhold-bilde .bildeaspekt {
  aspect-ratio: 920 / 550;
  object-fit: cover;
  object-position: center;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .bildegrid.spaltegrid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .bildegrid.spaltegrid-2,
  .bildegrid.spaltegrid-3 {
    grid-template-columns: 1fr;
  }
}

/* Innhold-bilde-stor */

.innhold-bilde-stor .bildetekst {
  padding: 0 6%;
}

.bilde-stor-hoyde {
  object-fit: cover;
  object-position: center;
  height: 550px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .bilde-stor-hoyde {
    height: 420px;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .bilde-stor-hoyde {
    height: 270px;
  }
}

/* Innhold-bildegalleri */

.gallery {
  display: grid;
  grid-auto-flow: dense;
  gap: 5px;
}

.wrapper-normal .gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  grid-auto-rows: 158px;
}

.wrapper-large .gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  grid-auto-rows: 184px;
}

.gallery > a > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.gallery > a {
  overflow: hidden;
  position: relative;
  display: block;
}

.gallery a:hover img {
  transform: scale(1.2);
}

.size1x2 {
  grid-row: span 2;
}

.size2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

@media (prefers-reduced-motion: reduce) {
  .gallery img {
    transition: none;
  }

  .gallery a:hover img {
    transform: none;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Horisontal */
  .wrapper-normal .gallery,
  .wrapper-large .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .size1x1,
  .size1x2,
  .size2x2 {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

/* Photoswipe custom style */

.pswp--custom-bg {
  --pswp-bg: #000;
}

.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  max-width: 800px;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.4;
  text-align: center;
}

.pswp__button--arrow--prev svg,
.pswp__button--arrow--next svg {
  width: 34px;
  height: 34px;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .pswp__custom-caption {
    bottom: 40px;
  }
}

/* Innhold-filnedlasting */
/* Innhold-lenke */

.filoglenke-index {
  border-top: 1px solid var(--color-text);
}

.filoglenke-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-text);
  padding: 0.8em 0;
  transition: color 0.2s ease;
}

.filoglenke-item:hover {
  color: var(--color-primary);
}

.filoglenke-item span {
  opacity: 0.5;
  font-size: 1.6rem;
  margin-left: 6px;
}

.filoglenke-item i {
  margin-left: auto;
  font-size: clamp(2.4rem, 0.274vw + 2.244rem, 2.6rem);
}

/* Innhold-bildeogtekst */

.bildeogtekst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

.midtstill-vertikalt {
  align-self: center;
}

.switch-place .bildeogtekst-bilde {
  order: 2;
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .bildeogtekst-grid {
    grid-template-columns: 1fr;
  }
}

/* openclose-css */

.openclose-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
  overflow: hidden;
}

.openclose-content.open {
  grid-template-rows: 1fr;
}

.openclose-content-inner {
  min-height: 0;
}

.openclose-toggle .minus {
  display: none;
}

.openclose-toggle.open .pluss {
  display: none;
}

.openclose-toggle.open .minus {
  display: block;
}

/* Innhold-apne-lukke-tekst */

.list-index {
  border-top: 1px solid var(--color-text);
}

.list-item {
  border-bottom: 1px solid var(--color-text);
}

.list-tittel {
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 0;
  font-weight: 700;
}

.list-tittel i {
  margin-left: 40px;
}

.listeinnhold {
  padding: 15px 0 30px 0;
}

.listeinnhold iframe {
  width: 100%;
}

/* Innhold-video */

.videowrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.videowrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Kontaktpersoner */

.portrettbilde {
  aspect-ratio: 550 / 690;
  margin-bottom: 15px;
}

img.portrettbilde {
  object-fit: cover;
  object-position: center;
}

div.portrettbilde {
  background-color: var(--color-light);
}

.bg-color div.portrettbilde {
  background-color: #fff;
}

.kontaktperson-item h3 {
  font-weight: 700;
  margin-bottom: 0.1em;
}

.kontaktpersoner-utvalgt .kontaktperson-item {
  background-color: var(--color-light);
  display: flex;
  align-items: flex-end;
}

.bg-color .kontaktpersoner-utvalgt .kontaktperson-item {
  background-color: #fff;
}

.kontaktpersoner-utvalgt .kontaktperson-item .portrettbilde {
  width: 170px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.kontaktpersoner-utvalgt .kontaktperson-personalia {
  padding: 30px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .kontaktpersoner-utvalgt.grid-2 {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */

  .kontaktpersoner-utvalgt .kontaktperson-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kontaktpersoner-utvalgt .kontaktperson-item .portrettbilde {
    width: 100%;
  }

  .kontaktpersoner-utvalgt .kontaktperson-personalia {
    padding: 20px;
  }
}

/* Innhold-aktueltsaker */

.innhold-aktueltsaker .gridcontent {
  gap: calc(var(--global-gap) * 2) var(--global-gap);
}

.aktueltsaker-item {
  text-decoration: none;
  color: var(--color-text);
}

.aktueltsaker-item:hover {
  opacity: 0.8;
}

.aktueltsaker-indexbilde {
  aspect-ratio: 380/230;
  margin-bottom: 0.8em;
}

img.aktueltsaker-indexbilde {
  object-fit: cover;
  object-position: center;
}

div.aktueltsaker-indexbilde {
  background-color: var(--color-light);
}

.bg-color div.aktueltsaker-indexbilde {
  background-color: #fff;
}

.aktueltsaker-dato {
  font-size: 90%;
  margin-bottom: 0.3em;
  opacity: 0.6;
}

.aktueltsaker-item h3 {
  margin-bottom: 0.3em;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .innhold-aktueltsaker .gridcontent {
    gap: var(--global-gap);
  }
}

/* PAGINATION */

.pagination {
  grid-column: 1 / -1;
  font-size: 1.5rem;
}

.pagination ul {
  box-shadow: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination ul > li {
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 10px;
}

.pagination ul > li > a,
.pagination ul > li > span {
  display: block;
  float: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  padding: 9px 15px;
}

.pagination ul > li > a:hover,
.pagination ul > li > a:focus,
.pagination ul > .active > a,
.pagination ul > .active > span {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background-color: #e0e0e0;
}

.pagination ul > li > a:hover {
  background-color: #f6f5f3;
}

/* Innhold-embedkode */

.innhold-embedkode iframe {
  display: block;
  width: 100%;
}

/* Innhold-logogrid */

.logogrid-grid {
  display: grid;
  gap: var(--global-gap);
  grid-template-columns: repeat(5, 1fr);
}

.wrapper-normal .logogrid-grid {
  grid-template-columns: repeat(3, 1fr);
}

.boks-bilde {
  background-color: #fff;
  border: 1px solid #ccc;
  width: 100%;
  aspect-ratio: 505 / 272;
}

.boks-bilde {
  transition: border-color .2s ease;
}

.boks-bilde img {
  transition: opacity .2s ease;
}

a.boks-bilde:hover {
  border-color: var(--color-primary);
}

a.boks-bilde:hover img {
  opacity: 0.8;
}

.boks-padding {
  padding: 12% 14%;
  height: 100%;
}

.boks-padding img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .logogrid-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .logogrid-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .logogrid-grid,
  .wrapper-normal .logogrid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Innhold programoversikt */

.programcontainer {
  border-bottom: 2px dotted var(--color-text);
}

.program-flex {
  display: flex;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);

  padding: 15px 0;
  border-top: 2px dotted var(--color-text);
}

a.program-flex:hover {
  color: #6d6d6d;
}

.program-tittel {
  font-weight: 700;
}

.program-flex-sub {
  display: flex;
  width: 100%;
  padding-right: 26px;
}

.program-info {
  width: 100%;
}

.program-merinfo,
.program-klokkeslett {
  color: var(--color-primary);
}

.program-merinfo {
  padding-top: 22px;
  padding-bottom: 5px;
}

.program-klokkeslett {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 250px;
}

.program-klokkeslett i {
  color: var(--color-primary);
  margin-right: 8px;
}

.program-flex-main {
  flex: 1;
}

.program-flex-toggle {
  align-self: center;
}

.program-flex-toggle i {
  color: var(--color-primary);
}

.merinfo-flex {
  display: flex;
  align-items: flex-start;
  gap: 30px 20px;
}

.merinfo-flex .program-portrettbilde {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 1/1.2;
}

.program-portrettbilde img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.merinfo-flex .program-merinfo-tekst {
  flex: 1;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  /* Programoversikt */

  .program-flex-sub {
    flex-direction: column;
  }

  .program-klokkeslett {
    max-width: none;
  }

  .program-klokkeslett {
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .merinfo-flex {
    flex-direction: column;
  }
}

/* Innhold-faktaboks */

.faktaboks {
  display: flex;
}

.faktaboks + .faktaboks {
  margin-top: 30px;
}

.maks-faktahoyde {
  min-height: 350px;
}

.faktaboks-tekst-padding {
  padding: 60px;
}

.faktaboks-tekst {
  color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
}

.faktaboks-bilde {
  width: 100%;
}

.faktaboks-bilde img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.snu-faktaboks .faktaboks-bilde {
  order: 1;
}

.faktaboks a {
  color: #fff;
}

.faktaboks a:hover {
  color: #fff;
  opacity: 0.8;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .faktaboks {
    flex-direction: column;
  }

  .maks-faktahoyde {
    min-height: auto;
  }

  .faktaboks-bilde {
    width: 100%;
    height: 300px;
  }

  .faktaboks-tekst-padding {
    padding: 40px;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .faktaboks-tekst-padding {
    padding: 40px 25px;
  }
}

/* Innhold-symbolpunkter */

.gridlayout-flex {
  display: flex;
  gap: 60px 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.gridlayout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.symbolpunkter-item {
  text-decoration: none;
  color: var(--color-text);
}

a.symbolpunkter-item:hover {
  opacity: 0.6;
}

.gridlayout-flex .symbolpunkter-item {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.symbolpunkter-bildecontainer {
  min-height: 80px;
  display: flex;

  align-items: flex-end;
  margin-bottom: 1.2em;
}

.gridlayout-flex .symbolpunkter-bildecontainer {
  justify-content: center;
}

.symbolpunkter-bildecontainer img {
  max-width: 50px;
}

.symbolpunkter-item h3 {
  margin-bottom: 0.3em;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .gridlayout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .gridlayout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* PARALLAX */

.text-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  padding: 20px;
}

.overlay-text {
  place-self: center;
  text-align: center;
  width: 88%;
  max-width: 834px;
}

.overlay-tekst-background {
  background-color: var(--color-text);
  color: #FFFFFF;
  display: inline;
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 2.0rem;
  font-family: arial, sans-serif;
  padding: 5px 12px 5px 13px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 4px;
}

.innhold-parallax + .innhold-bunntekst {
  margin-top: var(--global-spacing);
}

/* FOOTER */

main {
  flex: 1 0 auto; /* Sørger for at hovedinnholdet fyller vertikalt rom */
}

.footer {
  margin-top: auto; /* Erstatter position: sticky / top: 100vh */
  background-color: var(--color-primary);
  padding: 60px 0 50px 0;
  color: #fff;
  font-size: 1.8rem;
}