.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    touch-action: none;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    cursor: default; /* Ensures the image area doesn't show pointer */
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    pointer-events: none; /* Prevents image dragging */
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: black;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: black;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 10000;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    font-size: 14px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-button {
        font-size: 30px;
        padding: 10px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 10px;
    }
}