/* Profile photos are 3:4 portraits everywhere (header, lists, detail pages); loaded last so it wins over older round styles. */
.portrait-thumb{display:block;aspect-ratio:3/4;object-fit:cover;object-position:center 30%;border-radius:.35rem;border:1px solid var(--bs-border-color);background:var(--bs-tertiary-bg);flex-shrink:0}
.portrait-thumb--sm{width:45px;height:60px}
.portrait-thumb--md{width:48px;height:64px}
.portrait-zoom{display:inline-flex;padding:0;border:0;background:none;border-radius:.35rem;cursor:zoom-in;flex-shrink:0}
.portrait-zoom:focus-visible{outline:2px solid var(--bs-primary);outline-offset:2px}

/* Balloon with the large photo: who it is, without opening the detail page. */
.portrait-pop{position:absolute;z-index:1080;width:200px;padding:.5rem;border:1px solid var(--bs-border-color);border-radius:.6rem;background:var(--bs-body-bg);box-shadow:0 .5rem 1.5rem rgba(15,23,42,.18)}
.portrait-pop img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 30%;border-radius:.4rem;background:var(--bs-tertiary-bg)}
.portrait-pop__name{margin:.45rem 0 0;font-size:.85rem;font-weight:600;text-align:center;color:var(--bs-body-color)}
.portrait-pop::before{content:"";position:absolute;left:-7px;top:var(--portrait-arrow,24px);width:12px;height:12px;border-left:1px solid var(--bs-border-color);border-bottom:1px solid var(--bs-border-color);background:var(--bs-body-bg);transform:rotate(45deg)}
.portrait-pop[data-left]::before{left:auto;right:-7px;transform:rotate(225deg)}

/* Former round avatars. */
.app-topbar__avatar{width:1.6rem;height:2.13rem;border-radius:.35rem}
.detail-hero__photo{width:72px;height:96px;border-radius:.5rem;object-position:center 30%}
.profile-identity__avatar{width:72px;height:96px;border-radius:.5rem}
.profile-identity__img{border-radius:.5rem;object-position:center 30%}
.student-identity__img{width:96px;height:128px;border-radius:.5rem;object-fit:cover;object-position:center 30%}
.workspace-account-avatar{width:48px;height:64px;border-radius:.4rem;object-position:center 30%}
#userPreviewAvatar{width:48px;height:64px;border-radius:.4rem;object-fit:cover;object-position:center 30%}
.member-photo-upload__large{display:block;width:100%;max-width:300px;height:auto;margin-inline:auto;aspect-ratio:3/4;object-fit:cover;object-position:center 30%;background:var(--bs-tertiary-bg)}
/* Manager's student page: an edit badge on the photo's top right opens the photo modal. */
.portrait-editable{position:relative;cursor:pointer}
.portrait-editable__badge{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--bs-primary);color:#fff;font-size:.65rem;border:2px solid var(--bs-body-bg);box-shadow:0 1px 3px rgba(15,23,42,.25)}
.portrait-editable:hover .portrait-editable__badge,.portrait-editable:focus-visible .portrait-editable__badge{background:var(--bs-primary-text-emphasis)}
/* Öğrenci/öğretmen listesindeki küçük fotoğraflar soru görüntüleme gibi sırayla yüklenir: beklerken kişi simgeli geçici kutu, sağ üstte yenile. */
.portrait-thumb-frame.question-image-loader{position:relative;display:inline-flex;min-width:0;flex-shrink:0}
.portrait-thumb-frame .question-image-loader__status{width:45px;height:60px;min-height:0;padding:0;gap:0;border-radius:.35rem;font-size:0}
.portrait-thumb-frame .question-image-loader__status>.bi{font-size:1.15rem}
.portrait-thumb-frame .question-image-loader__status>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.portrait-thumb-frame .question-image-loader__retry{top:-.4rem;right:-.4rem;width:1.15rem;height:1.15rem;border-radius:50%;font-size:.6rem}
.portrait-thumb-frame[data-image-state=loaded] .question-image-loader__retry{opacity:0;transition:opacity .15s}
.portrait-thumb-frame:hover .question-image-loader__retry,.portrait-thumb-frame:focus-within .question-image-loader__retry{opacity:1}
