Director Ira Sachs says his Cannes-bound film is inspired by the “deep, painful and also transcendent experiences of gay life ...