{%
  set classes = [
    'card',
    'rounded-5',
    'border-black',
    'overflow-hidden',
    'min-h-100',
		bg_color,
		url ? 'card-link-wrapper flex-grow-1' : '',
  ]
%}

{% set card_tag = url ? 'a' : 'article' %}

<{{card_tag}} {{attributes.addClass(classes)}} {% if url %}href="{{ url }}"{% endif %}>
  {{ title_prefix }}
  {{ title_suffix }}
	{% if content %}
		<div class="card-img-top" aria-hidden="true">
			{{ image }}
		</div>
		<div class="card-body d-flex flex-column gap-3">
			<div class="d-flex gap-3">{{icon}} {{ location }}</div>
      {% if title %}
			<h3 class="card-title h4">{{ title }}</h3>
      {% endif %}
			{{ content }}
		</div>
	{% endif %}
	{% if footer.0 %}
		<div class="card-footer bg-transparent border-0 text-align-center mt-4 pb-3">
			{{ footer }}
		</div>
	{% endif %}
</{{card_tag}}>
