/* ... Previous styles ... */
/* Advanced Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    /* Premium Dark Background */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Prevent clicks when hidden */
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    display: flex;
    width: 100%;
    /* Changed from 95% */
    max-width: var(--container-width);
    /* Added Limit */
    height: 90vh;
    background: #111;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    color: #fff;
    border: 1px solid #333;
}

/* Main Area */
.lightbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid #222;
}

.lightbox-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
}

.project-info h2 {
    font-size: 14px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.project-info span {
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
}

.lightbox-controls {
    display: flex;
    gap: 10px;
}

.lb-ctrl {
    background: none;
    border: 1px solid #333;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.lb-ctrl:hover {
    background: #333;
    border-color: #555;
}

#lb-close-btn {
    font-size: 20px;
}

.lightbox-image-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lb-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Nav Arrows */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    user-select: none;
    z-index: 10;
}

.lb-nav:hover {
    background: var(--color-accent-hover);
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

/* Thumbnails */
.lightbox-thumbnails {
    height: 80px;
    background: #151515;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
    overflow-x: auto;
    border-top: 1px solid #222;
}

.lb-thumb {
    height: 60px;
    width: 80px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.lb-thumb:hover,
.lb-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
}

/* Sidebar */
.lightbox-sidebar {
    width: 300px;
    background: #0f0f0f;
    padding: 30px;
    font-size: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lb-details h3,
.lb-description h3 {
    font-size: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.lb-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.lb-meta-row span:first-child {
    color: #888;
}

.lb-meta-row span:last-child {
    font-weight: 600;
}

#lb-desc {
    color: #aaa;
    line-height: 1.6;
}

/* Mobile Sidebar Hide */
@media (max-width: 900px) {
    .lightbox-container {
        flex-direction: column;
        height: 92vh;
        width: 96vw;
        max-width: 100%;
        border-radius: 12px;
    }

    .lightbox-main {
        border-right: none;
        border-bottom: 1px solid #222;
        flex: 1;
        min-height: 50%;
    }

    .lightbox-sidebar {
        display: flex;
        width: 100%;
        height: auto;
        max-height: 40%;
        padding: 20px;
        gap: 20px;
        background: #0a0a0a;
    }

    .lb-details h3,
    .lb-description h3 {
        margin-bottom: 10px;
    }

    .lightbox-header {
        height: 50px;
        padding: 0 15px;
    }

    .project-info h2 {
        font-size: 12px;
    }

    .project-info span {
        font-size: 9px;
    }

    .lb-ctrl {
        width: 28px;
        height: 28px;
    }

    .lb-nav {
        width: 35px;
        height: 35px;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }

    .lightbox-thumbnails {
        height: 60px;
        padding: 0 10px;
        gap: 5px;
    }

    .lb-thumb {
        height: 50px;
        width: 65px;
    }
}

@media (max-width: 600px) {
    .lightbox-header {
        height: 45px;
        padding: 0 10px;
    }

    .project-info h2 {
        font-size: 11px;
    }

    .lb-ctrl {
        width: 26px;
        height: 26px;
    }

    #lb-close-btn {
        font-size: 18px;
    }

    .lb-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .lb-prev {
        left: 5px;
    }

    .lb-next {
        right: 5px;
    }

    .lightbox-thumbnails {
        height: 50px;
        padding: 0 5px;
    }

    .lb-thumb {
        height: 40px;
        width: 55px;
    }
}