<div class="images">
    <?php
        $i = 0;
        foreach ( $images as $image ) :
    ?>
        <div class="">
            <a href="<?php echo URL_ATTACHMENTS; ?>/<?php echo $image['pathname']; ?>" target="_blank">
                <img data-lazy="<?php echo URL_ATTACHMENTS; ?>/<?php echo $image['pathname']; ?>" alt="<?php echo $userProject['title'] ?>" class="img-fluid img-thumbnail mx-auto" style="/*max-height:800px;*/">
            </a>
        </div>
    <?php 
            $i++;
        endforeach; 
    ?>
</div>