{% set max_x = card_template | map(attribute='x2') | max %}
{% set max_y = card_template | map(attribute='y2') | max %}
{% for row in data %}
{% set row_idx = loop.index0 %}
{% endfor %}