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

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

* {
  shape-rendering: crispEdges;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-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, svg, video, canvas {
  display: block;
  width: 100%;
  height: auto;
}

img, picture, svg, video, canvas {
  vertical-align: middle; 
  font-style: italic;
}

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

html, body {
  height: 100%; 
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

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

p {
  text-wrap: pretty;
}

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

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

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

.mainmenu a:focus-visible,
.mainmenu button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid #fff;
}

input:focus-visible {
    outline: 0;
}

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

:root {
  --font-primary: "Encode Sans Expanded", serif;
  --color-primary: #3A6079;
  --color-text: #312010;
  --color-text-light:#E6E1CF;
  --color-lightbackground: #E7F0F2;
  --global-spacing: 80px;
  --global-gap: 30px;
  --standard-lineheight: 1.55;
}

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

html {
  font-size: 62.5%;
}

body { 
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: clamp(1.7rem, 0.411vw + 1.466rem, 2rem);
  font-weight: 300;
  line-height: var(--standard-lineheight);
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}

/* MARGER, PADDING OG STØRRELSER */

.wrapper-large {
  margin: 0 auto; 
  width: 88%; 
  max-width: 1340px;
}

.wrapper-normal {
  margin: 0 auto; 
  width: 88%; 
  max-width: 834px;
}

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

.content-colorbg {
  background-color: var(--color-lightbackground);
}

.content-transbg + .content-transbg,
.content-colorbg + .content-colorbg /* 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: clamp(2.8rem, 0.274vw + 2.644rem, 3.2rem);}
h2 {font-size: clamp(2.4rem, 0.548vw + 2.088rem, 2.8rem);}
h3 {font-size: clamp(2rem, 0.411vw + 1.766rem, 2.3rem);}
h4 {font-size: clamp(1.7rem, 0.411vw + 1.466rem, 2rem);}
h5 {font-size: clamp(1.6rem, 0.274vw + 1.444rem, 1.8rem);}
h6 {font-size: clamp(1.4rem, 0.274vw + 1.244rem, 1.6rem);}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  text-wrap: balance;
}

h1, h2 {
  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.2em;
}

/* 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;
}

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

a[href^="tel"] {
  color: inherit; /* Inherit text color of parent element. */
  text-decoration: none; /* Remove underline. */
  /* Additional css `propery: value;` pairs here */
}

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-text);
}

@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 {
  font-weight: 500;
  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, .textstyle li {
	margin-left: 0;
	padding-left: 0;
}

.textstyle ul li {
  list-style-type: disc;
  margin-left: 1.15em;
}

.textstyle ol {
  list-style: decimal;
}

.textstyle ol li {
  list-style-position: outside;
  margin-left: 1.4em;
}

.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;
  outline: 2px solid #fff;
}

/* LAZY LOAD IMAGES */

.blurload::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: blinker 2s infinite;
  z-index: 99;
}

.blurload.loaded:before {
  content: none;
}

.blurload {
  position: relative;
  background-size: cover;
  background-position: center;
  display: block;
  width: 100%;
}

.blurload > img {
  opacity: 0;
  transition: opacity .2s ease-in-out;
}

.blurload.loaded > img {
  opacity: 1;
}

@keyframes blinker {
  0% {
    background-color: rgba(255, 255, 255, 0);
  }
  
  50% {
    background-color: rgba(255, 255, 255, 0.5);
  }
  
  100% {
    background-color: rgba(255, 255, 255, 0);
  }
}

/* RESET FORM */

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=search],
input[type=submit],
input[type=password],
textarea {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance:none;
  border: 0;
  border-radius: 0;
  color: inherit;
}

input:focus::placeholder {
  color: transparent;
}

::placeholder {
   color: #9f9f9f;
}

::-webkit-input-placeholder {
   color: #9f9f9f;
}

:-moz-placeholder { /* Firefox 18- */
   color: #9f9f9f;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #9f9f9f;
}

:-ms-input-placeholder {  
   color: #9f9f9f;
}

/* BUTTON */

.button {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance:none;
  display: inline-block;
  border: 0;
  border-radius: 0.25em;
  font-size: 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;
}

/* STYLING MAGNIFIC-POPUP */

.mfp-figure:after {
  background-color: #fff !important; 
}

.gallery-arrow {
  font-family: "Font Awesome 6 Pro";
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  position: absolute;
  top: 50%;
  margin-top: -15px;
  display: block;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 1em;
  cursor: pointer;
  z-index: 9999;
}
.gallery-arrow-left{
  left: 30px;
}
.gallery-arrow-left:before{
  content: '\f053'; /* < */
}
.gallery-arrow-right{
  right: 30px;
}
.gallery-arrow-right:before{
  content: '\f054'; /* > */
}

.mfp-title {
  font-size: 1.4rem;
  line-height: 1.4em !important;
  padding-bottom: 20px;
  padding-right: 50px !important;
}

/* GRID */

.gridcontent {
  display: grid;
  grid-gap: var(--global-gap);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

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

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

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

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

/* MAIN MENU */

.mainmenu {
  background-color: var(--color-primary);
  padding: 190px 0 140px 0;
}

/* 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;
}

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

.mainlogo {
  margin-right: auto;
}

.mainlogo img {
  max-width: 402px;
  margin-top: -10px;
}

nav ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
}

nav ul li a {
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  display: block;
}

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

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

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

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

.menu-icon .menu-icon-bar::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  transition: all 0.3s;
}

.menu-icon .menu-icon-bar::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  transition: all 0.3s;
}

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

body.menu-visible .menu-icon .menu-icon-bar:before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-visible .menu-icon .menu-icon-bar:after {
  top: 0;
  transform: rotate(-45deg);
}

.menytrigger {
  visibility: hidden;
  display: none;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .mainmenu {
    background-color: var(--color-primary);
    padding: 67px 0;
  }
  
  .mainlogo img {
    max-width: 222px;
    margin-top: 0;
  }
  
  .menytrigger {
    visibility: visible;
    display: block;
    order: 4;
  }
  
  nav {
    position: fixed;
    width: 100%;
    height: 100%;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-primary);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
    transition: all opacity 0.3s ease-in-out;
    padding: 150px 6%;
  }
  
  body.menu-visible nav {
    visibility: visible;
    opacity: 1;
  }
  
  body.menu-visible {
    overflow: hidden;
  }
  
  body.menu-visible main {
    pointer-events: none;
  }
  
  nav ul li a {
    font-size: 2.8rem;
  }
  
  nav ul {
    gap: 20px;
  }
}

/* HERO BANNER */

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

.herobanner-image,
.herobanner-video {
  object-fit: cover;
  object-position: 50% 50%;
}

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

.herobanner-transparent {
  background-color: #000;
  pointer-events: none;
}

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

.herobanner h1 {
  color: #fff;
}

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

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .herobanner {
    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.content-transbg + .innhold-brodtekst.content-transbg {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: 1.5em;
}

/* Innhold-tittel */

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

.innhold-tittel.content-colorbg + .content-colorbg,
.innhold-tittel.content-transbg + .content-colorbg {
  margin-top: calc(var(--global-spacing) * -1); 
}

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

/* Innhold-sitat */

.sitat-bilde {
  width: 200px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

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

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

.sitat-tekstcontainer {
  align-self: center;
}

.sitat-sitat p {
  font-size: clamp(2.8rem, 1.333vw + 1.767rem, 3.5rem);
  line-height: 1.35;
  font-weight: 600;
}

.sitat-kilde {
  font-weight: 400;
  margin-top: 0.4em;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .sitat-flex {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sitat-center {
    text-align: center;
  }
  
  .sitat-bilde {
    width: 170px;
  }
  
  .sitat-center .sitat-bilde {
    text-align: center;
    margin: 0 auto;
  }
}

/* Innhold-bilde */

.innhold-bilde.content-transbg + .innhold-bilde.content-transbg,
.innhold-bilde.content-colorbg + .innhold-bilde.content-colorbg {
  margin-top: calc(var(--global-spacing) * -1);
  padding-top: var(--global-gap);
}

.bildegrid {
  display: grid;
  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-position: center;
  object-fit: cover;
}

@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 */

.bilde-stor-hoyde {
  object-fit: cover;
  height: 630px;
}

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

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

/* Innhold-bildegalleri */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: minmax(250px, 10vw);
  grid-auto-flow: dense;
  grid-gap: 5px;
}

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

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

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

.gallerycenter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallerycenter div {
  background-color: #282828;
  width: 50px;
  height: 50px;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s ease;
  border-radius: 5px;
}

.gallery a:hover .gallerycenter div {
  opacity: 1;
}

.gallerycenter i {
  color: #fff;
}

.size1x2 {
  grid-row: span 2;
}

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

@media only screen and (max-width: 567px) { /* Mobile Horisontal */
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .size1x1,
  .size1x2,
  .size2x2 {
    grid-column: 1 / -1;
    grid-row: span 1; 
  }
}

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

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

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

.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;
  position: relative;
  padding-left: 40px;
  font-size: 130%;
}

/* Innhold-bildeogtekst */

.bildeogtekst-flex {
  display: flex;
  gap: 30px;
}

.bildeogtekst-bilde {
  width: 50%;
}

.bildeogtekst-tekst {
  width: 50%;
}

.midtstill-vertikalt {
  display: flex;
  align-items: center;
}

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

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .bildeogtekst-flex {
    flex-wrap: wrap;
  }
  
  .bildeogtekst-bilde,
  .bildeogtekst-tekst {
  width: 100%;
  }
}

/* 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 {
  font-weight: 500;
  margin-left: 40px;
}

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

.listeinnhold iframe {
  width: 100%;
}

/* Innhold-video */

.videowrapper {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.videowrapper::before {
  padding-top: 56.25%;
  display: block;
  content: "";
}

.videowrapper iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Kontaktpersoner */

img.portrettbilde,
.portrettbilde-mangler {
  aspect-ratio: 550 / 710;
  margin-bottom: 15px;
}

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

.portrettbilde-mangler {
  background-color: var(--color-lightbackground);
}

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

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

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

.kontaktpersoner-utvalgt .kontaktperson-item .portrettbilde,
.kontaktpersoner-utvalgt .blurload {
  width: 170px;
  margin-bottom: 0;
  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: 767px) { /* Mobile Horizontal */
  .kontaktpersoner-alle.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .kontaktpersoner-alle.grid-4 {
    grid-template-columns: 1fr;
  }
  
  .kontaktpersoner-utvalgt .kontaktperson-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .kontaktpersoner-utvalgt .kontaktperson-item .portrettbilde,
  .kontaktpersoner-utvalgt .blurload {
    width: 100%;
  }
  
  .kontaktpersoner-utvalgt .kontaktperson-personalia {
    padding: 20px;
  }
}

/* Innhold-aktueltsaker */

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

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

.bildeaspekt-aktueltsaker {
  aspect-ratio: 380/230;
  object-position: center;
  object-fit: cover;
}

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

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

.aktueltsaker-indexbilde {
  margin-bottom: 0.8em;
}

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

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

/* Innhold-embedkode */

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

/* Innhold-logogrid */
  
  .logogrid-grid {
    display: grid;
    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;
  }
  
  a.boks-bilde:hover img {
    opacity: 0.8;
  }
  
  .boks-padding {
    padding: 12% 14%;
    height: 100%;
  }
  
  .innhold-logogrid .blurload {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  .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;
}

.hiddeninnhold {
  display: none;
}

.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: 20px;
}

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

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

.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;
    gap: 0;
  }
}

/* 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 .blurload {
  position: relative;
  width: 100%;
}

.faktaboks-bilde {
  object-position: center;
  object-fit: cover;
  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 */

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

.symbolpunkter-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;
}

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

.symbolpunkter-bildecontainer {
  min-height: 80px;
  display: flex;
  
  align-items: flex-end;
  margin-bottom: 1.2em;
}

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

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

.symbolpunkter-bildecontainer .blurload {
  display: inline-block;
  width: auto;
}

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

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

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

/* FOOTER */

.footer {
  position: sticky;
  top: 100vh;
  background-color: var(--color-primary);
  padding: 67px 0 50px 0;
  color: #fff; 
  font-size: 1.7rem;
  font-weight: 400;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  opacity: 50%;
}

.footer-flex {
  display: flex;
  align-items: flex-start;
  gap: 16%;
  margin-bottom: 66px;
}

.footer-logo {
  max-width: 81px;
}

.footer-copywright {
  font-size: 1.4rem;
  opacity: 0.5;
}

.footer-copywright strong a {
  text-decoration: underline;
}

.mayhide {
  display: none;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .footer-flex {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-copywright span {
    display: none;
  }
  
  .mayhide {
    display: inline-block;
  }
}