@charset "utf-8";

.sec-intro .inner-16 {
    padding-bottom: 161px;
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 4%;
}

.instructor-grid .item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.instructor-card {
    position: relative;
    cursor: pointer;
}

.card-name {
    position: absolute;
    width: 100%;
    padding: 19px 0 13px;
    text-align: center;
    bottom: 0;
    left: 0;
    border-radius: 0px 0px 20px 20px;
    font-family: var(--eng);
    font-weight: 700;
    font-size: 32px;
    font-size: clamp(1.5rem, 1.379rem + 0.52vw, 2rem);
    letter-spacing: 0.08em;
}

.card-name.red {
    color: #FFF;
    background: #d32e26;
}

.card-name.yellow {
    color: #000;
    background: #f2e300;
}

.card-name.blue {
    color: #FFF;
    background: #489fe4;
}

.position {
    font-family: var(--main);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-align: left;
    color: #000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.is-active {
    display: flex;
}

.modal-window {
    background: #fff;
    width: 90%;
    height: 90%;
    max-width: 1344px;
    padding: 100px 130px;
    border-radius: 30px;
    position: relative;
    overflow: auto;
    box-shadow: 12px 6px 0px rgba(0, 0, 0, 0.08);
}

.modal-close {
    position: fixed;
    top: 60px;
    right: 120px;
    cursor: pointer;
    width: 64px;
    height: 64px;
    color: #FFF;
    font-family: var(--eng);
    font-weight: 500;
    font-size: 72px;
    line-height: 55px;
    text-align: center;
    color: #fff;
    border-radius: 50%;
    margin: 0;
    z-index: 99;
}

.modal-overlay.red .modal-close {
    background: #D32E26;
}

.modal-overlay.yellow .modal-close {
    background: #f2e300;
}

.modal-overlay.blue .modal-close {
    background: #489FE4;
}

.modal-overlay.red .modal-window {
    border: 4px solid #d32e26;
}

.modal-overlay.yellow .modal-window {
    border: 4px solid #f2e300;
}

.modal-overlay.blue .modal-window {
    border: 4px solid #489FE4;
}

.modal-content {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 17px 4%;
    border: none;
}



.modal-left img {
    width: 100%;
    border-radius: 20px;
}



.modal-name {
    font-family: var(--main);
    font-weight: 700;
    font-size: 48px;
    font-size: clamp(2rem, 1.757rem + 1.04vw, 3rem);
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

.modal-right .item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.modal-right .item.column {
    flex-direction: column;
    align-items: flex-start;
}

.modal-right .item:last-child {
    margin-bottom: 0;
}

.modal-right .item .modal-text {
    font-family: var(--main);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 20px;
    color: #212121;
}

.modal-content .label {
    border-radius: 50px;
    background: #fffddd;
    font-family: var(--main);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-align: center;
    color: #000;
    padding: 9px 16px;
}

.modal-content .youtubelist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    grid-column: 1/3;
}

.modal-content .youtubelist .column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.modal-content .youtubelist iframe {
    height: 191px;
    width: 100%;
    border-radius: 10px;
}


@media (max-width: 960px) {
    .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-name {
        padding: 10px 0;
        border-radius: 0px 0px 10px 10px;
    }

    .modal-window {
        padding: 100px 20px;
    }

    .modal-content {
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        right: 10%;
    }

    .modal-right .item {
        flex-wrap: wrap;
    }

    .modal-content .youtubelist .column {
        grid-template-columns: 1fr;
        width: 100%;
    }
}


.gjs-dashed .modal-overlay {
    display: block;
    position: relative;
}

.gjs-dashed .modal-close {
    position: relative;
    top: 0;
    right: 0;
}