/* ================================
   MOBILE SIDE MENU
   zoom_the_world
   ================================ */

/* Overlay */
#mobile-sidemenu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* Menu Container */
#mobile-sidemenu{
  position: fixed;
  top: 0;
  right: 0;
  width: 82vw;
  max-width: 360px;
  height: 100vh;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  z-index: 9998;

  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);

  display: flex;
  flex-direction: column;
  padding: 22px;
}

/* Active states */
#mobile-sidemenu.active{
  transform: translateX(0);
}

#mobile-sidemenu-overlay.active{
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.ms-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.ms-title{
  font-size: 1.2rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  opacity: .9;
}

#ms-close{
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: .8;
}

/* Nav */
.ms-nav{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.ms-nav a{
  text-decoration: none;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: .04em;
  padding: 10px 0;
  position: relative;
  opacity: .9;
  transition: all .25s ease;
}

.ms-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:1px;
  background:#fff;
  transition:.3s;
}

.ms-nav a:hover::after{
  width:100%;
}

/* Footer */
.ms-footer{
  margin-top: auto;
  padding-top: 30px;
  opacity: .6;
}

.ms-brand{
  font-size: .9rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ================================
   MOBILE ONLY
   ================================ */
@media(min-width: 768px){
  #mobile-sidemenu,
  #mobile-sidemenu-overlay{
    display:none !important;
  }
}
