Text this: Variational approach for the N-state spin and gauge Potts model