{% if not localgov_base_remove_css %}
  {{ attach_library('localgov_base/quote') }}
{% endif %}

{%
  set classes = [
    "pull-out-quote",
    'paragraph',
    'paragraph--type--' ~ paragraph.bundle|clean_class,
    view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
    not paragraph.isPublished() ? 'paragraph--unpublished'
  ]
%}

<figure{{ attributes.addClass(classes) }}>

  <blockquote class="pull-out-quote__content">
    {% include 'localgov_base:icon' with {
        theme: 'localgov_base_france',
        icon_path: 'assets/icons',
        icon_name: 'icon--quote',
      }
    %}
    « {{ content|without('localgov_author') }} »
  </blockquote>

  {% if paragraph.localgov_author.value %}
    <figcaption class="pull-out-quote__author">
      {{ paragraph.localgov_author.value }}
    </figcaption>
  {% endif %}
</figure>