/* Gallery Lightbox Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

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

.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-full-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: #999;
}

.gallery-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 80px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10001;
    opacity: 0.5;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-counter {
    position: absolute;
    bottom: -35px;
    color: white;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

/* Make all project images indicate they are clickable */
.project-image img, 
.gallery-item img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-image img:hover, 
.gallery-item img:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-nav {
        width: 50px;
        font-size: 24px;
    }
    
    .gallery-close {
        top: -30px;
        font-size: 30px;
    }
    
    .gallery-counter {
        bottom: -25px;
        font-size: 14px;
    }
}
