Thank you! It worked! Which has now led me to a couple new questions.
1) Is there code I can add to alter the spacing above the pagination for mobile and desktop separately? I tried duplicating this and putting @media only screen and (max-width: 640px) and adjusting for mobile, then adding @media only screen and (min-width: 950px) and adjusting padding for desktop, but the mobile wouldn't change.
2) Is there a way to set a max width for the words in the pagination titles to have them push the next line? They sometimes look a little wonky when the left and the right are significantly different in length. A different idea would be to have them not center vertically but to be top aligned so there's some visual consistency.