Search for high-mass Zγ resonances in e + e − γ and μ + μ − γ final states in proton-proton collisions at s = 8 $$ \sqrt{s}=8 $$ and 13 TeV