{# Media attachments partial — included from ap-item-card.njk #} {# Photo gallery #} {% if item.photo and item.photo.length > 0 %} {% set displayCount = [item.photo.length, 4] | min %} {% set extraCount = item.photo.length - 4 %}