#menubar .current-page {
    color: #ebc800;
    background-color: #7A0019;
    padding: 5px;
}

.group-page {
    padding-bottom: 35px;
}

.group-heading {
    margin-bottom: 35px;
    text-align: center;
}

.group-heading h2 {
    margin-bottom: 8px;
}

.group-heading p {
    margin-top: 0;
}

.member-section {
    margin-bottom: 42px;
}

.member-section>h2 {
    margin-bottom: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid #d5d5d5;
}

.phd-section>h2 {
    text-transform: none;
}

/* Keeps a visible blank area below the Ph.D. heading until students are added. */
.empty-members {
    min-height: 75px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.member-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.member-card img {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    margin: 0;
    border: 1px solid #d5d5d5;
    object-fit: cover;
}

.member-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.member-card p {
    margin: 0;
    font-size: 15px;
    text-align: justify;
}

.member-bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.member-bio.is-expanded {
    display: block;
    overflow: visible;
}

.bio-toggle {
    margin: 5px 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: #7A0019;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.bio-toggle:hover,
.bio-toggle:focus-visible {
    color: #b00024;
}

@media (max-width: 850px) {
    .centerblock {
        width: min(100%, 800px);
    }

    .maintext {
        width: auto;
        margin: 0 20px;
    }

    .topcontent {
        min-width: 0;
    }

    #menubar {
        right: 10px;
        font-size: 10px;
        word-spacing: 5px;
        letter-spacing: 1px;
    }
}

@media (max-width: 650px) {
    .topcontent {
        position: static;
        height: auto;
        padding: 10px 15px;
    }

    #name,
    #menubar {
        position: static;
    }

    #name h1 {
        margin: 0 0 10px;
    }

    #menubar {
        line-height: 2.1;
    }

    .maintext {
        padding-top: 25px;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }
}