/* About-the-lecturer slide: always dark, teal accents (independent of light/dark theme) */
.slide.about { background: radial-gradient(120% 120% at 80% 20%, #4A1426 0%, #1A0910 55%, #060304 100%); color: #F6ECEE; border-top-color: #C9962E; display: grid; grid-template-columns: 1fr 300px; gap: 28px; font-size: clamp(14px, 1.45vw, 18px); padding-bottom: 56px; }
.slide.about h2 { color: #fff; font-size: 2.4em; margin: .1em 0; letter-spacing: .01em; }
.slide.about .crumb { color: #D3B4BC; font-size: .8em; margin-bottom: 10px; }
.slide.about .pills { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.slide.about .pill { font-weight: 700; font-size: .8em; padding: 4px 14px; border-radius: 999px; color: #fff; }
.pill.g { background: #B8325A; } .pill.b { background: #8A6A1E; } .pill.o { background: #D4A017; color: #2A1D00; } .pill.p { background: #5A1A2E; }
.slide.about .kicker { letter-spacing: .18em; font-weight: 800; font-size: .85em; color: #fff; }
.slide.about .role { font-family: Consolas, "Courier New", monospace; color: #F3C65C; margin-bottom: 14px; }
.slide.about .bio { font-size: 1em; line-height: 1.6; color: #F1E4E7; }
.slide.about .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.slide.about .badges span { border: 1px solid #8A6A1E; background: rgba(201,150,46,.12); color: #F3D98B; border-radius: 999px; padding: 5px 14px; font-size: .8em; }
.slide.about .mail a { color: #F3C65C; font-family: Consolas, monospace; font-size: .85em; }
.slide.about .cmeta { margin-top: 16px; display: flex; flex-wrap: wrap; font-size: .85em; }
.slide.about .cmeta span { padding: 0 14px; border-left: 1px solid #8A6A1E; } .slide.about .cmeta span:first-child { padding-left: 0; border: 0; }
.slide.about .about-photo { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.2)); border-radius: 10px; min-height: 280px; overflow: hidden; }
.slide.about .about-photo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.slide.about .about-photo.nophoto::after { content: "assets/img/lecturer.jpg"; color: #8A7078; font: 12px Consolas, monospace; align-self: center; }
.slide.about .foot { color: #D3B4BC; border-top: 1px solid #8A6A1E; padding-top: 8px; }
.slide.about .foot b { color: #fff; }
@media (max-width: 800px) { .slide.about { grid-template-columns: 1fr; } .slide.about .about-photo { min-height: 200px; } }
@media print { .slide.about { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.slide.about .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* fit: keep the photo's own aspect ratio, never stretch to the text column height */
.slide.about .about-photo { align-self: center; aspect-ratio: 282 / 550; min-height: 0; width: 100%; max-height: 78vh; justify-self: end; align-items: stretch; }
.slide.about .about-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
@media (max-width: 800px) { .slide.about .about-photo { max-width: 240px; justify-self: center; } }


/* About page (menu → About): same dark teal look, sized to fit one screen */
.about-page .slide.about { font-size: clamp(13px, 1.12vw, 16px); padding: 22px 36px 40px; margin: 6px auto 0; min-height: 0; width: min(1240px, 100%); }
.about-page .slide.about h2 { font-size: 2.1em; }
.about-page .slide.about .about-photo { max-height: calc(100vh - 150px); }
.about-page .slide.about .bio { line-height: 1.55; }
