#project-content {
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 3.5fr 1.5fr;
    grid-template-areas: "content card";
    gap: 2rem;
}

#project-media {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

#project-feature-card {
    grid-area: card;
    align-self: start;
}

#left-content {
    grid-area: content;
}

#project-hero-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

#project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

#screenshot-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: left;
    max-width: 100%;
}

.screenshot-thumbnail {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    aspect-ratio: 16/9;
    width: 25%;
}

.screenshot-thumbnail:hover {
    opacity: 0.9;
}

.screenshot-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.screenshot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    justify-content: center;
    background-color: var(--primary);
}

.play-button-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.project-badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.project-badge {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    width: 100%;
}

.project-badge img {
    width: 100%;
}

.purchase-card {
    padding: 1.8rem;
}

#project-license-container {
    background: linear-gradient(
        135deg,
        rgba(122, 95, 150, 0.2),
        rgba(84, 58, 130, 0.2)
    );
    border-left: 3px solid var(--primary);
    padding: 0.8rem;
    border-radius: 0 4px 4px 0;
}

#project-license p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#project-license-link {
    color: var(--primary);
    font-style: italic;
    font-weight: bold;
    text-decoration: none;
}

#project-license-link:hover,
#project-license-link:visited:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

#project-license-link:visited {
    color: var(--primary-dark);
}

.project-features {
    width: 100%;
}

#project-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    filter: invert(41%) sepia(14%) saturate(1140%) hue-rotate(240deg)
        brightness(90%) contrast(86%);
}

.feature-item span {
    font-size: 0.95rem;
}

#project-source-code-coming-soon {
    font-style: italic;
}

@media (max-width: 1026px) {
    #project-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "card"
            "description";
    }

    #left-content {
        display: contents;
    }

    #project-media {
        grid-area: media;
    }

    #project-description-section {
        grid-area: description;
    }

    #features-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .feature-item {
        flex: 0 0 auto;
        margin-right: 1.5rem;
    }

    .screenshot-thumbnail {
        width: calc(25% - 0.4rem);
        height: auto;
        aspect-ratio: 16/9;
    }

    @media (max-width: 768px) {
        .project-badge {
            width: 100%;
        }

        #project-codeberg-badge {
            margin: 0;
        }
    }
}
