/* Project Detail Page Styles */

.project-hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    position: relative;
    margin-top: 80px; 
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.project-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.project-hero h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.project-meta {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #ccc;
    animation: fadeInUp 1s ease 0.2s both;
}

.project-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.project-specs {
    list-style: none;
}

.project-specs li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.project-specs span {
    color: #999;
}

.project-specs strong {
    font-weight: 600;
    color: #000;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.project-info p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Gallery Wrapper */
.project-gallery-wrapper {
    margin-top: 2rem;
}

/* Subsection Styling */
.gallery-subsection {
    margin-bottom: 6rem;
    margin-top: 4rem;
}

.gallery-subsection:last-child {
    margin-bottom: 6rem;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    color: #000;
    position: relative;
}


/* Gallery Grid (Masonry style) */

.project-gallery {
    column-count: 2;
    column-gap: 2rem;
    margin-top: 4rem;
}

.project-gallery img {
    width: 100%;
    height: auto;  /* Let image height be natural */
    border-radius: 10px;
    margin-bottom: 2rem;
    break-inside: avoid;  /* Don't split images across columns */
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .project-gallery {
        column-count: 1;  /* Single column on mobile */
    }
}

.back-link {
    display: inline-block;
    margin: 4rem 0 2rem;
    padding: 1rem 2rem;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #000;
    color: #fff;
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-hero {
        height: 60vh;
        padding: 2rem;
    }
    
    .project-hero h1 {
        font-size: 2.5rem;
    }
    
    .project-details {
        padding: 4rem 2rem;
    }
}