.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  z-index: 1000;
  display: block;
  opacity: 0; 
  /*background-color: rgba(0, 12, 34, 0.1);*/
  background-color: rgba(255, 255, 255, .8);
  -webkit-transition: opacity .2s ease-in;
  -moz-transition: opacity .2s ease-in;
  transition: opacity .2s ease-in;
  overflow-y: auto;
  overflow-x: hidden;
}


.modal-dialog {
  position: relative;
  margin: 1.87rem auto;
  width: auto;
}

.modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  outline: 0;
  padding: .85rem;
  border-radius: .65rem;
  box-shadow: var(--flex-shadow-modal);
  border: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  margin-top: -.85rem;
  border-bottom: 1px solid #eee;
  margin-left: -.85rem;
  margin-right: -.85rem;
  padding-left: .85rem;
  padding-right: .85rem;
  height: 2.5rem;
}

.modal-header > .title {
  flex-grow: 1;
  overflow: hidden;
}

.modal-header > .title > h3 {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header > .close {
  justify-self: flex-end;
}

.modal-header > .close > span {
  font-size: 1.75rem;
  color: var(--flex-text-muted);
  cursor: pointer;
  opacity: .75;
  -webkit-transition: opacity .2s ease-in;
  -moz-transition: opacity .2s ease-in;
  transition: opacity .2s ease-in;
  line-height: 100%;
}

.modal-header > .close:hover > span {
  opacity: 1;
}

.modal-body {
  position: relative;
}

.modal.show {
  pointer-events: auto;
  opacity: 1;
}

.modal.hide {
  pointer-events: none;
  opacity: 0; 
}

.modal-sm { max-width: 300px; }

.modal-md { max-width: 550px; }

.modal-lg { max-width: 800px; }

.modal-xl { max-width: 1140px; }

@media only screen and (max-width: 800px) {
  .mobile-expand {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .modal-dialog {
    margin: 0; 
    border: 0;
  }

  .modal-content {
    border: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  
}