Being gay and a catholic priest is not a problem at all. Enjoying a special social status as figure of moral authority that renounced to sex in public, while looking actively for casual sex in private, is the real problem.
[1] https://www.vatican.va/roman_curia/congregations/ccatheduc/d...