.page-intro{padding:6rem 0 2rem}
.page-intro h1{max-width:900px;margin:0 0 1.4rem;color:var(--blue);font:clamp(3.3rem,7vw,6rem)/1.02 Georgia,"Times New Roman",serif}
.people-page .page-intro h1{font-size:clamp(1.701rem,3.465vw,3.024rem);font-weight:700;letter-spacing:-.035em}
.people-jump-nav{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:2.2rem}
.people-jump-nav a{position:relative;z-index:1;padding:.7rem 1rem;border:2px solid #c7d7e3;border-radius:999px;background:#fff;color:var(--navy);font-size:.9rem;font-weight:700;box-shadow:0 4px 12px rgba(16,42,67,.08)}
.people-jump-nav a:hover,.people-jump-nav a:focus-visible{border-color:var(--red);color:var(--red);text-decoration:none}
.page-lead{max-width:48rem;margin:0;font-size:1.25rem}
.people-index{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;padding:1.5rem 0 2rem}
.people-index a{display:flex;align-items:center;gap:.8rem;min-height:64px;padding:.9rem 1rem;border:1px solid var(--line);border-radius:.7rem;color:var(--navy);font-weight:750}
.people-index a:hover,.people-index a:focus-visible{border-color:var(--red);color:var(--red)}
.people-index span{color:var(--muted);font-family:Georgia,"Times New Roman",serif;font-size:.82rem}
.people-sections{padding-top:3rem}
.people-section{scroll-margin-top:1rem;padding:4.25rem 0;border-top:1px solid var(--line)}
.people-section:first-child{border-top:5px solid var(--blue)}
.people-section-layout{display:grid;grid-template-columns:1fr;gap:1.75rem;align-items:start}
.people-section-layout h2{margin:0;font-size:clamp(1.4rem,2.8vw,2.24rem)}
.people-section-layout>p,.people-section-layout>div>p:first-child{margin-top:0;font-size:1.08rem}
.people-name-list{border-top:1px solid var(--line)}
.people-name-list p{margin:0;padding:1rem 0;border-bottom:1px solid var(--line);color:var(--navy);font-size:1.12rem;font-weight:750}
.alumni-group{margin-top:4rem;padding-top:2rem;border-top:1px solid var(--line)}
.alumni-group h3{margin:0 0 1.5rem;font-size:1.9rem}
.alumni-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
.alumni-list p{display:grid;gap:.15rem;margin:0;padding:1rem;border-left:4px solid var(--blue);background:var(--soft)}
.alumni-list span{color:var(--muted);font-size:.88rem}
.alumni-years{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.alumni-years section{padding:1.4rem;border:1px solid var(--line)}
.alumni-years h4{margin:0 0 .65rem;color:var(--blue);font:1.25rem Georgia,"Times New Roman",serif}
.alumni-years p{margin:0}
.gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;padding-top:2rem}
.gallery-card{margin:0}
.gallery-card-wide{grid-column:1/-1}
.gallery-card img{width:100%;aspect-ratio:16/10;border-radius:1rem;object-fit:cover;box-shadow:0 18px 38px rgb(16 42 67/.12)}
.gallery-card-wide img{aspect-ratio:3.25}
.gallery-card figcaption{margin-top:.65rem;color:var(--muted);font-size:.86rem}
@media(max-width:850px){.people-section-layout{grid-template-columns:1fr;gap:2.5rem}.people-index,.alumni-list{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.page-intro{padding:4rem 0 2rem}.people-index,.gallery-grid,.alumni-list,.alumni-years{grid-template-columns:1fr}.gallery-card-wide{grid-column:auto}.gallery-card-wide img{aspect-ratio:16/10}}

/* Current research group */
.people-page .people-sections{padding-top:0}
.people-section:first-child{border-top:0}
.hall-of-fame .alumni-group{display:none}
.current-student-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
.current-student-grid article{display:grid;grid-template-columns:220px minmax(0,1fr);column-gap:2rem;align-content:start;padding:1.4rem;border:1px solid var(--line);border-radius:1rem;background:#fff;box-shadow:0 12px 30px rgba(16,42,67,.08)}
.photo-placeholder{display:grid;place-items:center;aspect-ratio:4/3;background:linear-gradient(135deg,#edf4f8,#dce8f0);color:var(--muted)}
.photo-placeholder span{font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.current-student-grid h3{grid-column:2;margin:.2rem 0 .65rem;padding:0;color:var(--navy);font:700 clamp(1.16rem,2.24vw,1.72rem)/1.1 Georgia,"Times New Roman",serif}
.current-student-grid article>p{grid-column:2;margin:.35rem 0;line-height:1.7}
.current-student-grid .person-card-photo{grid-column:1;grid-row:1/span 3;width:220px;height:230px;aspect-ratio:auto;border-radius:.75rem;object-fit:cover;object-position:center 28%;background:#f3f6f8}
.current-student-grid article::before{grid-column:2;color:var(--red);font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
#postdocs .current-student-grid article::before{content:"Postdoctoral researcher"}
#students .current-student-grid article::before{content:"PhD student"}
#visiting-researchers .current-student-grid article::before{content:"Visiting researcher"}
@media(max-width:700px){.current-student-grid article{grid-template-columns:1fr;padding:1rem}.current-student-grid article::before,.current-student-grid h3,.current-student-grid article>p{grid-column:1}.current-student-grid .person-card-photo{grid-column:1;grid-row:auto;width:100%;height:auto;aspect-ratio:4/3;margin-bottom:.85rem}}

.profile-with-photo{display:grid;grid-template-columns:220px 1fr;gap:2rem;align-items:start;padding:1.4rem;border:1px solid var(--line);border-radius:1rem;background:#fff;box-shadow:0 12px 30px rgba(16,42,67,.08)}
.profile-with-photo .photo-placeholder{aspect-ratio:4/5}
.profile-with-photo p{margin-top:0}
.profile-with-photo h3{margin:.2rem 0 .65rem;color:var(--navy);font:700 clamp(1.32rem,2.4vw,1.88rem)/1.1 Georgia,"Times New Roman",serif}
.profile-kicker{margin-bottom:.35rem;color:var(--red);font-size:.75rem!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.visiting-grid{grid-template-columns:1fr;max-width:none}
.visiting-grid article{grid-column:auto;width:auto}
@media(max-width:700px){.profile-with-photo{grid-template-columns:1fr;padding:1rem}.profile-with-photo .photo-placeholder{max-width:none}}

.past-visitors{background:none;padding-left:0;padding-right:0}

.person-name-link{display:inline-flex;align-items:center;gap:.45rem}.person-name-link:after{content:'→';color:var(--red);font-family:Inter,system-ui,sans-serif;font-size:.75em;transition:transform .2s}.person-name-link:hover:after{transform:translateX(4px)}


.gallery-title{font-size:clamp(1.98rem,4.2vw,3.6rem)!important}

.gallery-social-links{position:relative;isolation:isolate;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:.85rem 1.5rem;align-items:center;min-height:84px;padding-block:1rem}
.gallery-social-links::before{content:"";position:absolute;z-index:-1;top:0;bottom:-1px;left:50%;width:100vw;transform:translateX(-50%);background:linear-gradient(to bottom,#f3f8fb 0%,#eef5f9 62%,var(--soft) 100%)}
.gallery-social-links a{display:inline-flex;align-items:center;gap:.65rem;color:var(--navy);font-size:22.5px;font-weight:700;text-decoration:none}
.gallery-social-links a:hover,.gallery-social-links a:focus-visible{color:var(--red);text-decoration:underline;text-underline-offset:.2em}
.gallery-social-links img{width:2.5rem;height:2.5rem;object-fit:contain;border-radius:.3rem}
.gallery-social-links a:last-child img{width:4rem}
@media(max-width:620px){.gallery-social-links{align-items:flex-start;flex-direction:column}}

.current-student-grid .person-card-photo{display:block}

.martin-profile-photo{display:block;width:220px;height:280px;border-radius:.75rem;object-fit:cover;object-position:center}
@media(max-width:700px){.martin-profile-photo{width:100%;height:auto;aspect-ratio:4/3;max-width:none}}

#postdocs .current-student-grid{grid-template-columns:1fr;max-width:none;gap:1.5rem}
#postdocs .person-card-photo,#visiting-researchers .person-card-photo{object-fit:cover;object-position:center;background:#f3f6f8}
#visiting-researchers .current-student-grid{grid-template-columns:1fr;max-width:none}
#visiting-researchers .current-student-grid article{width:auto}
.gallery-title+.page-lead{max-width:none;white-space:nowrap}
@media(max-width:850px){.gallery-title+.page-lead{white-space:normal}}
#students .current-student-grid{grid-template-columns:1fr;max-width:none}
#students .current-student-grid article{width:auto}
#students .person-card-photo{object-fit:cover;object-position:center;background:#f3f6f8}

.gallery-page-intro{padding-top:3rem}
@media(max-width:620px){.gallery-page-intro{padding-top:2.5rem}}


.people-page{background:linear-gradient(180deg,#fffdf7 0,#fff8e8 16rem,#f5f5ef 21rem,#eaf2f5 27rem,#d9eaf4 34rem,#d9eaf4 41rem,#e8f2f8 49rem,#fff 59rem) top/100% 59rem no-repeat}
.people-page .people-sections{position:relative;isolation:isolate}
.people-page .page-intro{padding-bottom:1.5rem}
.people-page .people-section:first-child{padding-top:2rem}
.people-page .page-intro::before,.people-page .people-sections::before{display:none}

/* Keep the compact link sections at the foot of the People page together. */
.people-page #hall-of-fame,
.people-page #undergrads,
.people-page #collaborative-network,
.people-page #past-visitors{padding:2.7rem 0}
.people-page #hall-of-fame .people-section-layout,
.people-page #undergrads .people-section-layout,
.people-page #collaborative-network .people-section-layout,
.people-page #past-visitors .people-section-layout{gap:1rem}
@media(max-width:620px){.people-page #hall-of-fame,.people-page #undergrads,.people-page #collaborative-network,.people-page #past-visitors{padding:2.2rem 0}}

.gallery-enlarge-note{margin:-.85rem 0 1.6rem;color:var(--muted);font-size:1.25rem;font-weight:650}
.gallery-filter-archive .visitors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));columns:auto;align-items:start}
@media(max-width:900px){.gallery-filter-archive .visitors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.gallery-filter-archive .visitors-grid{grid-template-columns:1fr}}

.gallery-filter-card>a{display:block;cursor:zoom-in}
.gallery-lightbox{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:2.5rem 5rem;border:0;background:transparent;color:#fff;overflow:hidden}
.gallery-lightbox::backdrop{background:rgb(5 22 38/.92)}
.gallery-lightbox figure{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;margin:0}
.gallery-lightbox img{display:block;max-width:100%;max-height:calc(100vh - 9rem);width:auto;height:auto;object-fit:contain;box-shadow:0 18px 55px rgb(0 0 0/.45)}
.gallery-lightbox figcaption{max-width:min(900px,90vw);padding:.8rem 1rem;text-align:center;color:#fff;font-size:.95rem;line-height:1.45}
.gallery-lightbox figcaption span{display:none}
.gallery-lightbox figcaption strong{display:block;color:#fff;font-size:1rem}
.gallery-lightbox-close,.gallery-lightbox-nav{position:fixed;z-index:2;border:0;color:#fff;background:rgb(8 42 70/.78);cursor:pointer;box-shadow:0 4px 18px rgb(0 0 0/.25)}
.gallery-lightbox-close{top:1rem;right:1rem;width:2.8rem;height:2.8rem;border-radius:50%;font-size:2rem;line-height:1}
.gallery-lightbox-nav{top:50%;width:3.4rem;height:4.8rem;border-radius:.5rem;font-size:3.2rem;line-height:1;transform:translateY(-50%)}
.gallery-lightbox-prev{left:1rem}.gallery-lightbox-next{right:1rem}
.gallery-lightbox-close:hover,.gallery-lightbox-close:focus-visible,.gallery-lightbox-nav:hover,.gallery-lightbox-nav:focus-visible{background:var(--red);outline:2px solid #fff;outline-offset:2px}
body:has(.gallery-lightbox[open]){overflow:hidden}
@media(max-width:620px){.gallery-lightbox{padding:3.5rem .75rem 5rem}.gallery-lightbox img{max-height:calc(100vh - 10rem)}.gallery-lightbox-nav{top:auto;bottom:.75rem;width:3rem;height:3rem;border-radius:50%;font-size:2.5rem;transform:none}.gallery-lightbox-prev{left:calc(50% - 3.75rem)}.gallery-lightbox-next{right:calc(50% - 3.75rem)}}
