body.modal-open {
  overflow: hidden;
}
.modal {
  z-index: 200;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--primary-background-color-faded);
}
.modal.open {
  display: grid;
  place-items: center;
}

.modal-body {
  min-width: 350px;
  max-width: 90%;
  background-color: var(--secondary-background-color);
  padding: 1rem;
  margin: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 2rem;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "modal-title modal-close"
    "modal-content modal-content";
}

.modal-body .modal-title {
  grid-area: modal-title;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.modal-body .modal-close {
  grid-area: modal-close;
  cursor: pointer;
  place-self: center;
  font-size: 1.5rem;
}

.modal-body .modal-content {
  grid-area: modal-content;
}
