/* Smart Drawer
   ========================================================================== */
#sd-menu {
  width: 30%;
  height: 100%;
  color: #333;
  overflow: auto;
  position: fixed;
  left: -30%;
  z-index: 999;
  transition: transform 0.3s ease-out;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 640px) {
  #sd-menu {
    width: 90%;
    left: -90%;
    top: 0;
    height: 100%;
  }
}
@media screen and (max-width: 320px) {
  #sd-menu {
    width: 100%;
    left: -100%;
    top: 0;
    height: 100%;
  }
}
#sd-menu.block {
  transform: translate3d(100%, 0, 0);
}
#sd-menu .close {
  text-align: center;
  cursor: pointer;
  display: block;
  padding: 0;
  z-index: 120;
  background: #fff;
  border-radius: 5px;
  float: left;
  left: 5px;
  width: 35px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
#sd-menu .close img {
  width: 35px;
  margin: 0;
}
@media screen and (max-width: 640px) {
  #sd-menu .close img {
    width: 25px;
    margin: 3.5px;
  }
}
.sd-trigger {
  color: #333;
  text-align: center;
  cursor: pointer;
  display: block;
  width: 35px;
  margin: 0;
  text-align: left;
  float: left;
  position: absolute;
  left: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.sd-trigger img {
  width: 35px;
}
@media screen and (max-width: 640px) {
  .sd-trigger img {
    width: 25px;
  }
}
#sd-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 900;
  transition: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
}
#sd-overlay.block {
  right: 0;
  opacity: 1;
}