<div class="wt-album-tab row py-4">
	<?php foreach ($media_list as $media): ?>
		<figure class="figure text-center col-sm-6 col-md-4 col-lg-3 col-xl-2 wt-album-tab-figure">
			<?php foreach ($media->mediaFiles() as $media_file): ?>
				<?php if ($media_file->isImage()): ?>
					<?= $media_file->displayImage(100, 100, 'contain', ['class' => 'img-thumbnail wt-album-tab-image']) ?>
				<?php endif ?>
			<?php endforeach ?>
			<figcaption class="figure-caption wt-album-tab-caption">
				<a href="<?= e($media->url()) ?>">
					<?= $media->getFullName() ?>
				</a>
			</figcaption>
		</figure>
	<?php endforeach ?>
</div>
