/* Увеличение изображений по клику (статьи, SEO, превью конвертера) */

.legal-figure img,
.img-conv__seo-image,
.img-conv__preview-img,
.img-conv__result-preview img,
.img-conv__pdf-thumb img {
    cursor: zoom-in;
}

.img-conv__lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.img-conv__lightbox[hidden] {
    display: none !important;
}

.img-conv__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
}

.img-conv__lightbox-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.img-conv__lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.img-conv__lightbox-close:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

.img-conv__lightbox-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    cursor: default;
}

body.img-conv__lightbox-open {
    overflow: hidden;
}
