.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  z-index: 100000;
  display: flex;

  padding: 0;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
}
.modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.modal-bg {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
}
.modal-container {
  background: #fff;
  position: relative;
}
@media (min-width: 768px) {
  .modal-container {
    min-width: 500px;
  }
}
@media (max-width: 767px) {
  .modal-container {
    width: 90vw;
  }
}
.modal-container img {
  width: 100%;
  display: block;
}
.modal__wrapper {
  padding: 30px;
}
.modal__wrapper .title {
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .modal__wrapper .title {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  .modal__wrapper .title {
    font-size: 20px;
  }
}
.modal__wrapper p {
  font-size: 16px;
  margin: 10px 0 0 0;
  padding: 0;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  line-height: 40px;
  outline: none;
  appearance: none;
  background: none;
  border: 0px;
  font-weight: bold;
  cursor: pointer;
  background: red;
}
.modal-close svg {
  width: 10px;
}
.modal .modal-button {
  display: inline-block;
}
