.people-page {
    max-width: none;
}

.people-section {
    max-width: 1200px;
    margin-top: 56px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

.people-section:first-of-type,
.people-professor-section,
.people-section-professor {
    margin-top: 40px;
}

/* People section titles: Professor, Ph.D. Students, Master’s Students, Alumni */
.people-section h2,
.people-section-title {
    margin: 0 0 28px 0;

    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000;
}

.professor-profile {
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.professor-photo,
.professor-portrait {
    margin: 0;
}

.professor-photo img,
.professor-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.professor-info {
    max-width: 760px;
}

/* Professor name */
.professor-info h3 {
    margin: 0 0 28px 0;

    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000;
}

.people-meta {
    margin: 0 0 20px 0;
}

/* Professor research interests and email */
.people-research,
.people-email {
    margin: 0 0 4px 0;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #222;
}

.people-email a {
    color: #02cafc;
    text-decoration: none;
}

.people-email a:hover {
    opacity: 0.6;
}

/* Professor biography text */
.professor-bio,
.person-biography {
    margin-top: 24px;

    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #222;
}

.professor-bio p,
.person-biography p {
    margin: 0 0 1em 0;
}

.professor-bio a,
.person-biography a {
    color: #02cafc;
    text-decoration: none;
}

.professor-bio a:hover,
.person-biography a:hover {
    opacity: 0.6;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 56px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.people-card,
.person-card {
    margin: 0;
}

.people-card img,
.person-portrait {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Student names */
.people-card h3,
.person-name {
    margin: 0 0 6px 0;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #000;
}

.people-card .people-meta {
    margin: 0;
}

/* Student research interests, email, and profile fields */
.people-card .people-research,
.people-card .people-email,
.person-field {
    margin: 0 0 4px 0;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #555;
}

.people-card a,
.person-field a {
    color: #02cafc;
    text-decoration: none;
}

.people-card a:hover,
.person-field a:hover {
    opacity: 0.6;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 36px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.alumni-card {
    margin: 0;
    padding: 0;
}

/* Alumni names */
.alumni-card h3 {
    margin: 0 0 6px 0;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #000;
}

/* Alumni degree, year, and affiliation text */
.alumni-card p {
    margin: 0 0 4px 0;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #555;
}

.alumni-card a {
    color: #02cafc;
    text-decoration: none;
}

.alumni-card a:hover {
    opacity: 0.6;
}

.alumni-email {
    margin-top: 4px;
}

.alumni-email a {
    color: #b1afaf;
    text-decoration: none;
}

.alumni-email a:hover {
    color: #000000;
}

.people-section-alumni h2 {
    margin-bottom: 14px;
}

/* Alumni summary text under Alumni section title */
.people-section-alumni .alumni-summary {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #555;
}

.people-section-alumni .alumni-grid {
    padding-top: 48px;
}

.professor-info h3 {
    margin-bottom: 8px;
}

.professor-info .people-meta {
    margin-bottom: 4px;
}

.professor-info .professor-bio,
.professor-info .person-biography {
    margin-top: 14px;
}

@media screen and (max-width: 960px) {
    .people-section {
        max-width: none;
    }

    .professor-profile {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .professor-photo,
    .professor-portrait {
        max-width: 420px;
    }

    .people-grid,
    .alumni-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 641px) and (max-width: 960px) and (orientation: landscape) {
    .people-grid,
    .alumni-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .professor-photo,
    .professor-portrait {
        width: 40vw;
        max-width: 40vw;
    }

    .professor-photo img,
    .professor-portrait img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 640px) {
    /* People section titles and professor name on mobile portrait */
    .people-section h2,
    .people-section-title,
    .professor-info h3 {
        font-size: 26px;
    }

    .professor-photo,
    .professor-portrait {
        width: 66.666%;
        max-width: 66.666%;
    }

    .professor-photo img,
    .professor-portrait img {
        width: 100%;
        height: auto;
    }

    .professor-info {
        width: 100%;
        max-width: none;
    }

    .people-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .people-card,
    .person-card,
    .alumni-card {
        width: 66.666%;
        max-width: 66.666%;
    }

    .people-card img,
    .person-portrait {
        width: 100%;
    }

    .people-card h3,
    .person-name,
    .people-card .people-research,
    .people-card .people-email,
    .person-field,
    .alumni-card h3,
    .alumni-card p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: keep-all;
    }

    .people-section-alumni h2 {
        margin-bottom: 12px;
    }

    /* Alumni summary text on mobile portrait */
    .people-section-alumni .alumni-summary {
        margin: 0;

        font-size: 18px;
        line-height: 1.35;
        font-weight: 400;
        letter-spacing: -0.02em;
        color: #555;
    }

    .people-section-alumni .alumni-grid {
        padding-top: 36px;
    }
}