You are actually describing how cognitive dissonance works.
“even if you or I think someone is being homophobic by saying they don’t think gay marriage is ok, that may not be homophobia by their definition because they think gay people shouldn’t be discriminated against for work, or they have a gay friend, or they’re…