.ctu-profiles-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* exactly N items per row */
.ctu-profiles-wrapper.layout-static .ctu-profile-item {
  flex: 0 0 calc((100% - (var(--ctu-members) - 1) * 16px) / var(--ctu-members));
}

.ctu-profiles-wrapper.layout-carousel {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.ctu-profiles-wrapper.layout-carousel .ctu-profile-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.ctu-profile-item {
  text-align: center;
}

/* avatar wrapper centred, and img auto-margined */
.ctu-avatar {
  text-align: center;
}
.ctu-avatar img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.ctu-name,
.ctu-joined {
  margin-top: 6px;
}

.ctu-pagination {
  text-align: center;
  margin: 12px 0;
}
.ctu-pagination a {
  margin: 0 8px;
  text-decoration: none;
}

.ctu-load-more {
  display: block;
  margin: 16px auto;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background: #0073e6;
  color: #fff;
  border-radius: 4px;
}
