[data-modal] {
  cursor: pointer;
}

.modal {
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease-out, visibility .2s ease-out;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal img {
  position: absolute;
  top: 3em;
  right: 3em;
  cursor: pointer;
	width: 2em !important;
	box-shadow: none !important;
}

.modal > div {
  width: 55em;
  padding: .5em;
  background-color: #fff;
  border-radius: 0.15em;
  transform: translateY(-10%);
  transition: transform .2s ease-out;
  box-shadow: 0 0.1em 0.2em rgba(0,0,0,0.2);
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal.open > div {
  transform: translateY(0%);
}

@media only screen and (max-width: 640px) {
  .modal > div {
    width: 90%;
  }
}

.custom-modal > div {
  width: auto;
  padding: 1.5em 2em;
}

.custom-modal > div p {
  margin-bottom: 0;
}