.modal-active {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
}
.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
}
.modal-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}
.modal {
  display: flex;
  position: relative;
  width: 90%;
  max-width: 90%;
  max-height: 85%;
  z-index: 9999;
}
.modal-close-btn {
  position: absolute;
  background-color:  transparent;
  line-height: 0;
  padding: 0px;
  border: transparent;
  color: #fff;
  right: 30px;
  top: 30px;
  cursor: pointer;
	z-index: 9;
}

.modal-content {
  width: 100%;
  background-color: #FFF;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.demo-modal {
  max-width: 800px;
}
.demo-modal-content {
  padding: 20px;
}
@media (max-width: 1280px) {
.modal-close-btn {
    position: fixed;
}
}
@media (max-width: 640px) {
.modal-close-btn {
    position: fixed;
    right: 20px;
    top: 15px;
}
}