LGBTQ advocates celebrate Kennedy’s legacy but fear what’s next.

The crowd celebrates outside of the Supreme Court in Washington on June 26, 2015, after the court declared that same-sex couples have a right to marry anywhere in the US.Jacquelyn Martin / AP file

In more than three decades on the bench, Kennedy was a crucial swing vote on several decisions that expanded gay rights.

In more than three decades on the Supreme Court, Justice Anthony M. Kennedy wrote the majority opinion in every landmark case that advanced gay rights — most notably Obergefell v. Hodges…