.xf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.xf-lightbox--open {
    display: flex;
}

.xf-lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: #000;

    opacity: 0;
    transform: scale(0.95);
    animation: xf-lightbox-in 0.2s ease-out forwards;
}

.xf-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
}

.xf-lightbox__close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Красивые красные стрелки */
.xf-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 70px;
    border: 1px solid rgba(255, 74, 74, 0.8);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ff4a4a;
    font-size: 28px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.xf-lightbox__arrow--prev {
    left: 10px;
}

.xf-lightbox__arrow--next {
    right: 10px;
}

.xf-lightbox__arrow:hover {
    background: rgba(255, 74, 74, 0.15);
    box-shadow: 0 0 10px rgba(255, 74, 74, 0.6);
    transform: translateY(-50%) scale(1.05);
}

@keyframes xf-lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}