i know it increases across a period and decreases down a group

i dont understand why though, is it because as you go across the period, smaller atoms means the protons within a nucleus have a stronger influence over the atom and thus electrons are attracted to the nucleus? why does it decrease down a group then?

also, do ionization ener