In case you still don’t realize, you do not have closing } after your #img-caption.
You can’t rush to ask questions on the internet before you even check for typos properly. edit: as an last reserve, there is function called “analyze css” on codepen. It is hidden in menu you can open by pressing arrow down to the right from CCS frame title.