.team-member-media {
    isolation: isolate;
}

.team-member-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.team-member-name-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-name-row-video {
    min-height: 2rem;
    padding-inline: 2.25rem;
}

.team-member-name-row > .tm-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.team-video-play,
.team-video-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgb(0 0 0 / 70%);
    color: #fff;
    cursor: pointer;
}

.team-video-play {
    font-size: 1.25rem;
}

.team-video-close {
    font-size: 1.5rem;
}

.team-video-play:hover,
.team-video-close:hover {
    background: #f15b00;
}

.team-video-play:focus-visible,
.team-video-close:focus-visible {
    outline: 3px solid #f15b00;
    outline-offset: 3px;
}

.team-video-error {
    margin: .5rem;
    color: #b42318;
    font-size: .8rem;
}
