site(team): centre the group when it wraps instead of leaving a partial row left-aligned

Switch the team row from grid to flex-wrap with justify-content:center, so 5 people
fit on one line at desktop and a 3+2 or 2+2+1 split stays visually centred.
This commit is contained in:
inference-admin committed 2026-11-18 16:06:02 +00:00
1 parent a7c4b4e0be
commit dd03bcecf5
1 file changed
+4 -4
+4 -4
View File
@@ -371,8 +371,9 @@
.team { text-align: center; } .team { text-align: center; }
.team h2 { margin-bottom: 8px; } .team h2 { margin-bottom: 8px; }
.team .intro { font-size: 15px; color: var(--muted); margin-bottom: 36px; } .team .intro { font-size: 15px; color: var(--muted); margin-bottom: 36px; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; } /* Flex (not grid) so a partial last row CENTRES instead of hanging left. */
.person { display: flex; flex-direction: column; align-items: center; } .team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.person { flex: 1 1 150px; max-width: 190px; display: flex; flex-direction: column; align-items: center; }
.person img, .person .avatar-fallback { .person img, .person .avatar-fallback {
width: 128px; height: 128px; border-radius: 50%; object-fit: cover; width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
display: block; margin-bottom: 14px; background: var(--wash); display: block; margin-bottom: 14px; background: var(--wash);
@@ -386,8 +387,7 @@
.person .role { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; } .person .role { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.person a.name { color: var(--ink); } .person a.name { color: var(--ink); }
.person a.name:hover { color: var(--green-deep); text-decoration: underline; } .person a.name:hover { color: var(--green-deep); text-decoration: underline; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 600px) { .team-grid { gap: 22px; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
</style> </style>
</head> </head>