Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Gallery

Kontur Gallery

A gallery block extracted from the Kontur template, available in Tailwind CSS.

0 8
Kontur Gallery preview
kontur.html
<!DOCTYPE html>
<html lang="en">
<head>
  <script>
    window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Kontur Gallery | Tailwind CSS UI Block</title>
  <meta name="description" content="A gallery block extracted from the Kontur template, available in Tailwind CSS.">
  <meta name="keywords" content="Kontur, Tailwind CSS template, HTML website template, portfolio template, art director portfolio, designer portfolio, personal website, case study, dark portfolio, free template">
  <meta name="author" content="Let's templates">
  <link rel="canonical" href="">

  <meta property="og:type" content="product">
  <meta property="og:site_name" content="Let's templates">
  <meta property="og:locale" content="en_US">
  <meta property="og:url" content="">
  <meta property="og:title" content="Kontur | Tailwind CSS Portfolio Template">
  <meta property="og:description" content="A bold black and white Tailwind CSS portfolio for art directors and designers, with outline type, a project wall, a case study and a contact page.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Kontur template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Kontur | Tailwind CSS Portfolio Template">
  <meta name="twitter:description" content="A bold black and white Tailwind CSS portfolio for art directors and designers, with outline type, a project wall, a case study and a contact page.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Kontur template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Instrument+Serif:ital@1&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            night: { DEFAULT: '#0a0a0a', soft: '#161616', line: '#2a2a2a' },
            chalk: { DEFAULT: '#f4f4f0', dim: '#a3a3a0' },
            volt: { DEFAULT: '#d6ff3c', deep: '#b5dc1f' }
          },
          fontFamily: {
            display: ['Unbounded', 'sans-serif'],
            sans: ['"DM Sans"', 'sans-serif'],
            serif: ['"Instrument Serif"', 'serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .outline-type { color: transparent; -webkit-text-stroke: 1.5px #f4f4f0; }
    .outline-volt { color: transparent; -webkit-text-stroke: 1.5px #d6ff3c; }
    .fill-hover { transition: color .3s ease; }
    .fill-hover:hover, .fill-hover:focus-visible { color: #f4f4f0; }
    .vertical { writing-mode: vertical-rl; transform: rotate(180deg); }
    .marquee-track { animation: marquee 40s linear infinite; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    .cursor-ring { position: fixed; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid #f4f4f0; border-radius: 9999px; pointer-events: none; z-index: 60; transition: width .2s, height .2s, margin .2s, background .2s; mix-blend-mode: difference; }
    .cursor-ring.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: #f4f4f0; }
    dialog::backdrop { background: rgba(10, 10, 10, .9); }
    @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
  </style>
</head>
<body class="bg-night font-sans text-chalk antialiased">
<!-- block:start gallery -->
    <section id="work" class="py-20 md:py-32">
      <div class="mx-auto max-w-[1500px] px-6 md:px-16">
        <div class="flex flex-wrap items-end justify-between gap-6">
          <h2 class="font-display text-4xl font-black uppercase md:text-7xl">Selected <span class="outline-type">work</span></h2>
          <a href="work.html" class="text-sm uppercase tracking-[0.2em] text-chalk/70 underline decoration-volt underline-offset-8 hover:text-volt">Full index</a>
        </div>
        <div class="mt-14 gap-6 sm:columns-2 lg:columns-3">
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 0ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1600&q=80" data-title="Halden &middot; Identity" aria-label="Enlarge Halden" data-cursor>
                <img src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=900&q=80" alt="Flowing purple, blue and orange gradient waves" class="aspect-[4/5] w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="halden-identity.html" class="font-display text-lg font-bold uppercase hover:text-volt">Halden</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Identity &middot; 2026</span>
              </figcaption>
            </figure>
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 100ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=1600&q=80" data-title="Inkfall &middot; Campaign" aria-label="Enlarge Inkfall" data-cursor>
                <img src="https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=900&q=80" alt="Clouds of blue and red ink colliding in water" class="aspect-[4/3] w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="work.html" class="font-display text-lg font-bold uppercase hover:text-volt">Inkfall</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Campaign &middot; 2025</span>
              </figcaption>
            </figure>
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 200ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1561070791-2526d30994b5?auto=format&fit=crop&w=1600&q=80" data-title="Swatchbook &middot; Editorial" aria-label="Enlarge Swatchbook" data-cursor>
                <img src="https://images.unsplash.com/photo-1561070791-2526d30994b5?auto=format&fit=crop&w=900&q=80" alt="Printed colour swatches beside a tablet showing a palette" class="aspect-square w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="work.html" class="font-display text-lg font-bold uppercase hover:text-volt">Swatchbook</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Editorial &middot; 2025</span>
              </figcaption>
            </figure>
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 0ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?auto=format&fit=crop&w=1600&q=80" data-title="Afterglow &middot; Motion" aria-label="Enlarge Afterglow" data-cursor>
                <img src="https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?auto=format&fit=crop&w=900&q=80" alt="Dark purple 3D render with a soft pink glow" class="aspect-[4/3] w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="work.html" class="font-display text-lg font-bold uppercase hover:text-volt">Afterglow</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Motion &middot; 2024</span>
              </figcaption>
            </figure>
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 100ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1550684848-fac1c5b4e853?auto=format&fit=crop&w=1600&q=80" data-title="Oil &amp;amp; Light &middot; Interface" aria-label="Enlarge Oil &amp;amp; Light" data-cursor>
                <img src="https://images.unsplash.com/photo-1550684848-fac1c5b4e853?auto=format&fit=crop&w=900&q=80" alt="Macro photo of colourful oil bubbles in water" class="aspect-[4/5] w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="work.html" class="font-display text-lg font-bold uppercase hover:text-volt">Oil &amp; Light</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Interface &middot; 2024</span>
              </figcaption>
            </figure>
            <figure class="mb-6 break-inside-avoid" data-reveal style="--reveal-delay: 200ms">
              <button type="button" class="group relative block w-full overflow-hidden rounded-lg text-left" data-lightbox data-src="https://images.unsplash.com/photo-1634017839464-5c339ebe3cb4?auto=format&fit=crop&w=1600&q=80" data-title="Drift &middot; Identity" aria-label="Enlarge Drift" data-cursor>
                <img src="https://images.unsplash.com/photo-1634017839464-5c339ebe3cb4?auto=format&fit=crop&w=900&q=80" alt="Rippling blue lines forming waves" class="aspect-[4/3] w-full object-cover transition duration-500 group-hover:scale-105">
                <span class="absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-night/70 text-sm opacity-0 transition group-hover:opacity-100"><i class="fa-solid fa-expand"></i></span>
              </button>
              <figcaption class="mt-3 flex items-baseline justify-between gap-4">
                <a href="work.html" class="font-display text-lg font-bold uppercase hover:text-volt">Drift</a>
                <span class="text-xs uppercase tracking-[0.2em] text-chalk/50">Identity &middot; 2023</span>
              </figcaption>
            </figure>
        </div>
      </div>
      <dialog id="lightbox" class="m-auto max-h-[90vh] w-[min(1100px,92vw)] bg-transparent p-0 text-chalk" aria-label="Project preview">
        <figure>
          <img src="" alt="" class="max-h-[78vh] w-full rounded-lg object-contain" data-lightbox-img>
          <figcaption class="mt-4 flex items-center justify-between gap-4">
            <span class="font-display text-sm font-bold uppercase tracking-[0.15em]" data-lightbox-title></span>
            <button type="button" class="grid h-11 w-11 place-items-center rounded-full border border-chalk/40 hover:border-volt hover:text-volt" data-lightbox-close aria-label="Close preview"><i class="fa-solid fa-xmark"></i></button>
          </figcaption>
        </figure>
      </dialog>
    </section>
    <!-- block:end gallery -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      button.addEventListener("click", () => {
        const open = button.getAttribute("aria-expanded") === "true";
        button.setAttribute("aria-expanded", String(!open));
        menu.classList.toggle("hidden", open);
      });
    });

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();

    (() => {
      const ring = document.querySelector("[data-cursor-ring]");
      if (!ring || navigator.webdriver || !matchMedia("(pointer: fine)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches) return;
      ring.classList.remove("hidden");
      document.addEventListener("pointermove", (event) => { ring.style.transform = `translate(${event.clientX}px, ${event.clientY}px)`; });
      document.querySelectorAll("a, button, [data-cursor]").forEach((el) => {
        el.addEventListener("pointerenter", () => ring.classList.add("is-hover"));
        el.addEventListener("pointerleave", () => ring.classList.remove("is-hover"));
      });
    })();

    (() => {
      const dialog = document.getElementById("lightbox");
      if (!dialog || !dialog.showModal) return;
      const img = dialog.querySelector("[data-lightbox-img]");
      const title = dialog.querySelector("[data-lightbox-title]");
      document.querySelectorAll("[data-lightbox]").forEach((button) => {
        button.addEventListener("click", () => {
          img.src = button.dataset.src;
          img.alt = button.querySelector("img")?.alt || "";
          title.innerHTML = button.dataset.title;
          dialog.showModal();
        });
      });
      dialog.querySelector("[data-lightbox-close]")?.addEventListener("click", () => dialog.close());
      dialog.addEventListener("click", (event) => { if (event.target === dialog) dialog.close(); });
    })();
  </script>
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>

From this template

Kontur screenshot

Portfolio

Kontur

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access