#main {
    /* center the page */
    margin: 8rem auto 3rem auto;

    /* two cells fit exactly next to each other */
    max-width: 666px;
}

/* overwriting defaults because using flex-gap instead */
h3, ul {
    margin: 0;
}

/* page is separated into several sections with some gap between content in each section */
.section {
    /* workaround for flexbox until safari supports gap in flexbox...*/
    display: grid;
    grid-template-columns: auto;
    grid-auto-rows: auto;
    gap: 20px;

    justify-items: center;
}

#about-container {
    /*height: 180px;*/

    display: flex;
    flex-direction: row;
    justify-items: center;

    /* if there is not enough space: no longer side by side, but below each other, centered */
    flex-wrap: wrap;
    justify-content: center;
}

#about-container > img
{
    margin-right: 30px;
}


#about-container  img {
    height: 180px;
}

#about-container-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
}


.cell-container {

    display: grid;
    grid-template-columns: auto auto;
    grid-auto-rows: auto;
    gap: 20px;
}

/* if there is not enough space: no longer side by side, but below each other, centered */
@media screen and (max-width: 666px) {
    .cell-container {
        grid-template-columns: auto;
        justify-content: center;
    }
}

.cell{
    width: 300px;
    min-height: 300px;
    padding: 10px;

    display: inline-grid;
    grid-template-columns: auto;
    grid-auto-rows: auto;
    gap: 0.5rem;
}

.empty-cell { /* used as placeholder for alignment */
    width: 300px;
    height: 0;
    padding: 20px;
}

.cell .screenshot {  /* cell - preview screenshot */
    height: 200px;
    display: flex;
    align-items: center; /* important to overwrite stretch, otherwise image loses aspect ratio */
    align-content: center;
    justify-content: center;
}

.cell > .screenshot > img {
    max-width: 100%;
    max-height: 95%;
}

.cell .title, .cell .subtitle {  /* cell text */
    padding-left: 3px;
    width: 100%; /* needed so text alignment works */
    text-align: left;
}


.service {
    padding: 20px;   /* same as .cell */
}
