/**
 * LFM Bootstrap modal host — does not replace plugin UI.
 */

body.modal-open { overflow: hidden; }

.lfm-modal-dialog {
  max-width: min(1100px, 96vw);
  height: min(860px, 94vh);
  margin: 1rem auto;
}
.lfm-modal-content {
  height: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.lfm-modal-header {
  background: #0f172a;
  color: #fff;
  border: 0;
  padding: 0.85rem 1.1rem;
}
.lfm-modal-header .modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: #070606;
}
.lfm-modal-header .close {
  color: #000000;
  opacity: 0.85;
  text-shadow: none;
}
.lfm-modal-header .close:hover { opacity: 1; color: #fff; }
.lfm-modal-body {
  height: calc(100% - 52px);
  background: #f8fafc;
  overflow: hidden;
}
#lfmModalFrame,
#lfmModal iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  background: #fff;
}

/* fungrowuploader control */
[data-toggle="fungrowuploader"] {
  cursor: pointer;
  user-select: none;
}

body.lfm-extension-ready .file-preview-item {
  border-radius: 10px;
  border: 1px solid #eef1f5;
}
body.lfm-extension-ready .file-preview-item .thumb {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .lfm-modal-dialog {
    max-width: 100vw;
    height: 100vh;
    margin: 0;
  }
  .lfm-modal-content { border-radius: 0; }
  #lfmModalFrame,
  #lfmModal iframe { min-height: calc(100vh - 56px); }
}
