.spb-popup-main-wrapper {
  position: fixed;
  padding: 1em 2em;
  border-radius: 0.5em;
  z-index: 999999;
  min-width: 300px;
  min-height: 300px;
  max-height: 85vh;
  overflow-y: auto;
  background-color: rgb(254, 254, 254);
}
@media only screen and (max-width: 768px) {
  .spb-popup-main-wrapper{
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%);
  }
}
.spb_overlay {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(38,43,47,.9);
}
.spb-controls {
  position: absolute;
  right: 5px;
  z-index: 999999;
}
.spb-controls + div[data-block-plugin-id] {
  min-height: 300px;
}
.spb_close {
  float: right;
  margin: 3px;
  padding: 0 10px;
  color: #1571c0;
  background: #fff;
}
.spb_close .icn-x{
  font-size: 1.5em;
}
.spb_top_left {
  top: 2rem;
  left: 2rem;
}
.spb_top_right {
  top: 2rem;
  right: 2rem;
}
.spb_bottom_left {
  bottom: 2rem;
  left: 2rem;
}
.spb_bottom_right {
  bottom: 2rem;
  right: 2rem;
}
.spb_center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.spb_top_center {
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.spb-fade {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.spb-fade.show {
  opacity: 1;
  visibility: visible;
}