.team-profiles-widget {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-photo-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.team-photo-img {
    width: 100%;
    height: 100%;
    display: block;
}

.team-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Aspect ratio rules */
.tp-aspect-16-9 .team-photo-container {
    aspect-ratio: 16/9;
    height: auto !important;
}
.tp-aspect-4-3 .team-photo-container {
    aspect-ratio: 4/3;
    height: auto !important;
}
.tp-aspect-1-1 .team-photo-container {
    aspect-ratio: 1/1;
    height: auto !important;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Card Styling (Witte vakjes) */
.profile-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: inherit; /* aligns image element relative to card alignment */
}

.profile-member-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Rounded shape overrides */
.profile-shape-round .profile-img-wrap,
.profile-shape-round .profile-member-img {
    border-radius: 50% !important;
}

/* Shadow rules for photos specifically */
.tp-shadow-yes .profile-img-wrap {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hover Zoom rules */
.tp-hover-zoom-yes .profile-img-wrap:hover .profile-member-img {
    transform: scale(1.1);
}
.profile-member-img {
    transition: transform 0.3s ease;
}

.profile-name {
    margin: 5px 0 2px;
    font-size: 1.1em;
    font-weight: 600;
}

.profile-role {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}
