/* HL2GO Image Lightbox Styles */

.hl2go-lightbox-img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hl2go-lightbox-img:hover {
    opacity: 0.9;
}

/* Lightbox Overlay */
.hl2go-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.hl2go-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* Lightbox Container */
.hl2go-lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Content */
.hl2go-lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hl2go-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

/* Lightbox Counter */
.hl2go-lightbox-counter {
    margin-top: 1rem;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color, #00ff88);
}

/* Navigation Buttons */
.hl2go-lightbox-prev,
.hl2go-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--primary-color, #00ff88);
    color: var(--primary-color, #00ff88);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.hl2go-lightbox-prev {
    left: -70px;
}

.hl2go-lightbox-next {
    right: -70px;
}

.hl2go-lightbox-prev:hover,
.hl2go-lightbox-next:hover {
    background: var(--primary-color, #00ff88);
    color: var(--bg-dark, #0a0e27);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-50%) scale(1.1);
}

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

/* Close Button */
.hl2go-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 0, 102, 0.2);
    border: 2px solid var(--accent-color, #ff0066);
    color: var(--accent-color, #ff0066);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.hl2go-lightbox-close:hover {
    background: var(--accent-color, #ff0066);
    color: var(--bg-dark, #0a0e27);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
    transform: scale(1.1);
}

.hl2go-lightbox-close:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hl2go-lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .hl2go-lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }

    .hl2go-lightbox-prev,
    .hl2go-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hl2go-lightbox-prev {
        left: 10px;
    }

    .hl2go-lightbox-next {
        right: 10px;
    }

    .hl2go-lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .hl2go-lightbox-counter {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

/* Loading State */
.hl2go-lightbox-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hl2go-lightbox-image.loaded {
    opacity: 1;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden !important;
}

