{% import 'macro/badge.html' as badge %} {% macro header(item, name, solo=false, identifier=none, icon='hashtag') %}
{% if not solo %} {% endif %}
{{ badge.identifier(identifier, icon=icon, solo=solo, header=true) }} {% if solo %} {{ badge.color(item, header=true) }} {{ badge.print(item, header=true) }} {% endif %} {{ name }}
{% if not solo %}
{% endif %}
{% endmacro %} {% macro image(item, solo=false, last=false, caption=none, alt=none, medium=none, sidecar=none, extra_count=0) %} {% set image_url=item.url_for_image() %} {% if solo and sidecar and extra_count and extra_count > 0 %} {# Cover becomes a carousel: the set cover first, then the Brickset additional images. Each slide reuses .card-img sizing (object-fit: contain + max-height) so every image keeps its aspect ratio at a fixed height, regardless of source resolution. #} {% set carousel_id = 'setImages-' ~ item.fields.id %} {# bt-gallery groups every slide anchor into a single BaguetteBox lightbox gallery (prev/next buttons + arrow-key navigation), instead of each image opening as its own single-image lightbox. #} {% else %}
{% endif %} {% endmacro %}