Hi,
you should remove the padding-top: 100%, not add it, because it’s already there.
This ensures that the height of the image is equal to the width, because padding in percentages is based on width of the parent.
Check the css-tricks article about it: Aspect Ratio Boxes | CSS-Tricks