Responsive Grid Layout Image Album
The widget creates an image in an HTML5 figure element and a text block in an article element. Both items sit side by side on wider screens - each in a grid column. At the break point, the article element positions itself below the figure.
The figure element has a figcaption which can appear only on hover when viewed on computers and laptops. On click or tap, the lightbox slideshow opens. As can be seen from the above examples, the image can be placed to the left or right of the text.
The article element has a heading and text which can be vertically aligned using the CSS grid "vertical-align" property. The options are start, center or end to align it at the top, center and bottom.
Images
The image which appears on page load should be cropped to the maximum width that it will be displayed at - in this case 800px. The slideshow images will have a maximum width equal to the width of the image file. They should be cropped to this width before importing into EverWeb.
Navigation
The slides are navigated using directional arrows or grab and drag when viewed on computers. There is an option to hide the arrows on mobile devices where the slides can be swiped.
Testing
Test the slideshow in the iOS Simulator using an iPhone in both portrait and landscape mode to make sure the slideshow images have a suitable aspect ratio.