/* 의사소개 */

.doctors-wrap {
    /*padding-top : 100px;*/
    margin-bottom: 100px;
}

.doctors-wrap > ul > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 20px;
}

/*.doctors-wrap > ul > li:nth-child(2n){*/
/*    flex-direction: row-reverse;*/
/*}*/
.doctors-wrap > ul > li .image {
    width: 414px;
    border-radius: 32px;
    overflow: hidden;
}

.doctors-wrap > ul > li .desc {
    flex: 1;
    text-align: center;
}

.doctors-wrap > ul > li .desc .name {
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 16px;
}

.doctors-wrap > ul > li .desc .sub {
    color: #16344b;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 700;
}

.doctors-wrap > ul > li .desc .history {
    margin: 26px 0 30px;
    font-size: 30px;
    line-height: 1.4;
}

.doctors-wrap > ul > li .desc .member {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 300;
}


/* 직원소개 */
.staff-wrap {
    margin-top: 100px;
}

.staff-wrap ul {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.staff-wrap ul li {
    width: calc((100% - 16px) / 2);
    aspect-ratio: 16/9;
}

.staff-wrap .title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 23px;
    padding-left: 10px;
}

.staff-wrap .sub-title {
    font-size: 18px;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
    padding-left: 10px;
}

.staff-wrap .sub-title div {
    color: #3a4c40;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.staff-wrap li {
    margin-bottom: 100px;
}

.staff-wrap ul li .sub-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.doctors-wrap > ul > li .desc .greetings {
    margin-top: 40px;
}

.doctors-wrap > ul > li .desc .greetings .sub {
    margin-bottom: 24px;
}

.doctors-wrap > ul > li .desc .greetings ul li {
    padding: 0 20px;
    word-break: keep-all;
    text-wrap: balance;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 300;
}
.staff-wrap .label {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 32px;
    font-weight: 600;
    font-style: normal;
}

.staff-wrap .information {
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 8px;
    row-gap: 4px;
    margin-top: 32px;
    align-items: center;
}

.staff-wrap .information .name {
    font-size: 18px;
    font-weight: 700;
}

.staff-wrap .information .grade-name {
    font-size: 14px;
    color: #767676;
    font-weight: 500;
}

.staff-wrap .information .sub-text {
    font-size: 14px;
    grid-column-start: 1;
    grid-column-end: 3;
}

.staff-wrap .information .greeting {
    grid-column-start: 3;
    grid-row-start: 1;
    font-size: 16px;
    font-weight: 700;
    margin-left: 24px;
}

.staff-wrap .information .sub-greeting {
    grid-row-start: 2;
    grid-column-start: 3;
    margin-left: 24px;
    font-size: 14px;
}

.small-staff-wrap ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.small-staff-wrap ul li .sub-image {
    width: 100%;
    aspect-ratio: 1/1.23;
    border-radius: 12px;
    overflow: hidden;
    background: #efefef;
}
.small-staff-wrap ul li .sub-image img{
    width: 100%;
}
.small-staff-wrap .label {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 32px;
    font-weight: 600;
    font-style: normal;


}

.small-staff-wrap .information {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 4px;
    margin-top: 24px;
    align-items: center;
}

.small-staff-wrap .information .name {
    font-size: 18px;
    font-weight: 700;
}

.small-staff-wrap .information .grade-name {
    font-size: 14px;
    color: #767676;
    font-weight: 500;
}

.small-staff-wrap .information .sub-text {
    font-size: 14px;
    grid-column-start: 1;
    grid-column-end: 3;
}

@media screen and (max-width: 1016px) {
    .doctors-wrap > ul {
        padding: 0 10px;
    }

    .staff-wrap {
        padding: 0 10px;
    }
    .small-staff-wrap{
        padding: 0 10px;
    }
    .staff-wrap .information .greeting,.staff-wrap .information .sub-greeting {
        margin-left: 16px;
    }
}

@media screen and (max-width: 768px) {
    .doctors-wrap > ul > li {
        flex-direction: column;
    }

    .doctors-wrap > ul > li .desc .name {
        font-size: 28px;
    }

    .doctors-wrap > ul > li .desc .history {
        font-size: 20px;
        line-height: 26px;
    }

    .doctors-wrap > ul > li .desc .member {
        font-size: 16px;
        line-height: 26px;
    }

    .doctors-wrap > ul > li .image {
        width: 340px;
        margin: auto;
    }

    .doctors-wrap > ul > li .desc {
        width: 100%;
    }

    .doctors-wrap {
        margin-bottom: 120px;
    }

    .staff-wrap .title {
        font-size: 28px;
    }

    .staff-wrap .sub-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .staff-wrap li {
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 480px) {
    .staff-wrap ul li {
        width: 100%;
    }

    .doctors-wrap > ul > li .image {
        width: 100%;
        margin-bottom: 30px;
    }

    .doctors-wrap > ul > li {
        gap: initial;
    }

    .doctors-wrap > ul > li .desc .name {
        font-size: 24px;
        padding-bottom: 13px;
        margin-bottom: 18px;
        margin-bottom: 0;
        border-bottom: none;
    }

    .doctors-wrap > ul > li .desc .sub {
        font-size: 14px;
        line-height: 16px;
    }

    .doctors-wrap > ul > li .desc .history {
        margin: 20px 0;
        font-size: 16px;
        line-height: 30px;
    }

    .doctors-wrap > ul > li .desc .member {
        font-size: 16px;
        line-height: 30px;
    }

    .doctors-wrap {
        margin-bottom: 80px;
    }


    .staff-wrap .title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .staff-wrap .sub-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .staff-wrap li {
        margin-bottom: 20px;
    }

    .doctors-wrap > ul > li .desc .greetings ul li {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .doctors-wrap > ul > li .desc .greetings .sub {
        font-size: 24px;
    }
    .small-staff-wrap ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}