/**
 * @file
 * Styles for the static site AJAX modal replacement.
 */

/* Loading indicator */
.static-modal-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal dialog overrides */
.static-ajax-modal .ui-dialog-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1em;
}

.static-ajax-modal .ui-dialog-titlebar {
  display: none;
}

.static-ajax-modal {
  max-width: 90vw;
  max-height: 90vh;
}

/* Ensure images in the modal are responsive */
.static-modal-content img {
  max-width: 100%;
  height: auto;
}

/* Fallback overlay styles */
.static-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.static-modal-fallback {
  background-color: #fff;
  padding: 20px;
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border-radius: 4px;
}

.static-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  line-height: 1;
  padding: 5px;
  z-index: 1;
}

.static-modal-close:hover {
  opacity: 0.7;
}
