.elementor-kit-8{--e-global-color-primary:#141414;--e-global-color-secondary:#4E4E4E;--e-global-color-text:#000000;--e-global-color-accent:#206EAA;--e-global-color-0141d33:#FFFFFF;--e-global-color-8305575:#F5F5F5;--e-global-color-3d0e523:#144367;--e-global-color-23c1cf7:#0000001F;--e-global-color-0addb00:#1C7B61;--e-global-color-df3b91e:#FFFFFFB3;--e-global-typography-primary-font-family:"Inter Tight";--e-global-typography-primary-font-weight:700;--e-global-typography-secondary-font-family:"Merriweather";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Merriweather";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Inter Tight";--e-global-typography-accent-font-weight:500;--e-global-typography-2643eb6-font-family:"Inter Tight";--e-global-typography-2643eb6-font-size:1.4rem;--e-global-typography-2643eb6-font-weight:600;--e-global-typography-4d98d47-font-family:"Merriweather";--e-global-typography-4d98d47-font-size:1rem;--e-global-typography-4d98d47-font-weight:600;background-color:#F5F5F5;font-family:"Merriweather", Sans-serif;font-weight:400;}.elementor-kit-8 button,.elementor-kit-8 input[type="button"],.elementor-kit-8 input[type="submit"],.elementor-kit-8 .elementor-button{background-color:var( --e-global-color-accent );color:var( --e-global-color-8305575 );}.elementor-kit-8 button:hover,.elementor-kit-8 button:focus,.elementor-kit-8 input[type="button"]:hover,.elementor-kit-8 input[type="button"]:focus,.elementor-kit-8 input[type="submit"]:hover,.elementor-kit-8 input[type="submit"]:focus,.elementor-kit-8 .elementor-button:hover,.elementor-kit-8 .elementor-button:focus{background-color:var( --e-global-color-3d0e523 );color:var( --e-global-color-0141d33 );}.elementor-kit-8 e-page-transition{background-color:#FFBC7D;}.elementor-kit-8 a{color:#206EAA;}.elementor-kit-8 a:hover{color:var( --e-global-color-accent );font-weight:600;}.elementor-kit-8 h1{font-family:"Inter Tight", Sans-serif;font-size:3.5rem;font-weight:700;}.elementor-kit-8 h2{font-family:"Inter Tight", Sans-serif;font-size:2rem;font-weight:700;}.elementor-kit-8 h3{font-family:"Inter Tight", Sans-serif;font-size:1.3rem;font-weight:700;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-8{--e-global-typography-2643eb6-font-size:1.2rem;--e-global-typography-2643eb6-line-height:1.2em;}.elementor-kit-8 h1{font-size:1.4rem;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* ===========================
   GALLERI GRID (masonry)
   =========================== */

.im-gallery {
  column-count: 3;
  column-gap: 1rem; /* horisontalt mellomrom mellom kolonnene */
}

.im-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--im-gap-y, 0.6rem); /* vertikalt mellomrom (desktop) */
  overflow: hidden;
  border-radius: var(--im-radius, 8px);  /* AVRUNDING STYRES MED VARIABEL (desktop/default) */
  background: #000; /* hindrer hvitt blink ved hover-zoom */
  break-inside: avoid; /* ikke del elementet mellom kolonner */
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

/* selve bildet */
.im-item picture,
.im-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* hover-overlay (skjult til hover) */
.im-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Hover-effekt */
.im-item:hover img {
  transform: scale(1.05);
}
.im-item:hover .im-overlay {
  background: rgba(0,0,0,0.45);
  opacity: 1;
}

/* Responsiv kolonnestøtte */
@media (max-width: 900px) {
  .im-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .im-gallery {
    column-count: 1;
  }

  /* EGET VERTIKALT MELLOMROM + AVRUNDING PÅ MOBIL */
  .im-gallery .im-item {
    margin: 0 0 var(--im-gap-y-mobile, var(--im-gap-y, 0.6rem));
    /* hvis --im-gap-y-mobile ikke er satt, faller den tilbake til desktop-verdien */

    border-radius: var(--im-radius-mobile, var(--im-radius, 8px));
    /* hvis --im-radius-mobile ikke er satt, bruker den desktop-radiusen */
  }
}

/* Lys grå “skeleton” før bildet er lastet */
.im-gallery .im-item { 
  background-color: #f2f2f2;      /* endre her for annen farge */
}



/* ===========================
   GALLERI 2 kolonner (masonry)
   =========================== */

.im-gallery.im-gallery--cols-2 {
  /* 2 kolonner */
  -webkit-column-count: 2;
  column-count: 2;

  /* horisontalt mellomrom */
  -webkit-column-gap: var(--im-gap-x, 16px);
  column-gap: var(--im-gap-x, 16px);
}

/* Vanlige elementer i masonry */
.im-gallery.im-gallery--cols-2 .im-item {
  display: block;
  width: 100%;
  margin: 0 0 var(--im-gap-y, 16px);

  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}


/* Mobil: 1 kolonne */
@media (max-width: 700px) {
  .im-gallery.im-gallery--cols-2 {
    -webkit-column-count: 1;
    column-count: 1;

    -webkit-column-gap: var(--im-gap-mobile-x, 12px);
    column-gap: var(--im-gap-mobile-x, 12px);
  }

  .im-gallery.im-gallery--cols-2 .im-item {
    margin-bottom: var(--im-gap-mobile-y, 8px);
  }
}


/* ===========================
   1 stort bilde og 2 små
   =========================== */

/* GRID-GALLERI: 1 stort + 2 små */
.im-gallery-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--im-gap, 16px); /* kontrolleres via inline-style */
}

/* Stort bilde øverst */
.im-gallery-hero--top {
  grid-template-areas:
    "hero hero"
    "thumb1 thumb2";
}

/* Hvis du vil ha hero nederst: bruk .im-gallery-hero--bottom på wrapperen */
.im-gallery-hero--bottom {
  grid-template-areas:
    "thumb1 thumb2"
    "hero hero";
}

/* Grid-områder */
.im-item--hero    { grid-area: hero; }
.im-item--thumb-1 { grid-area: thumb1; }
.im-item--thumb-2 { grid-area: thumb2; }

/* Mobil: én kolonne, stablet */
@media (max-width: 700px) {
  .im-gallery-hero {
    grid-template-columns: 1fr;
  }

  .im-gallery-hero--top {
    grid-template-areas:
      "hero"
      "thumb1"
      "thumb2";
  }

  .im-gallery-hero--bottom {
    grid-template-areas:
      "thumb1"
      "thumb2"
      "hero";
  }
}

/* Hero-galleri: null ut margin som kommer fra masonry-oppsettet */
.im-gallery-hero .im-item {
  margin: 0; /* bruker kun gap til mellomrom */
}

/* Mobil: smalere mellomrom når bildene står stacket */
@media (max-width: 700px) {
  .im-gallery-hero {
    row-gap: 8px;   /* prøv 4–10px etter smak */
    column-gap: 8px;
  }
}



/* ===========================
   ÉN-KOLONNE-GALLERI
   =========================== */

/* ÉN-KOLONNE-GALLERI: bilder under hverandre */
.im-gallery-onecol {
  --im-gap: 18px;              /* standard mellomrom på desktop */
  display: flex;
  flex-direction: column;
  gap: var(--im-gap);
}

/* Null ut margin fra masonry-oppsettet inni dette galleriet */
.im-gallery-onecol .im-item {
  margin: 0;
  width: 100%;
}

/* Mobil: smalere gap når bildene er stacket */
@media (max-width: 700px) {
  .im-gallery-onecol {
    --im-gap: 8px;            /* mindre mellomrom på mobil */
  }
}

/* ===========================
   Kart fiks
   =========================== */

/* Skjul hvite sømmer/striper mellom Leaflet tiles */
.leaflet-container .leaflet-tile {
  outline: 1px solid transparent;
  /* noen ganger hjelper også dette på Chromium */
  transform: translateZ(0);
}



/* ===========================
   POPUP IM_PLUGIN
   =========================== */





/* ===========================
   Fikser topp header forskyving
   =========================== */

html {
    overflow-y: scroll;
}/* End custom CSS */