.publication {
    grid-column: 3 / span 20;
    border: solid 1px var(--maincolor);
    margin-top: var(--rowheight);
    margin-bottom: calc(2 * var(--rowheight) + 0px);
    background: var(--bgcolor);
}

.publication-meta {
    grid-column: 1 / span 20;
    height: calc(var(--rowheight) / 2 + 0px);
    align-content: center;
    white-space: nowrap;
    border-bottom: solid 1px var(--maincolor);
    padding: 0 1rem;
}

.publication-content {
    grid-column: 2 / span 18;
    padding-top: calc(.5 * var(--rowheight) + 0px);
    padding-bottom: var(--rowheight)
}

.publication-publisher {
    grid-column: 1 / span 18;
}

.publication-title {
    line-height: 1.1;
    grid-column: 1 / span 18;
}

.publication-team {
    margin-bottom: calc(1.5 * var(--rowheight) + 0px);
    grid-column: 1 / span 18;
}

.publication-team li {
    display: inline-block;
}

.publication-text {
    grid-column: 5 / span 14;
}

.publication-link {
    grid-column: 5 / span 14;
    margin-top: calc(.5 * var(--rowheight) + 0px);
    display: block;
}

.publication-link a {
    background: var(--maincolor);
    color: var(--bgcolor);
    text-decoration: none;
    padding: .4rem 2rem;
    border-radius: 8em;
    width: auto;
    text-align: center;
    align-content: center;
    justify-content: center;
    min-width: 24ch;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;

    border: solid 2px var(--maincolor);
}

.publication-link a:hover, .publication-copybibtex button:hover {
    transform: scale(1.05);
}

.publication-link a:after {
    content: ' ↗';
    font-family: system-ui, sans-serif;
    padding-left: .3em;
}

.publication-copybibtex {
    grid-column: 5 / span 14;
}

.publication-copybibtex button {
    appearance: none;
    border: solid 2px var(--maincolor);
    color: inherit;
    cursor: pointer;
    margin-top: .5em;

    text-decoration: none;
    padding: .4rem 2rem;
    border-radius: 8em;
    width: auto;
    text-align: center;
    align-content: center;
    justify-content: center;
    min-width: 24ch;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
}

.publication-copybibtex button svg {
    max-height: 100%;
    fill: var(--maincolor);
    font-size: inherit;
    max-height: 1.2em;
    display: inline-block;
    margin-right: 1ch;
}

.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;
}

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

@media (max-width: 900px) {
    .publication-meta {
        height: calc(var(--rowheight) / 1 + 0px);
    }

    .publication-text, .publication-link, .publication-copybibtex {
        grid-column: 1 / span 18;
    }

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