.modal {
  border-radius: 15px;
  transform: translateY(-50%) !important;
  top: 50% !important;
  max-height: 95% !important;
}

.modal .closeBtn {
  cursor: pointer;
}

.modal .modalHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--off-white);
  z-index: 1004; /* 1 greater than modal */
}

.modal .modalTitle {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal .modalFooter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  bottom: 0;
  background-color: var(--off-white);
}

.modal .sticky {
  position: sticky;
}

.modal.full {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
}

.modal.full.noFooterScroll {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.modal.full .modalContent {
  position: relative;
}

.modal.full .modalContent.noPadding {
  padding: 0;
}

.modal.full .modalContent > .content {
  height: 100%;
}

.modal.full > * {
  background-color: transparent;
}

.modal.sidePanelOperable {
  position: absolute;
}

.modal.sidePanelOperable + .modal-overlay {
  position: absolute;
  background: white;
}

/* @responsive behavior for medium to large screens */
@media only screen and (min-width: 960px) {
  .modal.fit {
    width: fit-content !important;
  }

  .modal.sml {
    width: 50% !important;
  }

  .modal.med {
    width: 70% !important;
  }

  .modal.lrg {
    width: 90% !important;
  }
}

/* @responsive behavior for small screens */
@media only screen and (max-width: 959px) {
  .modal {
    width: 95% !important;
  }
}
