/* ============================================
   KF Lightbox — Event Image Zoom
   ============================================ */
.kf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kf-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.kf-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.kf-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    animation: kfLightboxZoomIn 0.25s ease;
}

.kf-lightbox.active .kf-lightbox-content {
    animation: kfLightboxZoomIn 0.25s ease;
}

.kf-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.kf-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.kf-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Trigger cursor */
[data-kf-lightbox] {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

[data-kf-lightbox]:hover {
    opacity: 0.92;
}

/* Prevent body scroll */
body.kf-lightbox-open {
    overflow: hidden;
}

@keyframes kfLightboxZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .kf-lightbox-img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 4px;
    }

    .kf-lightbox-close {
        top: -36px;
        right: 4px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .kf-lightbox-img {
        max-width: 98vw;
        max-height: 75vh;
    }
}
