.df-image-preview-modal__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-items: center;
  justify-content: center;
  background: var(--bs-tertiary-bg);
}
.df-image-preview-modal .modal-title { min-width: 0; overflow-wrap: anywhere; }
.df-image-preview-modal .modal-body { overflow: auto; }
.ctr-file-preview-pdf { width: 100%; min-height: 60vh; border: 0; flex: 1; }
.df-image-preview-modal .modal-footer .btn { min-height: var(--ctr-touch-target, 44px); }
.df-image-preview-modal__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .df-image-preview-modal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100%;
  }
  .df-image-preview-modal__image { max-height: calc(100dvh - 11rem); }
}
