
/* ========================================
   LIGHTBOX
======================================== */

.project-image {
    cursor: zoom-in;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 37, 64, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

#lightbox.active {
    display: flex;
}

.lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
}

#lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
}

#lb-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.lb-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.lb-close:hover {
    opacity: 1;
    background: none;
    color: #F9BEC1;
}

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
    line-height: 1;
    box-shadow: none;
    margin: 0;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.lb-prev.hidden,
.lb-next.hidden {
    display: none;
}

@media (max-width: 480px) {
    .lb-prev { left: 0.3rem; }
    .lb-next { right: 0.3rem; }
    .lb-prev,
    .lb-next { font-size: 2rem; padding: 0.4rem 0.7rem; }
}