/* SBK Fighter Lightbox Styles */

.sbk-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sbk-lightbox.active {
    display: flex;
    opacity: 1;
}

.sbk-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

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

.sbk-lb-image-wrapper {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
}

.sbk-lb-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 4px;
}

/* Loader */
.sbk-lb-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.sbk-lb-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 31, 31, 0.2);
    border-top-color: #FF1F1F;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Close Button */
.sbk-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 31, 31, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.sbk-lb-close:hover {
    background: #FF1F1F;
    transform: rotate(90deg) scale(1.1);
}

.sbk-lb-close i {
    font-size: 28px;
}

/* Navigation Arrows */
.sbk-lb-prev,
.sbk-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 31, 31, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.sbk-lb-prev {
    left: 30px;
}

.sbk-lb-next {
    right: 30px;
}

.sbk-lb-prev:hover,
.sbk-lb-next:hover {
    background: #FF1F1F;
    transform: translateY(-50%) scale(1.1);
}

.sbk-lb-prev i,
.sbk-lb-next i {
    font-size: 36px;
}

/* Counter */
.sbk-lb-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    border: 2px solid #FF1F1F;
    z-index: 10001;
}

/* Zoom Controls */
.sbk-lb-zoom-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10001;
}

.sbk-lb-zoom-in,
.sbk-lb-zoom-out,
.sbk-lb-zoom-reset {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FF1F1F;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sbk-lb-zoom-in:hover,
.sbk-lb-zoom-out:hover,
.sbk-lb-zoom-reset:hover {
    background: #FF1F1F;
    transform: scale(1.1);
}

.sbk-lb-zoom-in i,
.sbk-lb-zoom-out i,
.sbk-lb-zoom-reset i {
    font-size: 24px;
}

/* Caption */
.sbk-lb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    padding: 60px 30px 30px;
    color: white;
    text-align: center;
    z-index: 10001;
}

.sbk-lb-caption h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #E0E0E0;
}

.sbk-lb-caption p {
    font-size: 0.9rem;
    color: #FF1F1F;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .sbk-lb-prev,
    .sbk-lb-next {
        width: 45px;
        height: 45px;
    }

    .sbk-lb-prev {
        left: 15px;
    }

    .sbk-lb-next {
        right: 15px;
    }

    .sbk-lb-prev i,
    .sbk-lb-next i {
        font-size: 28px;
    }

    .sbk-lb-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .sbk-lb-close i {
        font-size: 24px;
    }

    .sbk-lb-counter {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .sbk-lb-zoom-controls {
        bottom: 100px;
        right: 15px;
    }

    .sbk-lb-zoom-in,
    .sbk-lb-zoom-out,
    .sbk-lb-zoom-reset {
        width: 40px;
        height: 40px;
    }

    .sbk-lb-caption h4 {
        font-size: 1.5rem;
    }

    .sbk-lb-caption p {
        font-size: 0.8rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .sbk-lb number-prev:hover,
    .sbk-lb-next:hover,
    .sbk-lb-close:hover,
    .sbk-lb-zoom-in:hover,
    .sbk-lb-zoom-out:hover,
    .sbk-lb-zoom-reset:hover {
        transform: none;
    }

    .sbk-lb-prev:active,
    .sbk-lb-next:active {
        transform: translateY(-50%) scale(0.95);
    }

    .sbk-lb-close:active,
    .sbk-lb-zoom-in:active,
    .sbk-lb-zoom-out:active,
    .sbk-lb-zoom-reset:active {
        transform: scale(0.95);
    }
}