.modal_popup {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 100%;
  left: -100%;
  -webkit-transition-delay: 0.3s;
		  transition-delay: 0.3s;
}

.modal_popup.active {
  left: 0;
  -webkit-transition-delay: 0s;
		  transition-delay: 0s;
  left: 0;
}

.modal_popup-overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  opacity: 0;
}

.modal_popup.active .modal_popup-overlay {
  opacity: 0.8;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal_popup-content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  -webkit-transform: translateY(100px);
		  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  padding: 15px;
}

.modal_popup.active .modal_popup-content {
  -webkit-transform: translateY(0);
		  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.modal_popup-content:after {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.modal_popup_container {
  display: inline-block;
  position: relative;
  text-align: left;
  background: #fff;
  max-width: 1380px;
  width: 100%;
  vertical-align: middle;
}

.modal_popup_container .embed-responsive {
  width: 100%;
}

.embed-responsive {
  padding: 40px;
  position: relative;
  display: block;
  overflow: auto;
  height: 100%;
}

.modal_popup_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #d90d0d;
  cursor: pointer;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.modal_popup_close:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  margin-left: -10px;
  -webkit-transform: rotate(-45deg);
		  transform: rotate(-45deg);
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.modal_popup_close:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  margin-left: -10px;
  -webkit-transform: rotate(45deg);
		  transform: rotate(45deg);
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.modal_popup_close:hover:before,
.modal_popup_close:hover:after {
  background: #000;
}

.modal_popup-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
}

.modal_popup-align {
  overflow: hidden;
}