/* --- Grid Layout --- */
.ez-staff-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Pulls container back to align with page margins */
}

/* 4 columns on desktop with 15px internal padding (creating a 30px gap between content) */
.ez-staff-column {
    flex: 0 0 25%;
    max-width: 25%;
    gap: 20px;
    box-sizing: border-box;
}

/* --- Card Styles --- */
.ua_card_image-wrapper img {
    width: 100%;
    height: 280px; 
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.ua_card_title {
    font-size: 1.25rem;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.ua_card_subtitle {
    font-size: 0.95rem;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .ez-staff-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .ez-staff-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- Single Person Page --- */
.ez-single-person {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ez-single-col-img {
    flex: 0 0 320px;
}

.ez-single-col-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ez-single-col-info {
    flex: 1;
    min-width: 300px;
}

.ez-contact-item {
    margin-bottom: 8px !important;
}

/* --- THE BIO PARAGRAPH FIX --- */
.ez-bio {
    margin-top: 25px;
}

/* Forces vertical spacing between paragraphs even if theme resets them */
.ez-bio p {
    margin-bottom: 1.5em !important; 
    line-height: 1.7;
    display: block;
}

/* Ensure the last paragraph doesn't have extra bottom space */
.ez-bio p:last-child {
    margin-bottom: 0 !important;
}