<section class="the-studio capabilties-section">
    <div class="the-studio-blurb1">
        <?php 
the_field('studio_blurb_1');
?>
    </div>
    
    <img src="<?php 
the_field('studio_image_1');
?>
" class="the-studio-pic1">

    <div class="the-studio-blurb2">
        <?php 
the_field('studio_blurb_2');
?>
    </div>

    <img src="<?php 
the_field('studio_image_2');
?>
" class="the-studio-pic2">
</section>

<div class="rule the-studio"></div>

<?php 
$case_studies = get_field('case_studies');
related_projects($case_studies, $title = 'Relevant Case Studies');
get_footer();
// }
?>
    <?php 
if ($client_logos) {
    ?>
      <div class="clients-list">
        <?php 
    foreach ($client_logos as $image) {
        ?>
          <div class="client-image">
            <img src="<?php 
        echo $image['url'];
        ?>
" alt="Sticky Pictures Client Logo">
          </div>
        <?php 
    }
    ?>
      </div>
    <?php 
}
?>

  </section>
  <div class="rule clients"></div>
</section>

<?php 
$case_studies = get_field('case_studies');
related_projects($case_studies, $title = 'Case Studies');
        <div class="project-masonry">        
          <?php 
        $images = get_sub_field('images');
        foreach ($images as $count => $image) {
            ?>
      
            <div class="project-masonry-element masonry-element masonry-element-<?php 
            echo $count + 1;
            ?>
">
                <?php 
            lazy_image($image['url'], $image['width'], $image['height']);
            ?>
            </div>
          <?php 
        }
        ?>
        </div> <!-- .project-masonry -->
    </section>
    <?php 
    }
}
?>

<?php 
$related_projects = get_field('related_projects');
related_projects($related_projects);
?>

<?php 
get_footer();