.modal-vid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 2s ease;
  -moz-transition: all 2s ease;
  -ms-transition: all 2s ease;
  -o-transition: all 2s ease;
  transition: all 2s ease;
}

.modal-vid .modal-content {
  height: 100%;
  width: 100%;
  padding: 3em 5%;
  text-align: left;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-is-visible .modal-vid {
  z-index: 999;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  -webkit-transition: all 2s ease;
  -moz-transition: all 2s ease;
  -ms-transition: all 2s ease;
  -o-transition: all 2s ease;
  transition: all 2s ease;
}
.modal-is-visible .modal-vid .modal-content {
  -webkit-overflow-scrolling: touch;
}
@media only screen and (min-width: 768px) {
  .modal-vid .modal-content {
    padding: 4em 10%;
  }
}
@media only screen and (min-width: 1170px) {
  .modal-vid .modal-content {
    padding: 6em 20%;
  }
}

.modal-action {
  position: relative;
}
.modal-action .btn, .modal-action .modal-bg {
  display: inline-block;
  height: 4em;
  background-color: #000;
}
.modal-action .btn {
  width: 100%;
  height: auto;
  position: relative;
  cursor: pointer;
  text-align: center;
  font-family: 'AvenirLT-Book';
  color: #000;
  background-color: #000;
  border-radius: 0;
  white-space: nowrap;
  font-size: 16px;
  line-height: 47px;
  font-weight: 999;
  padding: 0;
  border:none;
}

.modal-action .modal-bg {
  position: absolute;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 3s ease;
  -moz-transition: all 3s ease;
  -ms-transition: all 3s ease;
  -o-transition: all 3s ease;
  transition: all 3s ease;
}
.modal-action .modal-bg.is-visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: all 3s ease;
  -moz-transition: all 3s ease;
  -ms-transition: all 3s ease;
  -o-transition: all 3s ease;
  transition: all 3s ease;
}

.modal-close {
  position: fixed;
  z-index: 999;
  top: 20px;
  right: 5%;
  height: 50px;
  width: 50px;
  background: url(../img/icon-close.svg) no-repeat center center;
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.modal-is-visible .modal-close {
  visibility: visible;
  opacity: 1;
  -webkit-transition: all 0.5s ease;
  -moz-transition:all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
@media only screen and (min-width: 768px) {
  .modal-close {
    top: 70px;
  }
}

.modal-is-visible{
  -webkit-transition: all 3s ease;
  -moz-transition: all 3s ease;
  -ms-transition: all 3s ease;
  -o-transition: all 3s ease;
  transition: all 3s ease;
}
