.modal {
  display: none;
}

.vanilla-modal .modal {
  display: block;
  position: fixed;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s, z-index 0s 0.2s;
  text-align: center;
  overflow: hidden;
  overflow-y: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.vanilla-modal .modal > * {
  display: inline-block;
  white-space: normal;
  vertical-align: middle;
  text-align: left;
}

.vanilla-modal .modal:before {
  display: inline-block;
  overflow: hidden;
  width: 0;
  height: 100%;
  vertical-align: middle;
  content: "";
}

.vanilla-modal.modal-visible .modal {
  z-index: 99;
  opacity: 1;
  transition: opacity 0.2s;
}

.modal-inner {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  z-index: -1;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s, z-index 0s 0.2s;
}
.modal-visible .modal-inner {
  z-index: 100;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s, transform 0.2s;
}





.modal-container{
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
[data-modal-close] {
  position: absolute;
  z-index: 2;
  right: -40px;
  top: -40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
[data-modal-close]::before, [data-modal-close]::after {
	content: '';
	height: 2px;
	width: 100%;
	display: block;
	position: absolute;
	top: 50%;
	left: 0;
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	background-color: #FFFFFF;
}
[data-modal-close]::after {
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
}


@media screen and (max-width: 767px) {
.modal-container{
  width: 100%;
}
[data-modal-close] {
  right: 0px;
}
}