{% extends 'block.html.twig' %}
{#
/**
 * @file
 * Theme override for a branding block.
 *
 * Each branding element variable (logo, name, slogan) is only available if
 * enabled in the block configuration.
 *
 * Available variables:
 * - site_logo: Logo for site as defined in Appearance or theme settings.
 * - site_name: Name for site as defined in Site information settings.
 * - site_slogan: Slogan for site as defined in Site information settings.
 */
#}

{% block content %}
  {% set site_logo_url = site_logo ? file_url(site_logo) : '' %}

  <a href="{{ home_url|default('/') }}" class="inline-block" rel="home">
    {% block branding %}
      {% if site_logo %}
        <div class="branding flex items-center">
          <img class="h-full w-full" src="{{ site_logo_url }}" alt="{{ site_name }}" />
        </div>
      {% endif %}
      {% if site_name %}
        <div class="heading-responsive-4xl font-[var(--hgc-font-weight-h1)]">
          {{ site_name }}
        </div>
      {% endif %}
    {% endblock %}
  </a>
{% endblock %}
