/* Лайтбокс ABcat */
.ab-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.ab-lightbox-overlay.active { opacity: 1; }

.ab-lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
}

.ab-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.ab-lightbox-close:hover { opacity: 1; }

.ab-lightbox-prev,
.ab-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.ab-lightbox-prev { left: 16px; }
.ab-lightbox-next { right: 16px; }
.ab-lightbox-prev:hover,
.ab-lightbox-next:hover { opacity: 1; }

.ab-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .ab-lightbox-prev,
    .ab-lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .ab-lightbox-img {
        max-width: 100vw;
        max-height: 85vh;
    }
}