% var size = 4; %>
<% if(screenshots.length > 0) { %>
<% for (let i = 0; i < screenshots.length; i++) { %>
<% if(screenshots.length == 4 && i == 0) { size = 12 } %>
<% if(screenshots.length == 5 && i == 0) { size = 6 } %>
<% if(screenshots.length == 5 && i == 1) { size = 6 } %>
<% if(screenshots.length == 4 && i >= 1) { size = 4 } %>
<% if(screenshots.length == 5 && i >= 2) { size = 4 } %>
<% } %>
<% } %>