[data-memorial]{color:#2b2925;margin:44px 0;padding:32px;border:1px solid #ddd5c2;border-radius:12px;background:#fbf9f2}.memorial-intro{max-width:740px;margin:0 auto 30px;text-align:center}.memorial-intro>p:first-child{font-size:14px;text-transform:uppercase;letter-spacing:3px;color:#806734}.memorial-intro h2{font:36px/1.25 Georgia,serif;margin:14px 0}.memorial-intro p{line-height:1.7}.memorial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.memorial-card{background:#fff;padding:12px;border:1px solid #ddd8cc;border-radius:6px;text-align:center}.memorial-card .tn-portrait{width:100%;height:230px;background:#eae7df}.memorial-card h4{font:20px/1.4 Georgia,serif;margin:16px 0 8px;overflow-wrap:anywhere}.memorial-professors{margin:35px 0;border-top:1px solid #ded8c9;padding-top:20px}.memorial-professor{display:flex;align-items:center;gap:28px;background:#f1ecde;padding:26px;border-radius:8px}.memorial-professor h4{font:26px/1.3 Georgia,serif;margin:0 0 12px}.memorial-professor p{margin:0;line-height:1.7}.memorial-candle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:110px;height:140px;border-radius:55px 55px 12px 12px;background:#26231d}.memorial-candle span{display:block;position:relative;width:25px;height:54px;background:#f2e5c7;border-radius:3px;margin-top:35px}.memorial-candle span:before{content:'';position:absolute;left:6px;top:-35px;width:13px;height:29px;background:#dfb54a;border-radius:80% 15% 70% 40%;transform:rotate(-10deg);box-shadow:0 0 20px #eabf6755}[data-memorial]>p:last-child{font-size:15px;color:#6c665a;line-height:1.6}@media(max-width:900px){.memorial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){[data-memorial]{padding:18px}.memorial-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.memorial-intro h2{font-size:28px}.memorial-card .tn-portrait{height:185px}.memorial-card h4{font-size:18px}.memorial-professor{gap:18px;padding:18px}.memorial-candle{width:70px;height:105px}.memorial-professor h4{font-size:22px}}@media(max-width:380px){.memorial-grid{grid-template-columns:1fr}.memorial-professor{display:block}.memorial-candle{margin-bottom:20px}}@media print{[data-memorial]{border:0;padding:0}.memorial-card,.memorial-professor{break-inside:avoid}.memorial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.memorial-professor>.tn-portrait{flex-shrink:0;width:180px;height:248px;border:1px solid #ded8c9;border-radius:6px;background:#e8e5dd}@media(max-width:650px){.memorial-professor>.tn-portrait{width:110px;height:152px}}@media(max-width:380px){.memorial-professor>.tn-portrait{width:160px;height:220px;margin-bottom:20px}}
/* Memorial portraits also appear outside .member-card, on the Batchmates page. */
[data-memorial] .tn-portrait{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;isolation:isolate}
[data-memorial] .tn-crop-window{overflow:hidden;position:relative;flex:none}
[data-memorial] .tn-crop-window img{position:absolute;max-width:none;display:block;margin:0}
[data-memorial] .memorial-card{min-width:0;overflow:hidden}
[data-memorial] .memorial-professor{min-width:0;overflow:hidden}
[data-memorial] .memorial-professor>div:not(.tn-portrait):not(.memorial-candle){min-width:0;overflow-wrap:anywhere}
