{% set node_classes = [
  'node',
  'node--project',
  'node--full',
  'node--' ~ node_field_project_type|clean_class
] %}
{% set attributes = attributes|default(create_attribute()) %}

{% extends "@ui-node/node--full.html.twig" %}

{% block node_header %}
  <div class="node__heading-content">
    <div class="node__label">
      {{ node_field_label }}
    </div>

    {{ parent() }}
  </div>

  {% if node_field_erm_page_image %}
    <div class="node__image">
      {{ node_field_erm_page_image }}
    </div>
  {% endif %}
{% endblock %}

{% block node_heading %}
  {{ node_field_display_title|replace({ '|' : '<br />' })|raw }}
{% endblock %}

{% block node_content %}
  <div class="node__project-details">
    {% if node_field_ert_client %}
      <div class="node__client">
        {{ node_field_ert_client }}
      </div>
    {% endif %}

    {% if node_field_project_link %}
      <div class="node__project-link">
        {{ node_field_project_link }}
      </div>
    {% endif %}

    {% if node_view_awards_by_project %}
      <section class="node__awards">
        <h2>Awards</h2>
        {{ node_view_awards_by_project }}
      </section>
    {% endif %}
  </div>

  {% if
    node_field_tldr or
    node_field_erp_statistic
  %}
    <div class="node__tldr-group">
      {% if node_field_tldr %}
        <div class="node__tldr">
          {{ node_field_tldr }}
        </div>
      {% endif %}

      {% if node_field_erp_statistic %}
        <div class="node__tldr-statistic">
          {{ node_field_erp_statistic }}
        </div>
      {% endif %}

      <div class="node__sac-link">
        <a href="#contact">Start a conversation</a>
      </div>
    </div>
  {% endif %}

  {% if node_field_erp_sections %}
    <div class="node__sections">
      {{ node_field_erp_sections }}
    </div>
  {% endif %}
{% endblock %}
