#drupal-modal {
  display: flex !important;
  color: inherit;
}
#drupal-modal .modal-header {
  padding: 0;
  border: 0px;
}
#drupal-modal .modal-header .modal-title {
  display: none;
}
#drupal-modal .modal-header .close {
  top: 10px;
  right: -20px;
  opacity: 0.7;
  font-size: 40px;
  position: absolute;
}
#drupal-modal .modal-content {
  border: 0px;
  box-shadow: 0 0;
  -webkit-box-shadow: 0 0;
  background-color: transparent;
}
#drupal-modal.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform 0.5s ease-out;
  -o-transition: -o-transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
  -webkit-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
}
#drupal-modal.modal.in .modal-dialog {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
@media only screen and (min-width: 992px) {
  #drupal-modal .modal-dialog {
    width: 800px;
  }
}
@media only screen and (min-width: 1200px) {
  #drupal-modal .modal-dialog {
    width: 1000px;
  }
}
@media only screen and (max-width: 767px) {
  #drupal-modal .modal-body {
    margin-top: 30px;
  }
  #drupal-modal .modal-header .close {
    top: 0px;
    right: 10px;
    z-index: 10;
  }
}
#drupal-modal .file--type-image {
  text-align: center;
  text-align: -webkit-center;
}

.modal-backdrop {
  transition: all 0.5s;
  background-color: rgba(255, 255, 255, 0.96);
}
.modal-backdrop.in {
  opacity: 1;
}

.ui-widget-overlay {
  background-color: rgba(255, 255, 255, 0.96);
  opacity: 1;
}

.ui-dialog {
  width: auto !important;
  margin: 45px 20px;
  border: 0 !important;
  top: 0 !important;
  color: inherit;
  background: transparent;
  font-family: "Gotham SSm A", "Gotham SSm B", "Century Gothic", "Helvetica", "Arial", "San-serif";
}
.ui-dialog .ui-dialog-titlebar {
  background: transparent;
  display: inline-block;
  position: absolute;
  right: -10px;
  top: -15px;
  border: 0;
  z-index: 101;
}
.ui-dialog .ui-dialog-titlebar span {
  display: none;
}
.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
  position: relative;
  line-height: 1;
  width: auto;
  height: auto;
  font-size: 30px;
  background: transparent;
  border: 0;
  font-family: 'SCADmoa2018icons-v2' !important;
  color: inherit;
  top: 0;
  right: 0;
}
.ui-dialog .ui-dialog-titlebar-close::before {
  content: "\e905";
}
@media only screen and (min-width: 992px) {
  .ui-dialog {
    width: 800px !important;
  }
  .ui-dialog .ui-dialog-titlebar {
    top: 0;
    right: -30px;
  }
}
@media only screen and (min-height: 992px) {
  .ui-dialog {
    margin-top: 75px;
  }
}
@media only screen and (min-width: 1200px) {
  .ui-dialog {
    width: 1000px !important;
  }
}

/**
 * Themes
 */
.custom-slider-open #drupal-modal .modal-body {
  background: #fff;
}
@media only screen and (min-width: 768px) {
  .custom-slider-open #drupal-modal .modal-header .close {
    top: 25px;
    right: 30px;
    font-size: 27px;
    font-weight: 400;
    z-index: 1;
  }
  .custom-slider-open #drupal-modal .modal-body {
    background: #fff;
    padding: 50px;
    padding-right: 75px;
    border-radius: 3px;
  }
  .custom-slider-open .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
  }
}
@media only screen and (max-width: 767px) {
  .custom-slider-open #drupal-modal {
    align-items: baseline;
  }
}
