.modal {
  display: none;
  margin: 2rem;
  padding: 2rem;
  background: rgb(55,71,79);
  background: linear-gradient(0deg, rgba(55,71,79,1) 0%, rgba(84,110,122,1) 100%);
  color: white;
  border-radius: 3px;
  box-shadow: 5px 5px 20px -10px gray;
}
.modal-light {
  padding: 1rem;
  margin: 1rem;
  background: whitesmoke;
  border: 2px solid lightgray;
}
.modal-open {
  display: block;
  max-height: calc(100vh - 4rem);
  max-width: calc(100vw - 4rem);
  height: auto !important;
  width: auto !important;
  position: static !important;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
.overlay-attach {
  position: absolute;
  height: auto;
}
.overlay-center {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
body.disable-scroll {
  width: calc(100vw - 17px);
  height: 100vh;
  padding-right: 17px;
  position: fixed;
}

.modal > header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.modal > header > *:first-child {
  margin: 0;
}
.modal > footer {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2rem;
}
.modal-attach {
  position: absolute !important;
  margin-left: 1rem;
  margin-top: -.5rem;
}
.modal-handler-active {
}