I think Abortion is a far more broadly divisive issue in 2022 than gay marriage. Last I saw only one state had majority disapproval of gay marriage: the south of the south. And that was only like by 1% and the poll was a couple of years old.
I don’t think banning gay marriage in ks, for example, would have a shot.
Fwiw, interracial marriage approval rating is like 96%. Apparently in the 50s when they started polling for that, it was at 4%!
I’m sure someone somewhere has written some interesting articles about how the Court has influenced public opinion on that kind of stuff - I.e. whether the court is a reflection of changing values or a facilitator of changing values.