.modal-container {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-out;
  z-index: 10001;
}

.modal-container::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
}

.modal-body {
  position: relative;
  display: inline-block;
  /* vertical-align: middle; */
  max-width: 600px;
  max-height: 350px;
  width: 90%;
}

.modal-close {
  position: absolute;
  /* top: calc(100% - 80px); */
  top: -240px;
  right: 0px;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  font-size: 30px;
  /* font-weight: bold; */
  color: #fff;
  background: rgba(0, 0, 0, 80%);
  cursor: pointer;
  text-align: center;
}

@media screen and (max-width: 580px) {
  .modal-close {
    top: -215px;
  }
}

@media screen and (max-width: 460px) {
  .modal-close {
    top: -175px;
  }
}

.modal-content {
  position: absolute;
  /* vertical-align: middle; */
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 600px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-content img {
  max-width: 100%;
}
