.wisp-staff-directory {
    --wisp-accent: #cb9274;
    --wisp-card-bg: #cb9274;
    --wisp-columns: 1;
    width: 100%;
    max-width: 100%;
}

.wisp-staff-directory,
.wisp-staff-directory * {
    box-sizing: border-box;
}

.wisp-staff-directory__title {
    text-align: center;
    margin: 0 0 30px;
}

.wisp-staff-grid {
    display: grid;
    grid-template-columns: repeat(var(--wisp-columns), minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

.wisp-staff-card {
    display: grid;
    grid-template-columns: minmax(220px, 40%) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--wisp-card-bg);
    color: #fff;
    padding: 34px;
    border-radius: 2px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.wisp-staff-card__media {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 5px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
}

.wisp-staff-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wisp-staff-card__content {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

.wisp-staff-card__content h3 {
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.wisp-staff-card__title {
    margin: 0 0 10px;
    font-size: 16px;
}

.wisp-staff-card__description {
    margin: 0 0 20px;
    line-height: 1.6;
}

.wisp-staff-card__button {
    display: inline-block;
    max-width: 100%;
    color: #fff !important;
    border: 1px solid #fff;
    padding: 11px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.wisp-staff-card__button:hover,
.wisp-staff-card__button:focus {
    background: #fff;
    color: var(--wisp-accent) !important;
    transform: translateY(-1px);
}

/* Two- and three-column layouts use a stacked card so text cannot overflow. */
.wisp-staff-directory--cols-2 .wisp-staff-card,
.wisp-staff-directory--cols-3 .wisp-staff-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 24px;
}

.wisp-staff-directory--cols-2 .wisp-staff-card__media,
.wisp-staff-directory--cols-3 .wisp-staff-card__media {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.wisp-staff-directory--cols-2 .wisp-staff-card__content,
.wisp-staff-directory--cols-3 .wisp-staff-card__content {
    text-align: center;
}

.wisp-staff-directory--cols-2 .wisp-staff-card__content h3 {
    font-size: clamp(27px, 2.4vw, 36px);
}

.wisp-staff-directory--cols-3 .wisp-staff-card__content h3 {
    font-size: clamp(24px, 2vw, 32px);
}

.wisp-staff-directory--cols-2 .wisp-staff-card__description,
.wisp-staff-directory--cols-3 .wisp-staff-card__description {
    font-size: 15px;
    line-height: 1.55;
}

.wisp-staff-directory--cols-2 .wisp-staff-card__button,
.wisp-staff-directory--cols-3 .wisp-staff-card__button {
    width: 100%;
}

/* Three columns only remain when the content area is genuinely wide enough. */
@media (max-width: 1180px) {
    .wisp-staff-directory--cols-3 .wisp-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .wisp-staff-grid,
    .wisp-staff-directory--cols-2 .wisp-staff-grid,
    .wisp-staff-directory--cols-3 .wisp-staff-grid {
        grid-template-columns: 1fr;
    }

    .wisp-staff-directory--cols-2 .wisp-staff-card,
    .wisp-staff-directory--cols-3 .wisp-staff-card {
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .wisp-staff-card,
    .wisp-staff-directory--cols-2 .wisp-staff-card,
    .wisp-staff-directory--cols-3 .wisp-staff-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .wisp-staff-card__media,
    .wisp-staff-directory--cols-2 .wisp-staff-card__media,
    .wisp-staff-directory--cols-3 .wisp-staff-card__media {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .wisp-staff-card__content h3,
    .wisp-staff-directory--cols-2 .wisp-staff-card__content h3,
    .wisp-staff-directory--cols-3 .wisp-staff-card__content h3 {
        font-size: 32px;
    }

    .wisp-staff-card__button {
        width: 100%;
        min-height: 46px;
    }
}
