/* Permanent portraits use a 320 x 470 canvas with a 320px circle 75px from the top. */
.team-section .team-block[data-public-employee-id] .image-box {
    aspect-ratio: 320 / 470;
}

.team-section .team-block[data-public-employee-id] .image-box > a {
    position: absolute;
    top: calc(75 / 470 * 100%);
    left: 0;
    width: 100% !important;
    aspect-ratio: 1;
}

.team-section .team-block[data-public-employee-id] .image-box img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* Retain the shared width, bottom overlap, colours, fonts and hover transitions. */
.team-section .team-block[data-public-employee-id] .name-box {
    height: 140px;
}

.team-section .team-block[data-public-employee-id] .name-box .name,
.team-section .team-block[data-public-employee-id] .name-box .designation {
    max-width: 100%;
    flex-shrink: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    /* Override only dynamic fit-content widths; retain permanent mobile positioning. */
    .team-section .team-block[data-public-employee-id] .image-box {
        width: 320px !important;
    }
}
