Ok, thanks for your help, I made good progress on this.
It looks good, but I have a small problem with the text. I am using your code snippet for my captions, so I can change the margin slightly for each line. But I want to use the same font throughout, so I changed each div class to “caption 2”, and the problem is that it cuts off the bottoms of hanging letters like “y” and “g”. How can I correct this?