/* Styles for individual project detail pages */

.project-header-container {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 30vh;
    /* More flexible for large/small screens */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-header-container h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Project Description */
.project-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    padding: 0 1rem;
}

.project-description p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Masonry Gallery - Flexible Columns */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 1rem;
}

.masonry-item img {
    width: 100%;
    height: 200px;
    /* uniform height */
    object-fit: cover;
    /* crop to fill */
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-item img:hover {
    transform: scale(1.03);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .masonry-item {
        flex: 1 1 calc(48% - 1rem);
        max-width: calc(48% - 1rem);
    }
}

@media (max-width: 600px) {
    .masonry-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .project-header-container {
        padding: 3rem 1rem;
    }

    .project-header-container h1 {
        font-size: 2rem;
    }
}