Revised accordion functionality and added styles for main content images and captions