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

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

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 {
  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: "ff-din-paneuropean", sans-serif;
  --ff-cond: "ff-din-paneuropean-cond", sans-serif;
  --fs-primary: clamp(1.9rem, 0.096vw + 1.869rem, 2rem);
  --fs-large: clamp(2.3rem, 0.132vw + 2.229rem, 2.4rem);
  --fw-primary: 400;
  --standard-lineheight: 1.4;
  
  --fs-h1: clamp(3.5rem, 3.026vw + 1.866rem, 5.8rem);
  --fs-h2: clamp(3.1rem, 0.395vw + 2.887rem, 3.4rem);
  --fs-h3: clamp(2.6rem, 0.096vw + 2.569rem, 2.7rem);
  --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: #A08629;
  --color-text: #A08629;
  --color-texthover: #C6AA76;
  --color-light: #EFF5F7;
  --color-blue-light: #AFCDD7;
  --color-blue: #4986A0;
  
  /* Spacing, gap */
  --global-spacing: 70px;
  --global-gap: 40px;
}

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

html {
  font-size: 62.5%;
}

body { 
  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 {
  margin: 0 auto; 
  width: 88%; 
  max-width: 1478px;
}

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

.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-family: var(--ff-cond);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.1;
}

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

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

.titlestyle h1 {
  padding-bottom: 0.6em;
}

.titlestyle h2,
.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-texthover);
}

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-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: 700;
  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 {
	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.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;
}

/* 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;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance:none;
  display: inline-block;
  border: 0;
  border-radius: 0.25em;
  font-family: var(--ff-cond);
  font-size: clamp(2.3rem, 0.395vw + 2.087rem, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  padding: 0.4em 1em 0.6em;
  margin: 0;
  cursor: pointer;
  transition: background-color 200ms ease-in;
}

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

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

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

/* STYLING MAGNIFIC-POPUP */

.gallery-arrow {
  font-family: "Font Awesome 7 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;
  padding-bottom: 20px;
  padding-right: 50px;
}

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

/* ISOTOPEGRID */

.isotopegrid {
  width: 100%;
  display: block;
  background-color: yellow;
  margin-bottom: 30px;
}

.isotopegrid .item {
  width: 23.5%;
  background-color: red;
  margin-bottom: 2%;
  padding: 20px;
}

.isotopegrid .item-two {
  width: 49%;
  background-color: grey;
}

.gutter-sizer {
  width: 2%;
}

input.quicksearch {
  border: 1px solid #000;
  margin: 30px 0;
  padding: 10px;
}

.filters {
  margin-bottom: 30px;
}

.button-group {
  width: 100%;
  margin-bottom: 15px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filters button {
  background-color: #fff;
  border: 1px solid black;
  padding: 10px 20px;
  cursor: pointer;
}

.filters button:hover {
  color: inherit;
  background-color: #f0f0f0;
}

.filters .is-checked, .filters .is-checked:hover {
  background-color: var(--color-primary);
  color: #fff;
}

@media only screen and (max-width: 1279px) { /* Tablet Horizontal */
  .isotopegrid .item {
    width: 49%;
    margin-bottom: 2%;
  }
  
  .isotopegrid .item-two {
    width: 49%;
  }
  
  .gutter-sizer {
    width: 2%;
  }
}

@media only screen and (max-width: 567px) { /* Mobile Vertical */
  .isotopegrid .item {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* MAIN MENU */

:root {
  --menu-height: 160px; /* 218px */
}

html {
  scroll-padding-top: var(--menu-height);
}

body {
  padding-top: var(--menu-height);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 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 .logo-horizontal img {
  width: 270px;
}

.mainlogo .logo-vertical img {
  width: 158.48px;
}

.logo-vertical {
  margin-top: 50px;
  display: none;
}

.set-vertical .logo-vertical {
  display: block;
}

.set-vertical .logo-horizontal {
  display: none;
}

nav {
  margin-top: 17px;
}

.menu-mainlevel {
  display: flex;
  flex-wrap: wrap;
}

.menu-mainlevel li {
  position: relative;
}

.menu-mainlevel li + li {
 border-left: 1px solid var(--color-text);;
}

.menu-mainlevel a {
  font-family: var(--ff-cond);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  padding: 0 20px;
}

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

.menu-sublevel {
  position: absolute;
  top: 85.5px;
  left: 0;
  width: 100vh;
  padding: 16px 0;
  background-color: var(--color-primary);
}

.menu-sublevel li + li {
  border-left: 0;
}

.menu-sublevel li a {
  color: #fff;
  display: block;
  padding: 8px 20px;
}

.menu-sublevel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.25s ease;
}

/* Pil */
.menu-mainlevel li span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); /* peker til høyre */
  transition: transform 0.25s ease;
  margin-left: 8px;
  margin-top: -2px;
  vertical-align: middle; /* 👈 viktig */
}

/* Roter pil når åpen */
.menu-mainlevel li.open > a span {
  transform: rotate(45deg); /* peker ned */
}

.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: all 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: all 0.3s;
}

.menu-icon .menu-icon-bar::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  transition: all 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 {
  visibility: hidden;
  display: none;
}

@media only screen and (max-width: 1370px) { /* Endre til mobilmeny */
  .menytrigger {
    visibility: visible;
    display: block;
    order: 4;
    position: relative;
    top: 6px;
  }
  
  nav {
    margin-top: 0;
    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: 160px 6%;
  }
  
  .menu-visible nav {
    visibility: visible;
    opacity: 1;
  }
 
  .menu-visible {
    overflow: hidden;
  }
    
  .menu-visible main {
    pointer-events: none;
  }
  
  .menu-visible header.hidden {
      transform: none;
  }
  
  .menu-mainlevel a {
    color: #fff;
    font-size: 2.8rem;
    padding: 12px 0 18px;
    display: block;
  }
  
  nav > ul {
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #fff;
  }
  
  nav ul li {
    border-top: 1px solid #fff;
  }
  
  nav ul li ul li {
    border-top: none;
  }
  
  .menu-sublevel {
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
    width: 100%;
  }
  
  .menu-sublevel li a {
    padding: 8px 15px;
  }
  
  .menu-sublevel li:last-child a {
    padding-bottom: 30px;
  }
}

@media only screen and (max-width: 913px) {
  :root {
    --menu-height: 130px;
  }
  
  nav {
    padding: 130px 6%;
  }
  
  .menytrigger {
    top: 3px;
  }
  
  .mainlogo .logo-horizontal img {
    width: 230px;
  }
  
  .mainlogo .logo-vertical img {
    width: 135.01px;
  }
  
  .set-vertical .logo-vertical {
    display: none;
  }
  
  .set-vertical .logo-horizontal {
    display: block;
  }
}

/* HERO HOME */

.herobanner-home {
  overflow: hidden;
}

.herobanner-home-grid {
  display: flex;
  min-height: 700px;
}

.herobanner-home-text {
  max-width: 466px;
  width: 50%;
  padding: 130px 65px 130px 0;
  align-self: center;
}

.herobanner-home-text h1 {
  margin-bottom: 0.4em;
}

.herobanner-home-text .button {
  margin-top: 1.4em;
}

.herobanner-home-image,
.herobanner-home-video {
  flex-grow: 1;
  position: relative;
}

.herobanner-home-image img,
.herobanner-home-video video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  
  width: calc(100% + (100vw - 100% - (100vw - 88%) / 2));
  
  object-fit: cover;
}

@media only screen and (max-width: 913px) { /* Mobile Horizontal */
  .herobanner-home-grid {
    flex-direction: column;
    min-height: auto;
    gap: var(--global-spacing);
  }
  
  .herobanner-home-text {
    margin-top: var(--global-spacing);
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-self: flex-start;
  }
  
  .herobanner-home-image,
  .herobanner-home-video {
    width: 110%;
    aspect-ratio: 415/300;
  }
  
  .herobanner-home-image img,
  .herobanner-home-video video {
    width: 100%;
  }
}

/* HERO BANNER */

.herobanner {
  position: relative;
  width: 100%;
  height: 700px;
  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(2.1rem, 0.39vw + 1.894rem, 2.4rem);
  font-weight: 400;
}

.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;
  overflow: hidden;
}

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

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

.sitat-sitat p {
  font-family: var(--ff-cond);
  font-size: clamp(2.8rem, 0.39vw + 2.594rem, 3.1rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-primary);
}

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

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

@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(250px, 100%), 1fr));
  grid-auto-rows: 240px;
}

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

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

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

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

.size1x2 {
  grid-row: span 2;
}

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

@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; 
  }
}

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

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

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

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

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

.filoglenke-item i {
  margin-left: auto;
  font-size: 130%;
}

/* Innhold-bildeogtekst */

.bildeogtekst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--global-spacing) var(--global-gap);
}

.bildeogtekst-tekst h2 {
  font-size: var(--fs-h1);
  margin-bottom: 0.1em;
}

.bildeogtekst-lenke {
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-top: 1.3em;
}

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

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

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

/* Innhold-apne-lukke-tekst */

.list-item + .list-item {
  margin-top: 17px;
}

.list-item {
  border: 1px solid var(--color-texthover);
  background-color: #FAF9F4;
  padding: 0.7em 1.2em 0.8em;
}

.list-item.open-bgcolor {
  background-color: var(--color-light);
}

.list-tittel {
  text-decoration: none;
  font-family: var(--ff-cond);
  font-size: clamp(2.4rem, 0.263vw + 2.258rem, 2.6rem);
  display: flex;
  gap: 40px;
  justify-content: space-between;
  line-height: 1.2;
  align-items: center;
  font-weight: 700;
}

.list-merinfo-text {
  font-family: var(--ff-primary);
  font-size: 1.8rem;
  font-weight: 500;
  flex-shrink: 0;
}

.list-tittel i {
  font-size: 2.0rem;
  font-weight: 300;
  margin-left: 6px;
}

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

.listeinnhold iframe {
  width: 100%;
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .list-merinfo-text span {
    display: none;
  }
}

/* Innhold-video */

.videowrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
}

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

/* Ansatte */

.portrettbilde {
  aspect-ratio: 305 / 368;
  object-fit: cover;
  object-position: center;
  position: relative;
  top: 6px;
}

.ansatte-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--global-gap);
}

.ansatte-item + .ansatte-item {
  margin-top: var(--global-spacing);
}

.personbeskrivelse {
  margin-top: 1.3em;
}


@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .ansatte-item {
    grid-template-columns: 1fr;
    gap: var(--global-gap);
  }
  
  .portrettbilde {
    max-width: 330px;
  }
}

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

.faktaboks {
  display: flex;
}

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

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

.faktaboks-tekst-padding {
  padding: 70px 50px;
}

.faktaboks-tittel {
  font-family: var(--ff-cond);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.4em;
  text-wrap: balance;
}

.faktaboks-tekst {
  font-size: var(--fs-large);
  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;
}

.faktalenke {
  display: block;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1em;
}

.faktalenke i {
  margin-left: 10px;
}

@media only screen and (max-width: 1023px) { /* Tablet Vertical */  
  .faktaboks {
    flex-direction: column;
  }
  
  .min-faktahoyde {
    min-height: auto;
  }
    
  .faktaboks-bilde {
    width: 100%;
    height: 350px;
  }
  
  .faktaboks-tekst-padding {
    padding: 50px 40px;
  }
}

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

/* Innhold-symbolpunkter */

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

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

.symbolpunkter-item {
  text-decoration: none;
  color: var(--color-text);
  max-width: 120px;
}

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

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

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

.symbolpunkter-tekst {
  font-weight: 500;
  line-height: 1.2;
}

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

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

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

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

/* Innhold-slideshow */

.slideshow-area {
  overflow: hidden;
  padding-bottom: 100px;
}

@media only screen and (max-width: 1279px) { /* Tablet Horizontal */
  .slideshow-area {
    padding-bottom: 35px;
  }
}

.slideshow {
  width: 100%;
}

a.slideshow-item {
  display: block;
  position: relative;
  color: var(--color-text);
}

a.slideshow-item img {
  height: 30vw;
  max-height: 550px;
  min-height: 277px;
}

.slideshow-caption {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 40px;
}

/* Slider */
.slick-loading .slick-list
{
    background: #fff url('/-/css/ajax-loader.gif') center center no-repeat;
}

/* Arrows */

.slick-prev,
.slick-next {
  font-family: "Font Awesome 7 Pro";
  font-size: 0;
  line-height: 0;
  position: absolute;
  display: block;
  
  padding: 0;
  cursor: pointer;
  
  color: transparent;
  border: none;
  outline: none;
  background: transparent;
  z-index: 100;
  opacity: 1;
  
  width: 40px;
  height: 40px;
}

.slick-prev:before,
.slick-next:before {
  font-family: "Font Awesome 7 Pro";
  font-weight: 300;
  line-height: 1;
  font-size: 4rem;
  color: #fff;
  opacity: 1;
}

.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before,
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus
{
  opacity: 0.8;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before
{
    opacity: .25;
}

.slick-prev
{
    left: 25px;
}
.slick-prev:before
{
    content: '\f137'; /* < */
}

.slick-next
{
    right: 25px;
}

.slick-next:before
{
    content: '\f138'; /* > */
}

/* Dots */

.slick-dots {
  position: absolute;
  bottom: -40px;
  
  display: block;
  
  width: 100%;
  padding: 0 60px;
  margin: 0;
  
  list-style: none;
  
  text-align: center;
}

.slick-dots > li:only-child {
  display: none !important;
}


.slick-dots li {
  position: relative;
  
  display: inline-block;
  
  width: 20px;
  height: 20px;
  margin: 0 2px;
  padding: 0;
  
  cursor: pointer;
}

.slick-dots li button
{
    font-size: 0;
    line-height: 0;

    display: block;

    width: 20px;
    height: 20px;
    padding: 5px;

    cursor: pointer;

    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

.slick-dots li button:hover,
.slick-dots li button:focus
{
    outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before
{
    opacity: 1;
}

.slick-dots li button:before {
  font-family: "Font Awesome 7 Pro";
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  
  position: absolute;
  top: 0;
  left: 0;
  
  width: 20px;
  height: 20px;
  
  content: '\f111';
  text-align: center;
  
  color: var(--color-text);
  opacity: 1;
}

.white-font .slick-dots li button:before,
.white-font .slick-dots li.slick-active button:before {
  color: #fff;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before {

  color: var(--color-texthover);
}

.slick-dots li.slick-active button:before {
  content: '\f111';
  font-weight: bold;
  color: var(--color-text);
  opacity: 1;
}

/* Innhold-punktliste */

.punktliste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--global-gap);
}

.punktliste-styling ul {
  border-top: 1px solid var(--color-text);
  margin-top: 10px;
}

.punktliste-styling li {
  border-bottom: 1px solid var(--color-text);
  padding: 8px 0;
}

.punktliste-styling li > a {
  display: block;
  text-decoration: none;
}

/* Innhold-bildesaker */

:root {
    /* Skalerbare verdier */
    --space-large: clamp(80px, 8vw, 140px);
    --space-medium: clamp(40px, 4vw, 100px);
    --space-small: clamp(20px, 2.5vw, 50px);
}

/* Én felles container for alle kortene */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-medium) var(--space-small);
    padding-top: var(--space-large);
    padding-bottom: calc(-1 * var(--space-large));
}

.card-grid-strict {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--global-spacing) var(--global-gap);
  padding-top: 0;
  margin-bottom: 0;
}

.wrapper-normal .card-grid-strict {
  grid-template-columns: 1fr 1fr;
}

.img-wrapper {
    aspect-ratio: 465/578;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1em;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

.card a {
  text-decoration: none;
}

.card a:hover img {
  transform: scale(1.1);
}

.card h2 {
  margin-bottom: 0.2em;
}

.bildesak-merinfo {
  margin-top: 0.8em;
  font-weight: 500;
}

/* Alle kort i venstre kolonne (1, 3, 5...) dytter vi ned */
.card:nth-child(odd) {
    margin-top: var(--space-small);
}

/* Alle kort i høyre kolonne (2, 4, 6...) dytter vi opp */
.card:nth-child(even) {
    margin-top: calc(-1 * var(--space-large));
}

.padding-right {
  padding-right: 32%;
}

.padding-left {
  padding-left: 32%;
}

.card-grid-strict .card:nth-child(odd) {
    margin-top: 0;
}

.card-grid-strict .card:nth-child(even) {
    margin-top: 0;
}

.card-grid-strict .padding-right {
  padding-right: 0;
}

.card-grid-strict .padding-left {
  padding-left: 0;
}

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

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .card-grid-loose {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 0;
    gap: 50px;
  }
  
  .card-grid-loose .card:nth-child(odd) {
      margin-top: 0;
  }
  
  .card-grid-loose .card:nth-child(even) {
      margin-top: 0;
  }
  
  .card-grid-loose .padding-right {
    padding-right: 0;
  }
  
  .card-grid-loose .padding-left {
    padding-left: 0;
  }
  
  /* Endre rekkefølge */
  
  .card-grid-loose .card:nth-child(2) {
    order: 0; /* alltid øverst */
  }
  
  .card-grid-loose .card:nth-child(1) {
    order: 1; /* alltid nr 2 */
  }
  
  .card-grid-loose .card:nth-child(4) {
    order: 2; /* alltid nr 3 */
  }
  
  .card-grid-loose .card:nth-child(3) {
    order: 4; /* alltid nederst */
  }

}

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

/* Innhold-bordoppsett */

.maksantall {
  font-size: 1.8rem;
}

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

.bordoppsett-item img {
  margin-top: 1em;
}


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

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

/* FOOTER */

.footer {
  position: sticky;
  top: 100vh;
  padding: 70px 0 50px 0;
  font-size: 1.8rem;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
  margin-bottom: 70px;
}

.footer-logo img {
  max-width: 270px;
  position: relative;
  top: -18px;
  margin-bottom: -18px;
}

.footer-text-2 {
  margin-right: auto;
}

.footer-flex p {
  white-space: nowrap;
}

.sosiale-medier a {
  display: block;
  font-weight: 700;
  text-decoration: none;
}

.footer-kredits,
.footer-kredits a {
  color: var(--color-texthover);
  font-size: 1.2rem;
}

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

@media only screen and (max-width: 1023px) { /* Tablet Vertical */
  .footer-logo {
    width: 100%;
  }
}

@media only screen and (max-width: 913px) {
  .footer-logo img {
    width: 230px;
  }
}

@media only screen and (max-width: 767px) { /* Mobile Horizontal */
  .sosiale-medier {
    width: 100%;
  }
}