/* ===staff=== */
.jw-staff-section {
    margin: 20px 0 20px;
}

.jw-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    max-width: 730px;
    margin: 0 auto;
}

.jw-staff-card {
    background: #f5f4f1;
    padding: 40px 26px 34px;
    text-align: center;
    min-height: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jw-staff-card--featured {
    grid-column: 1 / -1;
    max-width: 330px;
    width: 100%;
    margin: 0 auto;
}

.jw-staff-card--has-popup {
    cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jw-staff-card--has-popup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.jw-staff-card__image {
    margin-bottom: 24px;
}

.jw-staff-card__image img {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    max-width: 180px;
    max-height: 180px;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.jw-staff-card__content {
    max-width: 100%;
    margin: 0 auto;
}

.jw-staff-card__name {
    font-size: 25px;
    line-height: 1.3;
    font-weight: 400;
    color: #353535;
    margin-bottom: 10px;
}

.jw-staff-card__qualifications {
    font-size: 15px;
    line-height: 1.7;
    color: #4d4d4d;
}

.jw-staff-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.jw-staff-modal.jw-staff-modal--active {
    display: block;
}

.jw-staff-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.jw-staff-modal__dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: #ffffff;
    padding: 42px 34px 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    border-radius: 4px;
}

.jw-staff-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #444444;
    padding: 0;
}

.jw-staff-modal__name {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 400;
    color: #2f2f2f;
    margin: 0 0 10px;
}

.jw-staff-modal__qualifications {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 24px;
}

.jw-staff-modal__description {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
}

.jw-staff-modal__description p:last-child {
    margin-bottom: 0;
}

body.jw-staff-modal-open {
    overflow: hidden;
}

html {
    scrollbar-gutter: stable;
}

@media (max-width: 767px) {
    .jw-staff-section {
        margin: 50px 0 70px;
    }

    .jw-staff-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 22px;
    }

    .jw-staff-card--featured {
        grid-column: auto;
        max-width: none;
    }

    .jw-staff-card {
        padding: 30px 20px 26px;
        min-height: 0;
    }

    .jw-staff-card__image {
        margin-bottom: 18px;
    }

    .jw-staff-card__image img {
        width: 180px;
        height: 180px;
        min-width: 180px;
        min-height: 180px;
        max-width: 180px;
        max-height: 180px;
    }

    .jw-staff-card__name {
        font-size: 21px;
    }

    .jw-staff-card__qualifications {
        font-size: 14px;
    }

    .jw-staff-modal__dialog {
        width: calc(100% - 24px);
        padding: 34px 20px 24px;
        margin: 4vh auto;
    }

    .jw-staff-modal__name {
        font-size: 24px;
    }

    .jw-staff-modal__qualifications,
    .jw-staff-modal__description {
        font-size: 15px;
    }
}
/* === end of staff=== */