<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>

<article id="post-<?php the_ID(); ?>" <?php post_class( 'list-box' ); ?>>
	<div class="list-box-inner">
        <a href="<?php echo esc_url( get_permalink() ); ?>" class="partner-stretch-link" aria-hidden="true" tabindex="-1"></a>
        <div class="list-box-image">
            <?php if ( has_post_thumbnail() ) : ?>
                <?php the_post_thumbnail( 'medium', [ 'loading' => 'lazy' ] ); ?>
            <?php else : ?>
                <div class="partner-initials" aria-label="<?php echo esc_attr( get_the_title() ); ?>">
                    <?php echo esc_html( culturando_get_partner_initials() ); ?>
                </div>
            <?php endif; ?>
        </div>

        <div class="list-box-text">
            <header class="list-box-header">
                <?php the_title( sprintf( '<h2 class="list-box-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
            </header>
    
            <div class="list-box-content">
                <?php the_excerpt(); ?>
            </div>
        </div>
	</div>
</article>