.person-card {
    container-type: inline-size;
    border: 1px solid lightgray;
    background: white;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 1rem;
    border-radius: 10px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    max-width: 100%;
}
.person-card__image-container {
    flex: 0 0 auto;
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.person-card__img {
    border-radius: 50%;
}
.person-card__person-details {
    margin-bottom: 0.5rem;
}
.person-card__person-name {
    font-weight: bold;
    margin-bottom: 0;
}
.person-card__person-job-title {
    font-weight: lighter;
    font-size: 0.9rem;
    margin-top: 0;
}
.person-card__person-bio {
    margin-bottom: 0;
}
.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* CONTAINER RESPONSIVE STYLES */
.person-card-container {
    container-type: inline-size;
    container-name: person-card-container;
}

@container person-card-container (width > 400px) {
    .person-card {
        flex-direction: row;
        align-items: flex-start;
    }
    .person-card__image-container {
        flex: 0 0 auto;
        width: 25%;
    }
}
