/* ──────────────────────────────────────────────────────────────────────
 * md-image-lightbox.css
 * Cursor zoom-in em imagens de conteúdo Markdown + overlay lightbox.
 * Não usa manipulação do DOM React — event delegation puro.
 * ────────────────────────────────────────────────────────────────────── */

/* ── Cursor e hint visual nas imagens clicáveis ─────────────────────── */
.dash-markdown p img,
.dash-markdown li img,
.dash-markdown td img,
.dash-markdown th img,
.dash-markdown blockquote img {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

.dash-markdown p img:hover,
.dash-markdown li img:hover,
.dash-markdown td img:hover,
.dash-markdown th img:hover,
.dash-markdown blockquote img:hover {
    opacity: 0.88;
}

/* ── Overlay de fundo ───────────────────────────────────────────────── */
#md-img-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#md-img-overlay.md-img-overlay--open {
    display: flex;
}

.md-img-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

/* ── Conteúdo central (imagem + botão fechar) ───────────────────────── */
.md-img-overlay-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-img-overlay-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
    user-select: none;
}

/* ── Botão fechar ───────────────────────────────────────────────────── */
.md-img-overlay-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    transition: background 0.15s ease;
}

.md-img-overlay-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.md-img-overlay-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

