That your cultural bubble. At least two of the Roman Emperors were in same-sex unions and far more were openly in homosexual relationships. Sodomy was just part of the culture. But cultures change, Same-sex marriage was outlawed on December 16, 342 AD by the Christian emperors Constantius II and Constans. Of note there’s a significantly longer gap between emperor Nero and 342 AD than between the founding of the US and today.
As to recent trends, it’s far from a uniform shift globally. Uganda joined made homosexuality punishable by death just last year. https://en.wikipedia.org/wiki/Anti-Homosexuality_Act,_2023
Going back another 20 years. 1991 Iran declared homosexual gay sex as punishable by death.
Saudi Arabia has verified executions for homosexuality as recently as 2019.
etc