.person_items {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Each card is a row: image + info */
.person_item {
    box-sizing: border-box;
    flex: 0 0 33.333%;
    padding: 0 12px;
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    gap: 16px;          /* space between image and text */
}

/* Image stays fixed size; never shrinks */
.profile_image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 12px 0 rgb(0 0 0 / 40%);
    border: 1px solid #000;
    overflow: hidden;
    position: relative;
    margin: 0;          /* don’t center; we’re in a row */
}
.profile_image img {
    width: 100%;
    height: auto;
    transition: transform .7s ease-in-out;
}
.profile_image:hover img { transform: scale(1.08); }

/* Info fills the remaining width */
.profile_info {
    flex: 1 1 auto;
    min-width: 0;       /* allows text to wrap instead of overflowing */
    text-align: left;
}

/* Text */
.profile_name {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    /* no max-width cap so it can use available space */
}
.profile_job {
    font-size: 14px;
    line-height: 18px;
}
.profile_link {
    font-size: 12px;
    margin-top: 12px;
}

/* Tablet: 2 columns, smaller image */
@media (max-width: 1024px) {
    .person_item { flex: 0 0 50%; }
    .profile_image {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }
}

/* Mobile: 1 column, still side-by-side inside the card */
@media (max-width: 600px) {
    .person_item {
        flex: 0 0 100%;
        padding: 0 8px;
        margin-bottom: 16px;
        /* keep row layout so image + info stay side-by-side */
    }
    .profile_image {
        flex-basis: 84px;
        width: 84px;
        height: 84px;
    }
    .profile_name { font-size: 15px; line-height: 19px; }
    .profile_job  { font-size: 13px; line-height: 17px; }
}
