/* Client Projects Section */
.client-projects-section {
    position: relative;
}

.projects-display-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 4rem auto;
    width: 100%;
}

.project-item {
    flex: 1;
    max-width: calc(20% - 1.2rem);
    /* Size down by 60% could mean many things, but given 5 items in a row,
       they are already much smaller. If we want them even smaller, we can use a container width. */
}

.project-image-container {
    width: 100%;
    aspect-ratio: 2/3; /* Portrait ratio */
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    background: #000;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image-container img {
    transform: scale(1.1);
}

.project-legend-display {
    width: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.project-legend-display h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-legend-display p {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.4;
    max-width: 600px;
}

/* Updated container width - Increased by 20% */
.client-projects-section .projects-display-container {
    width: 86.4%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .client-projects-section .projects-display-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-display-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: none;
    }
}
