.wp-block-jetpack-layout-grid-editor .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none.has-background p, .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none.has-background p {
	padding: 0 20px;
}

.wp-block-cover-image.has-background-dim {
	padding-top: -20px !important;
}

a {
	text-decoration: none !important;
}

.wp-block-search .wp-block-search__input::placeholder {
	color: #ffffff;
	opacity: 0;
}

/* Reduce size of contact form on mobile | 34727425-hc (BM) */
@media screen and (max-width: 560px) {
	.page-id-334 .contact-form input[type="text"], 
					    .page-id-334 .contact-form input[type="email"], 
					    .page-id-334 .contact-form input[type="tel"], 
					    .page-id-334 .contact-form input[type="url"] {
		width: auto;
	}
	
	.page-id-334 .contact-form select {
		width: 100%;
	}
}

/* Remove margin-top on homepage cover block | 35440223-hc EH */
.wp-container-13 .alignfull {
	margin-top: unset;
}
/* Gjør bilder responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Gjør video responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gjør navigasjonsmenyen responsive */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    flex: 1 1 100%; /* Bruk 100% bredde på små skjermer */
}

/* Gjør tekst responsive */
p {
    font-size: 16px; /* Standard tekststørrelse */
}

@media screen and (max-width: 768px) {
    /* Endre stiler for mindre skjermer */
    p {
        font-size: 14px; /* Reduser tekststørrelsen på mindre skjermer */
    }
}

/* Gjør bilder responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Gjør video responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gjør navigasjonsmenyen responsive */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    flex: 1 1 100%; /* Bruk 100% bredde på små skjermer */
}

/* Gjør tekst responsive */
p {
    font-size: 16px; /* Standard tekststørrelse */
}

@media screen and (max-width: 768px) {
    /* Endre stiler for mindre skjermer */
    p {
        font-size: 14px; /* Reduser tekststørrelsen på mindre skjermer */
    }
}
/* --- HEADER: Plasser logo og hamburger på samme linje --- */
@media (max-width: 768px) {

    /* Gjør headeren fleksibel */
    header.site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Hindrer at logo og meny havner på hver sin linje */
    header.site-header .site-branding,
    header.site-header .main-navigation {
        width: auto;
        flex: 0 0 auto;
    }

    /* Justerer logo-størrelse på mobil */
    header.site-header .site-branding img {
        max-height: 55px;
        width: auto;
    }

    /* Flytt hamburger-ikonet til høyre */
    .menu-toggle {
        margin-left: auto;
    }

    /* Gjør mobilmenyen penere */
    .main-navigation ul {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .main-navigation ul li a {
        padding: 12px 0;
        font-size: 17px;
        border-bottom: 1px solid #eee;
    }

    .main-navigation ul li:last-child a {
        border-bottom: none;
    }
}
/* MOBIL: komprimer hovedheader */
@media (max-width: 768px) {
  header,
  .site-header,
  .header,
  .main-header,
  .navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: auto !important;
  }

  /* Container inni header */
  header .container,
  .site-header .container,
  .header .container,
  .main-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Logo */
  .custom-logo,
  .site-logo img,
  .custom-logo-link img,
  .site-branding img,
  .navbar-brand img {
    max-height: 34px !important;
    width: auto !important;
    height: auto !important;
  }

  /* Luft rundt logo */
  .site-branding,
  .custom-logo-link,
  .logo,
  .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Menyknapp / hamburger */
  .menu-toggle,
  .mobile-menu-toggle,
  .nav-toggle,
  button[aria-expanded] {
    padding: 6px 8px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* Menylenker dersom de vises i headeren på mobil */
  nav a,
  .menu a,
  .main-navigation a,
  .navbar a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
  }
}
@media (max-width: 768px) {
  header,
  .site-header,
  .header,
  .main-header,
  .navbar {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .custom-logo,
  .site-logo img,
  .custom-logo-link img,
  .site-branding img,
  .navbar-brand img {
    max-height: 28px !important;
  }
}
/* Desktop + generell header */
header {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

header img {
  max-height: 54px !important;
  width: auto !important;
  height: auto !important;
}

header a {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Mobil */
@media (max-width: 768px) {
  header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  header img {
    max-height: 34px !important;
  }

  header a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}