/* Lightbox Styles for Kreaticfolio */
.kf-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kf-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.kf-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kf-lightbox-overlay.active .kf-lightbox-image {
    transform: scale(1);
}

/* Navigation Buttons */
.kf-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

.kf-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.kf-lightbox-prev {
    left: -70px;
}

.kf-lightbox-next {
    right: -70px;
}

@media (max-width: 1200px) {
    .kf-lightbox-prev {
        left: 10px;
    }

    .kf-lightbox-next {
        right: 10px;
    }

    .kf-lightbox-nav {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Close Button */
.kf-lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
}

@media (max-width: 768px) {
    .kf-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}

/* Loader */
.kf-lightbox-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: kf-spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes kf-spin {
    to {
        transform: rotate(360deg);
    }
}