/**
 * Content
 */


.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* juster etter design */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  background: white; /* forhindrer glimt av bakgrunn ved load */
  z-index: 2000;
}




html, body {
  width: 100%;
  overflow-x: hidden;
}


body {
  background-color: rgba(255, 255, 255, 0.2);
  color: #000;
}

a:active {
  opacity: 0.7;
}

.page a.active {
  opacity: 0.4;
}



i,
em {
  font-style: italic;
}

b,
strong {
  font-weight: bolder;
}

sub,
sup {
  position: relative;
  vertical-align: baseline;
}

sub {
  top: 0.3em;
}

sup {
  top: -0.4em;
}

s {
  text-decoration: line-through;
}

img {
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0 0 0 1em;
}

blockquote {
  margin: 0;
  padding: 0 0 0 2em;
}

hr {
  background: rgba(127, 127, 127, 0.2);
  border: 0;
  height: 1px;
  display: block;
}

.content img {
  float: none;
  margin-bottom: 0.5em;
}

.gallery_image_caption {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.65);
  font-family: "century-gothic", sans-serif;
  font-weight: 800;
  font-style: bold;
  line-height: 1.3;
}

/**
 * Loading Animation
 */
.loading[data-loading] {
  position: fixed;
  bottom: 8px;
  left: 8px;
}

/**
 * Editor styles
 */
[data-predefined-style="true"] bodycopy {
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.85);
  font-family: "century-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
}

[data-predefined-style="true"] bodycopy a {
  color: rgb(0, 0, 0);
  padding-bottom: 0.1em;
  border-bottom: 0.0em solid rgba(127, 127, 127, 0.2);
  text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {
}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
  border-bottom: 0;
  padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
  font-family: "century-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  margin: 0;
  font-size: 2rem;
  line-height: 1.6;
  color: rgb(34, 31, 31);
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] h1 a {
  color: rgba(0, 0, 0, 0.85);
}

[data-predefined-style="true"] h2 {
  font-family: "century-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  margin: 0;
  color: rgb(34, 31, 31);
  font-size: 1.3rem;
  line-height: 1.6;
}

[data-predefined-style="true"] h2 a {
  color: rgba(0, 0, 0, 0.85);
}

[data-predefined-style="true"] small {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1.5;
  font-family: "century-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(34, 31, 31);
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] small a {
  color: rgba(34, 31, 31, 1);
  border-bottom-width: 0em;
}

/**
 * Breakpoints
 */
[data-css-preset] .page {
  background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
  position: relative;
  min-height: 10px;
  max-width: 100%;
  width: 100%;
  background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
  margin-left: auto /*!content_center*/;
  margin-right: auto /*!content_center*/;
  text-align: fixed /*!text_left*/;
}

[data-css-preset] body {
  background-color: rgb(255, 255, 255) /*!body_bgcolor*/;
}

[data-css-preset] .container_width {
  width: 100% /*!content_center*/;
}

[data-css-preset] .content_padding {
  padding-top: 5rem /*!main_margin*/;
  padding-bottom: 5rem /*!main_margin*/;
  padding-left: 5rem /*!main_margin*/;
  padding-right: 5rem /*!main_margin*/;
}

[data-css-preset] text-limit {
  display: inline-block /*!text_width*/;
  max-width: 66rem /*!text_width*/;
}

/**
 * Thumbnails
 */
div[thumbnails] {
  justify-content: flex-start;
}

[data-css-preset] .thumbnails {
  background-color: #ffb500 /*!thumbnails_bgcolor*/;
}

[data-css-preset] .thumbnails_width {
  width: 100% /*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
  padding: 1rem /*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
  margin: -2rem /*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
  padding: 0.5rem /*!responsive_thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
  margin: -1rem /*!responsive_thumbnails_padding*/;
}

.thumbnails .thumb_image {
  outline: 0px solid rgba(0,0,0,.12);
  outline-offset: -1px;
}

.thumbnails .title {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 0.5rem;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.85);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.1;
}

.thumbnails .tags {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.2;
}

.thumbnails .tags a {
  border-bottom: 0;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.thumbnails .has_title .tags {
  margin-top: 0rem;
}

/* === Site Menu === */
[data-css-preset] #site_menu_button {
  color: rgba(0, 0, 0, 0.75);
  line-height: 1;
  font-size: 28px /*!site_menu_button*/;
  padding: 6px;
  line-height: 0;
  background: rgba(33, 32, 46, 0);
  position: fixed;
  top: 3rem /*!site_menu_button*/;
  right: 3rem /*!site_menu_button*/;
}

#menu-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  background: none;
  border: none;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
}

#menu-toggle:hover {
  transform: scale(1.1);
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9998;
}

#menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile adjustments --- */
body.mobile #site_menu_button {
  margin: -4px;
  font-size: 20px;
}

#site_menu_button.custom_icon {
  width: 40px;
  height: auto;
}

#site_menu_button.active {
  display: none;
}




.menu-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 200px; /* fast bredde */
}

/* Menypanel ligger alltid over innholdet */
.menu-panel {
  position: fixed; /* viktig: fixed over alt innhold */
  top: 20px;
  right: 20px;
  margin: 0;
  background: transparent;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.menu-panel.active {
  opacity: 10;
  visibility: visible;
}

/* Undermeny absolute slik at den ikke påvirker layout */
.submenu {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: rgba(255, 255, 255, 0.37);
  padding: 8px 16px;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 999;
}

.menu-panel a.has-submenu:hover .submenu {
  display: flex;
}


