I have the same problem and these are the codes that i used. In the other video's it works, but in this specific video block it won't let me adjust the padding.
It's almost a year later, but i have a question of you also can put text on top of the image, like a small description when you click on it? If there is a code i would love to know :)