.teacher-universal .teacher-profile {
    display: flow-root;
    overflow-wrap: anywhere;
}

.teacher-universal .teacher-profile__hero {
    margin-bottom: 24px;
}

.teacher-universal .teacher-profile__portrait {
    float: right;
    width: 500px;
    max-width: 45%;
    height: auto;
    margin: 0 0 24px 32px;
}

.teacher-universal .teacher-profile__role {
    font-weight: 700;
}

.teacher-universal .teacher-section {
    margin: 24px 0;
}

.teacher-universal .teacher-section--photos,
.teacher-universal .teacher-section--video {
    clear: both;
}

.teacher-universal .teacher-profile__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
}

.teacher-universal .teacher-profile__gallery figure {
    min-width: 0;
    margin: 0;
}

.teacher-universal .teacher-profile__gallery img,
.teacher-universal .teacher-section img {
    display: block;
    max-width: 100%;
    height: auto;
}

.teacher-universal .teacher-profile__gallery figcaption {
    margin-top: 8px;
}

.teacher-universal .teacher-profile__video video,
.teacher-universal .teacher-profile__video iframe {
    display: block;
    width: 100%;
    max-width: 854px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media screen and (max-width: 767px) {
    .teacher-universal .teacher-profile__portrait {
        float: none;
        max-width: 100%;
        margin: 0 0 24px;
    }
}
