.popup {
  display: none;
}
.popup-wrap .popup {
  display: block;
}
.popup-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  opacity: 0;
  filter: alpha(opacity=0);
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
}
.popup-wrap.open {
  opacity: 1;
  filter: alpha(opacity=100);
}
.popup-dark {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
}
.popup-light {
  width: 820px;
  position: absolute;
  left: -410px;
  margin-left: 50%;
  background: #fff;
  z-index: 101;
}
.popup-size-large .popup-light {
  width: 1100px;
  left: -550px;
}
.popup-size-small .popup-light {
  width: 500px;
  left: -250px;
}
.popup-inner {
  margin: 45px 55px;
}
.popup-close {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}
.popup-close .fa {
  margin-left: 5px;
  position: relative;
  top: 2px;
  font-size: 20px;
}
.popup-loader {
  padding: 20px 0;
}
.popup-loader.fa {
  font-size: 30px;
  display: block;
  text-align: center;
}
.popup-loader.fa-spin {
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
}

.popup-adaptive {
  text-align: center;
}
.popup-adaptive .popup-light {
  position: relative;
  left: auto;
  width: auto;
  display: inline-block;
  max-width: 100%;
  margin: 0;
}
.popup-adaptive .popup-inner img {
  max-width: 100%;
  max-height: inherit;
  width: auto;
  height: auto;
  vertical-align: bottom;
}