.projects-page-container {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.project-item {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 60px;
    position: relative;
}

.project-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background-color: #D0D0D0;
}

.project-item:last-child::after {
    display: none;
}

.project-image-container {
    width: 360px;
    height: 499px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #000;
    padding: 12px;
    box-sizing: border-box;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.project-content {
    display: flex;
    flex-direction: column;
    min-height: 499px;
    justify-content: flex-start;
}

.project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #181818;
    margin: 0 0 32px 0;
    text-align: center;
}

.project-description {
    font-family: 'Cabin', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #181818;
    line-height: 1.6;
    margin: 0 0 32px 0;
    text-align: justify;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    margin-top: 24px;
    align-items: flex-end;
}

.project-meta-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-meta-item {
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #181818;
}

.project-company-logo-link {
    display: block;
    padding: 2px;
    border-radius: 8px;
}

.project-company-logo-link--dark {
    background-color: #000;
}

.project-company-logo {
    width: 170px;
    height: 51px;
    object-fit: contain;
    display: block;
}

.project-small-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 499px;
    justify-content: flex-start;
    align-items: flex-start;
}

.project-small-image-container {
    width: 360px;
    height: 239px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #000;
    padding: 12px;
    box-sizing: border-box;
}

.project-small-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

@media (max-width: 1000px) {
    .projects-page-container {
        padding: 0 24px;
        margin-top: 40px;
    }

    .project-item {
        margin-bottom: 40px;
        padding-bottom: 40px;
        gap: 24px;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "small-images"
            "content";
    }

    .project-image-container {
        display: none;
    }

    .project-small-images {
        grid-area: small-images;
        flex-direction: row;
        height: auto;
        gap: 12px;
        margin-bottom: 24px;
    }

    .project-small-image-container {
        width: calc(50% - 6px);
        height: auto;
        aspect-ratio: 360 / 239;
    }

    .project-content {
        grid-area: content;
        height: auto;
    }

    .project-title {
        font-size: 28px;
    }
}
