How beaches became a battleground for US civil rights