
/* Project page specific styles */

/* Project title and description */
.project-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-description {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Gallery layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px; /* Consistent gap between columns */
    row-gap: 0; /* Remove row gap */
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap between rows */
}

.gallery-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

/* Add loading animation */
.lazy-image {
    opacity: 0.5;
}

.loaded {
    opacity: 1;
}

/* Project meta information */
.project-meta {
    margin-bottom: 30px;
    text-align: left;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}
