.person {
    grid-column: 2 / span 22;
    margin-top: calc(1 * var(--rowheight) + 0px);
    margin-bottom: calc(2 * var(--rowheight) + 0px);
}

.person-portrait {
    grid-column: 1 / span 6;
    border: solid 1px var(--maincolor);

    height: calc(5 * var(--rowheight) + 0px);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.person-heading {
    grid-column: 8 / span 15;
}

.person-name {
    text-indent: calc(2 * var(--columnwidth) + 0px);
    height: var(--rowheight);
    line-height: var(--rowheight);
    margin-top: calc(1 * var(--rowheight) + 0px);
    white-space: nowrap;
}

.person-subject {
    height: var(--rowheight);
    line-height: var(--rowheight);
}

.person-statement {
    grid-column: 2 / span 12;
    margin-top: calc(1 * var(--rowheight) + 0px);
}

.person-contact {
    grid-column: 15 / span 8;
    padding: 0 calc(.5 * var(--columnwidth) + 0px);
    align-self: start;
}

.person-contact a {
    display: inline-block;
}

.person-contact em {
    height: calc(.5 * var(--rowheight) + 0px);
    display: inline-block;
    line-height: calc(.75 * var(--rowheight) + 0px);
}

.person-contact strong {
    display: block;
    height: calc(1 * var(--rowheight));
}

.person-vita {
    grid-column: 3 / span 15;
    padding: calc(.5 * var(--rowheight) + 0px);
    background: var(--bgcolor);
    margin-top: calc(1 * var(--rowheight) + 0px);
}

.person-vita p+p {
    margin-top: 1.3em;
}

.tiles {
    margin-bottom: calc(1 * var(--rowheight) + 0px);
}

.tiles:has(.tile--project) {
    margin-bottom: calc(2 * var(--rowheight) + 0px);
}

h2.relatedheading {
    grid-column: 2 / span 22;
    margin-bottom: calc(1 * var(--rowheight) + 0px);
    line-height: calc(1.5 * var(--rowheight) + 0px);
    height: var(--rowheight);
    text-indent: calc(2 * var(--columnwidth) + 0px);
}

.tile--project {
    grid-column: 2 / span 15;
    margin-bottom: calc(-1 * var(--rowheight) + 0px);
}

.tile--project:nth-of-type(even) {
    grid-column: 7 / span 15;
}


@media (max-width: 1100px) {
    .person-name {
        transform: scale(.9);
    }
}

@media (max-width: 900px) {
    .person-contact, .person-statement, .person-vita {
        grid-column: 1 / span 22;
        margin-bottom: calc(1 * var(--rowheight) + 0px);
    }

    .person-contact {
        margin-top: calc(1 * var(--rowheight) + 0px);
    }

    .person-heading {
        grid-column: 1 / span 22;
        grid-row-start: 1;
        margin-bottom: calc(1 * var(--rowheight) + 0px);
    }

    .person-portrait {
        grid-column: 1 / span 22;
        width: 100%;
        grid-row-start: 2;
    }

    .person-subject {
        margin-top: calc(1 * var(--rowheight) + 0px);
    }

    .person-name {
        text-indent: initial;
        transform: initial;
    }

    h2.relatedheading {
        margin-top: calc(2 * var(--rowheight) + 0px);
        margin-bottom: calc(2 * var(--rowheight) + 0px);
        text-indent: calc(1 * var(--columnwidth) + 0px);
    }

    .person-contact em {
        height: calc(1 * var(--rowheight) + 0px);
        line-height: calc(1 * var(--rowheight) + 0px);
    }

    .person-contact strong {
        min-height: calc(2 * var(--rowheight) + 0px);
    }

    .tiles:has(.tile--project) {
        margin-bottom: calc(1 * var(--rowheight) + 0px);
    }
}