Text this: Generalized entropy of photons in AdS