/*body.modal-open {overflow: hidden;}*/

.blocker {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 4;
  box-sizing: border-box;
  background-color: var(--color2);
  text-align: center;
}
.blocker:before{
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}
.blocker.behind {
  background-color: transparent;
}
.modal {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 4;
  width: 100%;
  min-height:100vh;
  box-sizing: border-box;
  background: var(--color2);
  padding:0;
  text-align: left;
}

.modal a.close-modal {
  position: fixed;
  top: 0;
  right: 0;
  display: block;
  width: 4em;
  height: 4em;
  text-indent: -9999px;
  opacity:1;
  z-index:9999999;
}

.modal a.close-modal:before, .modal a.close-modal:after {position:absolute;top:2em;right:1.5em;content:'';display:block;width:1.1em;height:1px;background:var(--color1);}
.modal a.close-modal:before {transform:rotate(-45deg);}
.modal a.close-modal:after {transform:rotate(45deg);}

.modal a.close-modal:hover {opacity:1;}
.modal a.close-modal:hover:before, .modal a.close-modal:hover:after {height:2px;}

.modal-spinner {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--color2); /* url("../img/loading.gif") no-repeat center center; */
  background-size:32px 32px;*/
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}
 
.modal-spinner:before, .swiper-container.center:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border-radius: 50%;
  border: 1px solid var(--color2);
  border-top-color: var(--color1);
  animation: spinner .6s linear infinite;
  opacity:1;;
}


@media only screen and (max-width:940px) {
    
  .modal a.close-modal:before,
  .modal a.close-modal:after {top:1.7em;right:1.1em;}

  /*
  .modal:before {
    content:'back';
    position:absolute;
    top:.65em;
    left:2em;
    color:#8a8a81;
  }
  
  .modal a.close-modal:hover {opacity:.4;}
  
  .modal a.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    left:0;
    display: block;
    width:100%;
    height:2.7em;
  }
  .modal a.close-modal:before, .modal a.close-modal:after {
    transform-origin:top left;
    top:1.3em;
    right:auto;
    left:1.2em;
    width:.5em;
  }
  */
}

