From dd03bcecf50ebed048dcad213b328f395866f932 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Wed, 18 Nov 2026 16:06:02 +0000 Subject: [PATCH] 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. --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 69fd3fc..44fc48a 100644 --- a/index.html +++ b/index.html @@ -371,8 +371,9 @@ .team { text-align: center; } .team h2 { margin-bottom: 8px; } .team .intro { font-size: 15px; color: var(--muted); margin-bottom: 36px; } - .team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; } - .person { display: flex; flex-direction: column; align-items: center; } + /* Flex (not grid) so a partial last row CENTRES instead of hanging left. */ + .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 { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; 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 a.name { color: var(--ink); } .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 { grid-template-columns: repeat(2, 1fr); gap: 22px; } } + @media (max-width: 600px) { .team-grid { gap: 22px; } }