/* Hide mobile menu on large screens */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
  background: transparent;
}
button#hamburgerMenu:hover,
button#hamburgerMenu:focus {
  background: transparent;
}

/* Ensure mobile menu can escape any container constraints 
.mobile-menu {
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  z-index: 99999 !important;
}*/

.hamburger.shrink {
  /*transform: scale(0.8) !important;*/
  transform-origin: bottom center;
}
.hamburger,
.hamburger.open {
  /*transform: scale(0.8);*/
  transform-origin: bottom center;
  position: relative;
  background: #0000000a;
  border: 1px solid #000;
  border-radius: 5em;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: border-radius 0.5s cubic-bezier(.7,1.7,.7,1), width 0.5s cubic-bezier(0.68, 0.02, 0.29, 0.99), height 0.5s cubic-bezier(0.71, 0.02, 0.33, 1);
  z-index: 2;
  bottom: 0;
  margin-bottom: 20px;
  overflow: visible;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  filter: url(#liquid-glass);
}
.hamburger.open {
  width: 100vw;
  height: 60vh;
  border-radius: 0;
  transition:
    border-radius 0.3s cubic-bezier(.7,1.7,.7,1),
    width 0.3s cubic-bezier(.7,1.7,.7,1),
    height 0.3s cubic-bezier(.7,1.7,.7,1);
    margin-bottom: 0;
}
.hamburger-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
  padding-top: 15px;
}
.hamburger.open .hamburger-lines {
  opacity: 0;
  pointer-events: none;
}
.hamburger-line {
  border: 1px solid white;
  display: block;
  height: 5px;
  background: #111;
  border-radius: 2px;
  margin: 5px 0;
  transition: background 0.3s, width 0.3s;
}
.line-top, .line-bot {
  width: 30px;
  animation: otherline-move 1.2s ease-in-out infinite alternate;
}
.line-mid {
  width: 18px;
  position: relative;
  z-index: 2;
  animation: midline-move 1.2s ease-in-out infinite alternate;
}
@keyframes midline-move {
  0%   { transform: translateX(-18px); }
  100% { transform: translateX(18px); }
}
@keyframes otherline-move {
  100%   { transform: translateX(10px); }
  0% { transform: translateX(-10px); }
}
/* Funky spinning cross, top-right, always above menu */
.close-cross {
  position: fixed;
  right: 30px;
  bottom: calc(60vh - 80px);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 100002;
  transition: opacity 0.1s;
  background: none;
}
span.cross-line.cross-long, span.cross-line.cross-short {
  pointer-events: none;
}
.hamburger.open ~ .close-cross {
  opacity: 1;
  pointer-events: auto;
  animation: cross-spin 2.5s linear infinite;
}
@keyframes cross-spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.cross-line {
  position: absolute;
  left: 50%; top: 50%;
  background: #111;
  border-radius: 2px;
  transform-origin: center center;
  transition: background 0.3s;
}
.cross-long {
  width: 36px;
  height: 5px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px 0 #1112;
}
.cross-short {
  width: 20px;
  height: 5px;
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.2);
  animation: cross-short-wobble 1.2s cubic-bezier(.7,1.7,.7,1) infinite alternate;
}
@keyframes cross-short-wobble {
  0% { width: 20px; }
  50% { width: 28px; }
  100% { width: 20px; }
}
/* Menu nav overlays on top of expanded hamburger */
.mobile-menu-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 0;
  background: transparent;
  border-radius: 0 0 0 0;
  overflow: hidden;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 1;
  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out
}
.mobile-menu-nav.open {
  height: 50vh;
  background: rgba(30,30,30,0.0);
  box-sizing: border-box;
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-nav.closing {
  opacity: 0;
  height: 0;
  pointer-events: none;
}
.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.1s;
}
.mobile-menu-nav.closing ul {
  opacity: 0;
}
.mobile-menu-nav li {
  margin: 18px 0;
}
.mobile-menu-nav a {
  color: #111;
  font-family: var(--e-global-typography-1c54370-font-family), Serif;
  font-size: var(--e-global-typography-1c54370-font-size);
  font-weight: var(--e-global-typography-1c54370-font-weight);
  text-transform: var(--e-global-typography-1c54370-text-transform);
  line-height: var(--e-global-typography-1c54370-line-height);
  letter-spacing: var(--e-global-typography-1c54370-letter-spacing);
  text-decoration: none;
  text-align: center;
  display: block;
  width: 100%;
  transition: color 0.3s;
}

/* --- COLOR SWAP: WHITE WHEN .is-inverted IS PRESENT --- */
.hamburger.is-inverted .hamburger-line {
  background: #fff;
}
.mobile-menu-nav.is-inverted a {
  color: #fff !important;
}
.close-cross.is-inverted .cross-line {
  background: #fff;
  box-shadow: 0 0 8px 0 #fff2;
}