/* Кликабельные картинки */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zoomable:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.zoomable[data-lightbox-src]:hover {
    transform: none;
    box-shadow: none;
}
/* Оверлей на весь экран */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
    animation: lightboxFade 0.2s ease;
}

@keyframes lightboxFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
    user-select: none;
}

/* Крестик закрытия */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-family: Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10000;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}
.lightbox-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Прячем скролл, когда оверлей открыт */
body.lightbox-open {
    overflow: hidden;
}
