/*
 * Генеричен fullscreen lightbox за статични снимки по калкулаторните страници
 * (js/image-lightbox.js). Отваря се САМО на десктоп (>=769px) – JS гейтва
 * клика; на мобилен (<=768px) нищо не се променя.
 * Прегледът: тъмен фон, центрирана голяма снимка, X бутон, ESC/клик на фона затваря.
 */

.mdil-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100060; /* над съществуващите lightbox-ове (100000–100050) и хедъра */
    display: none;
    background: rgba(10, 12, 16, 0.92);
    padding: 32px;
    box-sizing: border-box;
}

.mdil-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdil-lightbox__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.mdil-lightbox__img {
    max-width: min(1400px, 92vw);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    cursor: default;
}

.mdil-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.mdil-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mdil-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Индикация, че снимките са кликаеми – САМО десктоп (>=769px).
   На мобилен курсорът/изгледът остават непроменени. */
@media (min-width: 769px) {
    .mosquito-hero-thumb-grid__img,
    .mosquito-profiles-reference__img,
    .perde-main-image,
    .dreveni-calculator-below-showcase__img {
        cursor: pointer;
    }
}
