.overlay{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99998;
  background-color: #000;
  display: none;
  opacity: 0;
  transition: all .15s linear;
}
.overlay.in{
    display: block;
    opacity: .5;
  }
.layer{
  display: none;
  overflow: hidden;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  transition: all .15s linear;
}
.layer .close{
  background-color: #fff;
  border: 0;
  position: absolute;
  top: -31px;
  right: 10px;
  padding: 3px 11px;
}
.layer .layer-content{
  max-width: 550px;
  margin: 50px auto;
  position: relative;
  padding: 0 10px;
}
.layer .layer-body{
  background-color: #fff;
  width: 100%;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #fff;
}
.layer.in{
  display: block;
  opacity: 1;
}