<?php
$bg = $block->image()->toFile();
?>
<section class="pinned-image-section">
  <div class="pinned-image-stage">
    <?php if ($bg): ?>
    <div class="pinned-image-bg" style="background-image: url('<?= $bg->url() ?>')"></div>
    <?php endif ?>
    <div class="pinned-image-overlay"></div>
  </div>
  <?php if ($block->text()->isNotEmpty()): ?>
  <div class="pinned-image-content">
    <?= $block->text() ?>
  </div>
  <?php endif ?>
</section>
