/* Project Hero */
.project-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.project-hero img {
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none; 
    -moz-user-select: none;  
    -ms-user-select: none;
    pointer-events: none; 
}

.page-container p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2b1a1f;
    margin-bottom: 10px;
}

/* Project Details */
.project-logo {
    display: block;
    margin: 0 auto 2rem auto; 
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-container img {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-drag: none; 
    -moz-user-select: none;  
    -ms-user-select: none;
    pointer-events: none; 
}

.project-details {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
}

.project-details .read-more {
    margin: 0 10px;
    color: #614b4b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.project-description {
    flex: 2 1 50%; 
    min-width: 280px;
    margin-right: 100px;
    margin-top: 30px;
  
}

.project-credits {
    min-width: 220px;
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2b1a1f;
    margin-bottom: 10px;
}

.project-credits h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #614b4b;
    margin-bottom: 20px;
    margin-top: 30px;
}

.project-description a {
    display: inline-block;
    font-weight: bold;
    text-decoration: underline;
}

.project-credits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-credits li {
    margin-bottom: 0.5rem;
}

.project-credits h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color:#3a2929;
    margin-top: 1rem;
    margin-bottom: -1rem;
}

/* Contributions */
.contributions {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2b1a1f;
    margin-bottom: 10px;
}

.contributions h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #614b4b;
    margin-bottom: 20px;
}

.project-description h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #614b4b;
    margin-bottom: 20px;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.screenshots-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-drag: none; 
    -moz-user-select: none;  
    -ms-user-select: none;
    pointer-events: none; 
}

/* Software */
.software {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2b1a1f;
    margin-bottom: 10px;
}

.software h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #614b4b;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .project-description {
        margin-right: 0;
        margin-top: 0;
        order: 0;
    }

    .contributions {
        order: 1;
    }

    .project-details {
        flex-direction: column;
    }

    .screenshots-grid {
        order: 2;
    }

    .project-credits {
        max-width: 100%;
        order: 3;
    }

    video {
        order: 1;
        width: 80vw;
        max-width: 800px;
        margin: 1rem auto;
        display: block;
    }

    .project-description + .video-container,
    .video-container {
        order: 2; 
        max-width: 95vw;
        padding-bottom: calc(95vw * 9 / 16);
    }
}
