{% if returnTo is not defined %}
    {% set returnTo = entry.id %}
{% endif %}
<article class="testimonials-grid__card">
    <div class="testimonials-grid__image">
        {% include '_partials/image.twig' with {image: testimonial.image.one(), class: 'testimonials-grid__img', transform: 'testimonialCard'} %}
    </div>
    <div class="testimonials-grid__content">
        <h3 class="testimonials-grid__name">— {{ testimonial.nameText }}</h3>
        <p class="testimonials-grid__subtitle">
            {{ testimonial.cause }}
        </p>
        <a href="{{ testimonial.url }}?from={{ returnTo }}" class="testimonials-grid__link">
            <span class="testimonials-grid__link-desktop">{{ 'link.read-full-story'|t }}</span>
            <span class="testimonials-grid__link-mobile">{{ 'link.read-more'|t }}</span>
            <i class="fa-solid fa-chevron-right" aria-hidden="true"></i>
        </a>
    </div>
</article>