.spb-popup-main-wrapper {
  position: fixed;
  z-index: 999999;
  webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 1s; /* Firefox < 16 */
  -ms-animation: fadein 1s; /* Internet Explorer */
  -o-animation: fadein 1s; /* Opera < 12.1 */
  animation: fadein 1s;
}
.spb_overlay {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.spb-controls {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 999999;
}
.spb_close {
  cursor: pointer;
  float: right;
  font-size: 30px;
  font-weight: 600;
  line-height: 0.6;
  color: #707070;
  background: transparent;
}
.spb_close:hover {
 color: #fff;
}

.spb_top_left {
  top: 0;
  left: 0;
}
.spb_top_right {
  top: 0;
  right: 0;
}
.spb_bottom_left {
  bottom: 0;
  left: 0;
}
.spb_bottom_right {
  bottom: 0;
  right: 0;
}

.spb_top_bar {
  right: 0;
  top: 0;
  left: 0;
}
.spb_bottom_bar {
  right: 0;
  bottom: 0;
  left: 0;
}
.spb_left_bar {
  top: 0;
  bottom: 0;
  left: 0;
}
.spb_right_bar {
  top: 0;
  bottom: 0;
  right: 0;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}