#mobile-menu-toggler {
  display: none;
  z-index: 9998;
}

nav.mobile-menu {
  height: 100%;
  background-color: white;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  transition: all 0.3s ease-out;
}

body:has(nav.mobile-menu:not(.hidden)){
  overflow: hidden;
}

nav.mobile-menu .m-nav-list{
  list-style-type: none;
  margin-left: 1rem;
  margin-top: 2rem;
}

nav.mobile-menu .m-nav-list li {
  margin-bottom: 1rem;
}

nav.mobile-menu.hidden {
  right: -100%;
}

nav.mobile-menu #btn-close-mm {
  position: relative;
  top: 10px;
  right: 20px;
  text-align: right;
}

/* mobile overlay */

.m-overlay {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(94, 94, 94, 0.15);
  pointer-events: fill;
}

.m-overlay.hidden {
  top: -100%;
}



@media only screen and (max-width: 425px) {
  #mobile-menu-toggler {
    display: block;
  }

  nav.mobile-menu {
    width: 50%;
  }
}

@media only screen and (min-width: 426px) and (max-width: 768px) {
  #mobile-menu-toggler {
    display: block;
  }

  nav.mobile-menu {
    width: 30%;
  }
}