.teachers-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 50%;
    /* height: 14vw;
    width: 100%; */
}

.teachers-item div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teachers-item::after {
    content: "";
    height: 0.05vw;
    width: 25%;

    margin-top: 1vw;
    background-color: var(--color-gray);
}

.teachers-item:not(:last-child):not(:nth-last-child(2)) {
    margin-bottom: 3vw;
}

@media screen and (max-width: 1000px) and (orientation: portrait) {
    .teachers-item {
        width: 90%;
    }

    .teachers-item:not(:last-child) {
        margin-bottom: 3vw !important;
    }

    .teachers-item::after {
        margin-top: 2vw;
        height: 0.2vw;
    }
}