{% set background = horse.owner and horse.owner.color ? horse.owner.color : 'bg-primary-500' %}
<div class="relative">
<div class="absolute top-0 left-0 w-full h-full opacity-75 {{ background }}"
style="background-color: {{ background }};"></div>
<div class="container relative z-10 pt-8 pb-5 md:pb-12 md:pt-24 lg:pb-16 lg:pt-32">
<div class="flex w-full gap-x-3 md:gap-x-7 lg:gap-x-14 gap-y-10">
<div class="grid items-center flex-none w-16 h-16 grid-cols-4 col-span-9 grid-rows-4 md:w-36 md:h-36 lg:w-56 lg:h-56 lg:col-span-2">
{% if horse.image is not null or horse.originCountry is null %}
<div class="flex col-span-4 col-start-1 row-span-4 row-start-1">
{% include 'component/avatar.html.twig' with {
avatar: horse.image,
initials: horse.name|initials,
size: 'hero',
rounded: false
} only %}
</div>
<img class="relative self-end object-contain col-start-1 row-start-4 m-px z-60"
loading="lazy"
src="https://flagcdn.com/w320/{{ horse.originCountry|lower }}.png"
alt="{{ horse.originCountry }}"
title="{{ horse.originCountry|country_name }}" />
{% else %}
<div class="flex col-span-4 col-start-1 row-span-4 row-start-1">
<img class=""
loading="lazy"
src="https://flagcdn.com/w320/{{ horse.originCountry|lower }}.png"
alt="{{ horse.originCountry }}"
title="{{ horse.originCountry|country_name }}" />
</div>
{% endif %}
</div>
<div class="grid flex-1 gap-2">
<div class="flex flex-col tracking-wide text-white font-headline">
<h1 class="text-2xl font-medium leading-tight uppercase md:font-light md:text-4xl lg:text-5xl">
{{ horse.displayName }}
</h1>
{% set pedigree = horse.modules.pedigree %}
{% if pedigree and (pedigree.father or pedigree.mother) %}
<div class="text-xl font-medium uppercase md:font-light md:text-3xl">
<span>{{ horse.modules.Pedigree.father|default('/') }}</span>
<span>-</span>
<span>{{ horse.modules.Pedigree.mother|default('/') }}</span>
</div>
{% else %}
<div class="text-xl font-medium uppercase md:font-light md:text-3xl">
<span>{{ horse.father|default('/') }}</span>
<span>-</span>
<span>{{ horse.mother|default('/') }}</span>
</div>
{% endif %}
<div class="hidden gap-4 my-4 sm:flex">
{% for item in section_navigation_get() %}
<a target="_top" href="{{ '#' ~ item.anchor }}" class="btn-sm btn btn-neutral">
{{ item.name|trans }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>