{# components/horizontal-card/horizontal-card.twig #}
{% set image_url = content.field_image ? content.field_image['#items'].entity.uri.value|image_style('thumbnail') : '' %}
{% set title = content.field_title %}
{% set text = content.field_text %}

<div class="card mb-3 card-horizontal" style="max-width: 840px;">
  <div class="row g-0">
    <div class="col-md-4">
      {{ content.field_image }}
    </div>
    <div class="col-md-8">
      <div class="card-body">
        {% if title %}
          <h5 class="card-title">{{ title }}</h5>
        {% endif %}
        {% if text %}
          <p class="card-text">{{ text }}</p>
        {% endif %}
      </div>
    </div>
  </div>
</div>
