.modal-wrapper {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s 0.4s, opacity 0.4s 0s ease;
}
.modal-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s 0s, opacity 0.4s 0s ease;
}
.modal-wrapper * {
  box-sizing: border-box;
}

.modal {
  position: fixed;
  z-index: 210;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  min-width: 480px;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.modal-close {
  cursor: pointer;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 21px;
  height: 21px;
  line-height: 19px;
  border-radius: 100%;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}
.modal-close:hover {
  color: #fff;
  background-color: #777;
}

.modal-title {
  padding-right: 31.5px;
}

.modal-content {
  max-width: 100%;
  transition-property: width, height;
  transition-duration: 0.4s;
}
