<?php
$bg = $block->image()->toFile();
?>
<section class="pinned-text-section">
  <div class="pinned-text-stage">
    <div class="pinned-text-bg<?= $bg ? '' : ' t1' ?>" data-parallax="1"<?= $bg ? ' style="background-image: url(\'' . $bg->url() . '\')"' : '' ?>></div>
    <div class="pinned-text-overlay"></div>
    <div class="pinned-text-copy">
      <h2><?= $block->heading() ?></h2>
      <?php if ($block->body()->isNotEmpty()): ?>
      <?= $block->body() ?>
      <?php endif ?>
    </div>
  </div>
</section>
