<?php
$portfolioHomeItems = [
  ['src' => 'assets/images/new-port-1.webp', 'alt' => 'Anti-Paradox by CR Wahl'],
  ['src' => 'assets/images/new-port-2.webp', 'alt' => 'City of Light by JJ Hane'],
  ['src' => 'assets/images/new-port-3.webp', 'alt' => 'Identity Crisis by Clayton Pulsipher'],
  ['src' => 'assets/images/new-port-4.webp', 'alt' => 'Every Grain of Sand by Matt Dinniman'],
  ['src' => 'assets/images/new-port-5.webp', 'alt' => 'Hidden Enemy by Nathan B. Dodge'],
  ['src' => 'assets/images/new-port-6.webp', 'alt' => 'Refract by Yvonne M Thompson'],
  ['src' => 'assets/images/new-port-7.webp', 'alt' => 'A World Adrift by Douglas A. Van Belle'],
  ['src' => 'assets/images/new-port-8.webp', 'alt' => 'Her Darkest Beauty by Patricia Renard Scholes'],
];
?>

<section class="portfolio-home portfolio-home--home">
  <div class="container">
    <div class="portfolio-home-header">
      <div class="portfolio-home-title-wrap">
        <span class="portfolio-home-kicker">OUR PORTFOLIO</span>
        <h2 class="portfolio-home-title">Your Utmost chance of becoming a Published Bestseller Writer</h2>
      </div>
      <div class="portfolio-home-intro">
        <p>Our team of extremely talented ghost book writers and editors ensures that they don&rsquo;t waste a single drop of sweat, making you one of the most sought-after writers of the century!</p>
      </div>
    </div>

    <div class="portfolio-home-grid">
      <?php foreach ($portfolioHomeItems as $item): ?>
        <div class="portfolio-home-item">
          <a
            href="<?= htmlspecialchars($item['src']) ?>"
            class="portfolio-home-link"
            data-fancybox="portfolio-home"
            data-type="image"
            data-caption="<?= htmlspecialchars($item['alt']) ?>"
          >
            <img
              src="<?= htmlspecialchars($item['src']) ?>"
              alt="<?= htmlspecialchars($item['alt']) ?>"
              class="portfolio-home-img"
              loading="lazy"
            >
          </a>
        </div>
      <?php endforeach; ?>
    </div>

    <div class="portfolio-home-action text-center">
      <a href="portfolio.php" class="btn btn-primary btn-portfolio-home">See All Portfolio</a>
    </div>
  </div>
</section>
