<?php
$press_photo_kit_datas = get_field('press_photo_kit_datas', 'option');


?>

<section <?php echo get_block_wrapper_attributes(["class" => "homegrade-blocks-press-photo-kit"]); ?>>
	<?php echo $content; ?>
	<ul class="homegrade-blocks-press-photo-kit__photo-grid">
		<?php foreach ($press_photo_kit_datas as $photo) : ?>
			<div class="homegrade-blocks-press-photo-kit__photo-asset">

				<img src="<?php echo $photo['sizes']['large']  ?>" alt="" />
				<a class="cta cta--download cta--white cta--circular" href="<?php echo $photo['url']  ?>" download="<?php echo $photo['filename']  ?>" title="<?php echo __('Télécharger', "homegrade-blocks") ?>">

				</a>
			</div>

		<?php endforeach; ?>
	</ul>

</section>