/* =========================================================
 * Docmost Overrides – Diagramm- & Bild-Lightbox
 * Eingebunden via Nginx sub_filter (wiki-rd.drk-aalen.info)
 * Option A: gilt für Diagramme UND normale Fotos
 * ========================================================= */

#dlb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#dlb.dlb-open {
  display: block;
}

html.dlb-no-scroll,
html.dlb-no-scroll body {
  overflow: hidden;
}

#dlb .dlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.88);
  cursor: zoom-out;
}

#dlb .dlb-stage {
  position: absolute;
  inset: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
}

#dlb .dlb-stage svg {
  cursor: grab;
}

#dlb .dlb-stage svg:active {
  cursor: grabbing;
}

#dlb .dlb-raster {
  max-width: 100%;
  max-height: 100%;
  cursor: grab;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
}

#dlb .dlb-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

#dlb .dlb-btn {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#dlb .dlb-btn:hover {
  background: rgba(0, 0, 0, 0.88);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hinweis-Cursor: alle klickbaren Inhaltsbilder + Mermaid-SVGs (Option A) */
.ProseMirror:not([contenteditable="true"]) img,
[class*="_mermaid_"] svg {
  cursor: zoom-in;
}

/* Platz für weitere Fixes (optionale Migration der Inline-Styles, siehe unten) */
