.projects .project {
    margin-bottom: 3em;
}

.projects .project-heading {
    padding: 1.25em 1.5em;
    margin-bottom: 1.5em;
    font-family: "Graublau Web", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    line-height: 1.25;
}

.projects .project-title {
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    line-height: inherit;
}

.projects .project-meta {
    margin: 0;
    font-size: .833333em;
    font-weight: normal;
    line-height: 1.5;
}

.projects .project-copy p {
    margin-bottom: 1.25em;
}

.projects .project-demo {
    max-width: 720px;
}

.projects .project img, .projects .project video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .25em;
}

.projects .project-demos {
    display: grid;
    grid-template-columns: minmax(0, 374fr) minmax(0, 500fr);
    gap: 16px;
    max-width: 890px;
    align-items: center;
}

.projects .project video {
    object-fit: contain;
    background: #1b2330;
}

.projects .project-demos video:first-child {
    grid-row: span 2;
}

.projects #codemaestro .project-demos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.projects #codemaestro .project-demos img:last-child {
    grid-column: 1 / -1;
}

.projects .project-presentation {
    max-width: 890px;
    margin-top: 1.25em;
}

.projects .project-playground {
    display: block;
    width: 100%;
    max-width: 890px;
    border: 0;
    border-radius: 5px;
}

.projects .project-presentation summary {
    width: fit-content;
    cursor: pointer;
}

.projects .project-presentation[open] summary {
    margin-bottom: .75em;
}

@media (max-width: 650px) {
    .projects .project-demos,
    .projects #codemaestro .project-demos {
        grid-template-columns: minmax(0, 1fr);
    }

    .projects .project-demos video:first-child {
        grid-row: auto;
        max-height: 430px;
    }
}
