/* Home page "Our clinicians" grid with a fifth person. The theme's .clinicians.four
   grid would leave Joseph alone on a second row (4+1 on desktop, 2+2+1 on tablets).
   Only applies when the grid actually holds five cards. */
.clinicians.four:has(> :nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}

/* narrower screens: three over two, the two centred under the three */
@media (max-width:1280px){
  .clinicians.four:has(> :nth-child(5):last-child){display:flex;flex-wrap:wrap;justify-content:center}
  .clinicians.four:has(> :nth-child(5):last-child) > *{flex:0 0 calc((100% - 2 * var(--s-6)) / 3);min-width:0}
}
/* phones: one column, as before */
@media (max-width:640px){
  .clinicians.four:has(> :nth-child(5):last-child) > *{flex-basis:100%}
}
