@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ab-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* твой белый фон */
    background: rgba(255, 255, 255, 0.88);

    /* ✅ размытие контента под лайтбоксом */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    /* (опционально) чуть “матовости”, чтобы фон выглядел приятнее */
    /* backdrop-filter: blur(10px) saturate(120%); */

    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Custom Cross Cursor (32px for better compatibility) */
    cursor: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 52.339 52.34'%3E%3Cpolygon points='52.339 2.571 49.768 0 26.17 23.598 2.571 0 0 2.571 23.599 26.17 0 49.768 2.571 52.34 26.17 28.741 49.768 52.34 52.339 49.768 28.741 26.17 52.339 2.571' style='fill: %23232021;'/%3E%3C/svg%3E") 16 16, pointer;
    animation: fadeIn 0.3s ease;
}

.ab-lightbox.active {
    display: flex;
}

.ab-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ab-lightbox img,
.ab-lightbox video {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    cursor: default;
    /* Reset cursor over content */
}

/* Gallery Video Indicator */
.gallery-item.is-video {
    position: relative;
}

.gallery-item .play-overlay {
    transition: background 0.3s ease;
}

.gallery-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

.gallery-item .play-overlay svg {
    transition: transform 0.3s ease;
}

.gallery-item:hover .play-overlay svg {
    transform: scale(1.1);
}

.ab-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    z-index: 1010;
}