{% set cards = [] %}
{% for item in items %}
  {% set card %}
    {% embed "@molecules/tm-cards/modern-card/modern-card.twig" %}
      {% set img_url = item.img_url %}
      {% set img_alt = item.img_alt %}
      {% set title = item.title %}
      {% set card_link = item.card_link %}
    {% endembed %}
  {% endset %}

  {% set cards = cards|merge([card]) %}
{% endfor %}

<div class="bg-full-branding-light-0 mt-4 pt-3 pb-5">
  <h2 data-alt-anchor-link="{{ text.popular_routes_anchor_link }}">{{ text.popular_routes_header }}</h2>
  {% include "@organisms/tm-scaffold/rows-cols/rows-cols.twig" with {
    'wrapper_class': 'mt-4',
    'batch': 3,
    'items': cards,
    'auto_height': true,
    'col_class': 'col-lg-4',
    'row_class': 'row justify-content-center',
    'scrolling_mobile': true,
    'scrolling_dots': true,
  } only %}
</div>