.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--accent-cyan);
}

.lightbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    z-index: 1001;
    margin-bottom: 2rem;
}

.lightbox-image {
    max-width: 60%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoom-in 0.3s ease;
    display: block;
    margin: 0 auto;
}

.lightbox-title {
    color: var(--text-p);
    font-size: 1.9rem;
    text-align: center;
    margin: 0 auto;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.lightbox-prev,
.lightbox-next {
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.lightbox-prev {
    position: absolute;
    left: 20%;
}

.lightbox-next {
    position: absolute;
    right: 20%;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.3);
}