body:not(.has-block-hero-image):not(.is-menu-open) header.wp-block-template-part {
  position: relative;
  display: block;
  width: 100%;
}

.block-header-mobile-padder {
  display: none;
  height: 0;
  overflow: hidden;
}

@media (max-width: 1000px) {
  body:not(.has-block-hero-image) .block-header-mobile-padder {
    display: block;
    height: 100px;
  }
}

body.has-headroom .block-header-mobile-padder {
  display: block;
}

@media (min-width: 1001px) {
  body.has-headroom .block-header-mobile-padder {
    display: none;
  }
}

body.has-block-hero-image .block-header-mobile-padder {
  height: 0 !important;
  min-height: 0 !important;
}

.block-header-mobile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  z-index: 200;
  margin: 0 auto 1.5em auto;
  padding-left: var(--padding);
  padding-right: var(--padding);
  /*   &.headroom.headroom--not-top {
    will-change: transform;
    transition: transform 0.25s ease-in-out;
  } */
}

@media (min-width: 1001px) {
  .block-header-mobile {
    display: none;
  }
}

body.has-block-hero-image:not(.is-menu-open) .block-header-mobile.headroom--top {
  color: white;
}

body.has-block-hero-image:not(.is-menu-open) .block-header-mobile.headroom--top a {
  color: white;
}

body.has-block-hero-image:not(.is-menu-open) .block-header-mobile.headroom--top svg {
  fill: white;
}

body.has-block-hero-image:not(.is-menu-open) .block-header-mobile.headroom--top svg path {
  fill: white;
}

body.has-block-hero-image:not(.is-menu-open) .block-header-mobile.headroom--top .mobile-top > .other .hamburger-button .hamburger-button-wrapper > i {
  background-color: white;
}

.block-header-mobile.headroom {
  --header-headroom-hide-y: -100%;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--fg);
}

.block-header-mobile.headroom.headroom--not-top {
  background-color: var(--bg);
  box-shadow: rgba(0, 0, 0, 0.03) 0px 5px 25px;
}

body:not(.has-block-hero-image) .block-header-mobile.headroom.headroom--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  transform: none !important;
}

body:not(.has-block-hero-image) .block-header-mobile.headroom.headroom--not-top, body.has-block-hero-image .block-header-mobile.headroom.headroom--not-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body:not(.has-block-hero-image) .block-header-mobile.headroom.headroom--top, body.has-block-hero-image .block-header-mobile.headroom.headroom--top {
  transition: none !important;
}

.block-header-mobile.headroom.headroom--not-top.headroom--pinned {
  transition: transform 0.25s ease-in-out;
  transform: translate3d(0, 0, 0);
}

.block-header-mobile.headroom.headroom--not-top:not(.headroom--pinned) {
  transform: translate3d(0, var(--header-headroom-hide-y), 0);
}

body.is-menu-open .block-header-mobile {
  background: var(--bg);
}

.block-header-mobile > * {
  margin-block-start: 0;
}

body.is-menu-open .block-header-mobile {
  margin-bottom: 0;
}

.block-header-mobile > * {
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;
}

.block-header-mobile > .mobile-top {
  display: flex;
  height: 100px;
  align-items: center;
}

.block-header-mobile > .mobile-top > .logo {
  position: relative;
}

.block-header-mobile > .mobile-top > .logo img,
.block-header-mobile > .mobile-top > .logo svg {
  width: 6.25rem;
  height: auto;
  margin: 0 auto;
  display: block;
  fill: var(--fg);
  stroke: none !important;
  position: relative;
  top: -1px;
  background: transparent;
  max-width: 100%;
}

.block-header-mobile > .mobile-top > .logo:hover svg {
  fill: var(--c1);
}

.block-header-mobile > .mobile-top.headroom.headroom--top > .mobile-top > .logo img,
.block-header-mobile > .mobile-top.headroom.headroom--top > .mobile-top > .logo svg {
  fill: white;
  background: transparent;
}

.block-header-mobile > .mobile-top.headroom.headroom--top > .mobile-top > .logo:hover svg {
  fill: white;
  opacity: 0.75;
}

.block-header-mobile > .mobile-top > .other {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: end;
}

.block-header-mobile > .mobile-top > .other > .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline;
  position: relative;
  top: -1px;
}

.block-header-mobile > .mobile-top > .other > .menu > li {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  padding-left: 1em;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
  font-size: 1.15em;
}

.block-header-mobile > .mobile-top > .other > .menu > li::marker {
  content: none;
}

.block-header-mobile > .mobile-top > .other > .menu > li > a {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
}

.block-header-mobile > .mobile-top > .other > .menu > li > a:hover {
  color: var(--fg-hover);
}

.block-header-mobile > .mobile-top > .other > .hamburger {
  display: block;
  text-align: right;
  margin-right: -1.15em;
}

.block-header-mobile > .mobile-top > .other > .hamburger .hamburger-button-wrapper {
  position: relative;
}

.block-header-mobile > .mobile-menu {
  flex: 1;
  display: none;
  width: 100%;
  justify-content: center;
  flex-direction: column;
}

.block-header-mobile > .mobile-menu > .theme-switcher {
  width: 4em;
  margin-top: 2em;
}

.block-header-mobile > .mobile-menu > .theme-switcher svg {
  height: 2em;
}

.block-header-mobile > .mobile-menu > .menus {
  width: 100%;
  padding-bottom: 1em;
}

.block-header-mobile > .mobile-menu > .menus .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  height: 0;
  transform: translateY(-1em) scale(0.8);
  overflow: hidden;
  transition: opacity var(--anim-speed) ease-in-out, transform var(--anim-speed) ease-in-out;
}

.block-header-mobile > .mobile-menu > .menus .sub-menu a {
  text-decoration: underline;
  text-underline-offset: 0.6em;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
}

.block-header-mobile > .mobile-menu > .menus .sub-menu .current-menu-item > a {
  text-decoration-color: var(--fg);
}

.block-header-mobile > .mobile-menu > .menus .sub-menu:focus-within,
.block-header-mobile > .mobile-menu > .menus .is-open > .sub-menu {
  display: block;
  opacity: 1;
  height: auto;
  padding-bottom: 2em;
  transform: translateY(0) scale(1);
}

.block-header-mobile > .mobile-menu > .menus > .menu {
  padding: 0;
  margin: 0;
  display: block;
  text-align: center;
  list-style: none;
}

.block-header-mobile > .mobile-menu > .menus > .menu > li {
  display: block;
  position: relative;
  text-align: right;
  padding-right: 18px;
}

.block-header-mobile > .mobile-menu > .menus > .menu > li::marker {
  content: "";
}

.block-header-mobile > .mobile-menu > .menus > .menu > li.lang-fi {
  display: none;
}

.block-header-mobile > .mobile-menu > .menus > .menu > li > button.open-submenu {
  -moz-appearance: none;
       appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 3em;
  height: 3em;
  font-size: clamp(14px, 3vw, 20px);
  cursor: pointer;
  color: var(--fg);
}

.block-header-mobile > .mobile-menu > .menus > .menu > li > button.open-submenu > svg {
  fill: var(--fg);
  width: 30%;
  height: auto;
}

.block-header-mobile > .mobile-menu > .menus > .menu > li.is-open > button.open-submenu > svg {
  transform: rotate(180deg);
}

.block-header-mobile > .mobile-menu > .menus > .menu > li > a {
  text-decoration: none;
  display: inline-block;
  margin-bottom: -20px;
  text-transform: uppercase;
  font-size: clamp(30px, 18vw, 70px);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  font-family: "instrument-sans-variable", sans-serif;
  text-transform: none;
  font-weight: 500;
}

.block-header-mobile > .mobile-menu > .menus > .menu > li.current-menu-item > a, .block-header-mobile > .mobile-menu > .menus > .menu > li.current-page-ancestor > a {
  text-decoration-color: var(--fg);
}

.block-header-mobile > .mobile-menu > .menus > .menu > li:last-child > a {
  margin-bottom: 0;
}

.block-header-mobile .hamburger-button {
  display: block;
  width: 3em;
  height: 3em;
  position: relative;
  background: none;
  border-radius: 0;
  border: none;
  margin-right: 0.5em;
  margin-left: 1.25em;
}

.block-header-mobile .hamburger-button .hamburger-button-wrapper {
  display: block;
  width: var(--mytheme-hamburger-width, 1.85em);
  height: var(--mytheme-hamburger-height, 0.75em);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.block-header-mobile .hamburger-button .hamburger-button-wrapper > i:nth-child(1) {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--mytheme-hamburger-bar-height, 1px);
  background-color: var(--fg-headline);
  transition: all 0.2s ease-in-out;
}

.block-header-mobile .hamburger-button .hamburger-button-wrapper > i:nth-child(2) {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mytheme-hamburger-bar-height, 1px);
  background-color: var(--fg-headline);
  transition: all 0.2s ease-in-out;
}

.block-header-mobile .hamburger-button .hamburger-button-wrapper > i:nth-child(3) {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--mytheme-hamburger-bar-height, 2px);
  background-color: var(--fg-headline);
  transition: all 0.2s ease-in-out;
}

.block-header-mobile.is-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: -1px;
  background: var(--bg);
  z-index: 2000;
  overflow: auto;
}

.block-header-mobile.is-open > .mobile-menu {
  display: flex;
  align-items: end;
}

.block-header-mobile.is-open .hamburger-button > .hamburger-button-wrapper > i:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.block-header-mobile.is-open .hamburger-button > .hamburger-button-wrapper > i:nth-child(2) {
  top: 50%;
  transform: rotate(-45deg);
}

.block-header-mobile.is-open .hamburger-button > .hamburger-button-wrapper > i:nth-child(3) {
  opacity: 0;
}

.block-header-mobile .custom-social-media {
  font-size: 1.4em;
  margin-top: 30px;
  --some-icon: var(--fg);
  --some-bg: none;
  --some-hover-icon: var(--bg);
  --some-hover-bg: var(--fg);
}

.block-header-mobile .custom-social-media > li > a {
  border: none;
}

body.is-menu-open {
  overflow: hidden;
}

.mobile-menu .menu > li,
.mobile-menu .custom-social-media,
.mobile-menu .theme-switcher {
  opacity: 0;
  transform: translateY(2em);
}

.is-menu-open .mobile-menu .menu > li,
.is-menu-open .mobile-menu .custom-social-media,
.is-menu-open .mobile-menu .theme-switcher {
  animation: animateMenuElements var(--anim-speed) forwards;
}

@keyframes animateMenuElements {
  0% {
    opacity: 0;
    transform: translateY(2em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
