.sh-people {
    box-sizing: border-box;
}

.sh-people-grid {
    display: grid;
    margin: 0;
    padding: 0;
}

.sh-people-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
}

.sh-people-image {
    line-height: 0;
}

.sh-people-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.sh-people-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sh-people-name {
    margin: 0;
    line-height: 1.3;
}

.sh-people-position {
    margin: 0;
    line-height: 1.4;
}

.sh-people-button-wrap {
    display: flex;
}

.sh-people-button {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 10px 20px;
}

.sh-people-button:hover {
    opacity: 0.85;
}

.sh-people-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
}

.sh-people-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    line-height: 1;
}

/* Layout 1 — Bordered cards, 3 columns, primary border + light shadow */
.sh-people.layout-1 .sh-people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-people.layout-1 .sh-people-item {
    border: 1px solid var(--e-global-color-primary, #1e8ff7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.sh-people.layout-1 .sh-people-content {
    padding: 20px;
    text-align: center;
}

.sh-people.layout-1 .sh-people-button-wrap,
.sh-people.layout-1 .sh-people-social {
    justify-content: center;
}

/* Layout 2 — Minimal grid, 4 columns, no card styling */
.sh-people.layout-2 .sh-people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sh-people.layout-2 .sh-people-item {
    border: none;
    box-shadow: none;
    background: transparent;
}

.sh-people.layout-2 .sh-people-content {
    padding: 12px 0 0;
    text-align: left;
}

.sh-people.layout-2 .sh-people-button-wrap,
.sh-people.layout-2 .sh-people-social {
    justify-content: flex-start;
}

/* Layout 3 — Circle avatars, centered */
.sh-people.layout-3 .sh-people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-people.layout-3 .sh-people-item {
    align-items: center;
    padding: 28px 20px;
    border: none;
    box-shadow: none;
}

.sh-people.layout-3 .sh-people-image {
    margin-bottom: 16px;
}

.sh-people.layout-3 .sh-people-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

.sh-people.layout-3 .sh-people-content {
    text-align: center;
    align-items: center;
}

.sh-people.layout-3 .sh-people-position {
    opacity: 0.75;
}

.sh-people.layout-3 .sh-people-button-wrap,
.sh-people.layout-3 .sh-people-social {
    justify-content: center;
}

/* Layout 4 — Horizontal cards, image left / content right, 2 columns */
.sh-people.layout-4 .sh-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sh-people.layout-4 .sh-people-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.sh-people.layout-4 .sh-people-image {
    flex-shrink: 0;
    margin-bottom: 0;
}

.sh-people.layout-4 .sh-people-image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.sh-people.layout-4 .sh-people-content {
    text-align: left;
}

.sh-people.layout-4 .sh-people-button-wrap,
.sh-people.layout-4 .sh-people-social {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .sh-people.layout-1 .sh-people-grid,
    .sh-people.layout-3 .sh-people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sh-people.layout-2 .sh-people-grid,
    .sh-people.layout-4 .sh-people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sh-people-grid {
        grid-template-columns: 1fr !important;
    }

    .sh-people.layout-4 .sh-people-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .sh-people.layout-4 .sh-people-image img {
        width: 100%;
        height: auto;
        max-width: 120px;
    }
}
