Free
Gallery
Cairnlight Gallery
A gallery block extracted from the Cairnlight template, available in Tailwind CSS.
0
0
A gallery block extracted from the Cairnlight template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with All-Access
<!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>Cairnlight Gallery | Tailwind CSS UI Block</title>
<meta name="description" content="A gallery block extracted from the Cairnlight template, available in Tailwind CSS.">
<meta name="keywords" content="Cairnlight, Tailwind CSS template, HTML website template, travel website template, walking holidays, tour operator template, mountain huts, interactive map, itinerary page, trip price calculator">
<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="Cairnlight | Tailwind CSS Travel Template">
<meta property="og:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Cairnlight template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Cairnlight | Tailwind CSS Travel Template">
<meta name="twitter:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Cairnlight 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=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
pine: { DEFAULT: '#073a2f', deep: '#042720', land: '#0f5342', high: '#17654f' },
cream: '#efe9dc',
mint: '#9fd8c0'
},
fontFamily: {
sans: ['Jost', 'sans-serif'],
serif: ['"Cormorant Garamond"', 'serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.night { background: radial-gradient(120% 90% at 55% 45%, #0a4a3b 0%, #073a2f 45%, #042720 100%); }
.lamp { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .85)); transition: opacity .5s ease; }
.lamp[data-dim] { opacity: .1; }
.label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.slant { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.lead { display: inline-flex; align-items: center; }
.lead::before { content: ""; width: .4rem; height: .4rem; border: 1px solid currentColor; border-radius: 9999px; }
.lead > span:first-child { width: 1.75rem; height: 1px; background: currentColor; }
.lead > span:last-child { border: 1px solid currentColor; padding: .85rem 1.6rem; transition: background-color .3s ease, color .3s ease; }
.lead:hover > span:last-child { background: #efe9dc; color: #042720; }
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.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; }
@media (prefers-reduced-motion: reduce) { .lamp { transition: none; } }
</style>
</head>
<body class="bg-pine-deep font-sans font-light text-cream antialiased">
<!-- block:start gallery -->
<section class="px-6 py-20 md:px-12 md:py-28" data-rail>
<div class="mx-auto max-w-[1500px]">
<div class="flex flex-wrap items-end justify-between gap-6">
<div>
<p class="label text-mint">Five ways through</p>
<h2 class="mt-5 font-serif text-4xl font-light md:text-6xl">Pick a line on the map.</h2>
</div>
<div class="flex gap-3">
<button type="button" data-rail-prev aria-controls="route-rail" aria-label="Earlier routes" class="flex h-12 w-12 items-center justify-center rounded-full border border-cream/40 transition hover:bg-cream hover:text-pine-deep"><i class="fa-solid fa-arrow-left text-sm"></i></button>
<button type="button" data-rail-next aria-controls="route-rail" aria-label="More routes" class="flex h-12 w-12 items-center justify-center rounded-full border border-cream/40 transition hover:bg-cream hover:text-pine-deep"><i class="fa-solid fa-arrow-right text-sm"></i></button>
</div>
</div>
<div id="route-rail" class="rail mt-12 flex snap-x snap-mandatory gap-6 overflow-x-auto" data-rail-track tabindex="0" aria-label="Routes">
<a href="the-long-glen.html" class="group w-[80%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<span class="relative block overflow-hidden">
<img src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=900&q=80" alt="A green valley under cliffs with a path running through it" class="aspect-[3/4] w-full object-cover transition duration-700 group-hover:scale-105" loading="lazy">
<span class="absolute inset-0 bg-gradient-to-t from-pine-deep via-pine-deep/10 to-transparent"></span>
<span class="absolute left-5 top-5 font-serif text-lg">01</span>
<span class="absolute inset-x-5 bottom-5">
<span class="block font-serif text-3xl leading-tight">The Long Glen</span>
<span class="label mt-3 flex gap-4 text-[.6rem] text-cream/80"><span>5 days</span><span>74 km</span><span class="text-mint">Moderate</span></span>
</span>
</span>
</a>
<a href="routes.html" class="group w-[80%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<span class="relative block overflow-hidden">
<img src="https://images.unsplash.com/photo-1486870591958-9b9d0d1dda99?auto=format&fit=crop&w=900&q=80" alt="A dark mountain rising above a golden moor" class="aspect-[3/4] w-full object-cover transition duration-700 group-hover:scale-105" loading="lazy">
<span class="absolute inset-0 bg-gradient-to-t from-pine-deep via-pine-deep/10 to-transparent"></span>
<span class="absolute left-5 top-5 font-serif text-lg">02</span>
<span class="absolute inset-x-5 bottom-5">
<span class="block font-serif text-3xl leading-tight">The Ridge of Lights</span>
<span class="label mt-3 flex gap-4 text-[.6rem] text-cream/80"><span>7 days</span><span>112 km</span><span class="text-mint">Hard</span></span>
</span>
</span>
</a>
<a href="routes.html" class="group w-[80%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<span class="relative block overflow-hidden">
<img src="https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=900&q=80" alt="A path through tall trees with low sun between the trunks" class="aspect-[3/4] w-full object-cover transition duration-700 group-hover:scale-105" loading="lazy">
<span class="absolute inset-0 bg-gradient-to-t from-pine-deep via-pine-deep/10 to-transparent"></span>
<span class="absolute left-5 top-5 font-serif text-lg">03</span>
<span class="absolute inset-x-5 bottom-5">
<span class="block font-serif text-3xl leading-tight">The Birchwood Round</span>
<span class="label mt-3 flex gap-4 text-[.6rem] text-cream/80"><span>3 days</span><span>38 km</span><span class="text-mint">Easy</span></span>
</span>
</span>
</a>
<a href="routes.html" class="group w-[80%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<span class="relative block overflow-hidden">
<img src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=900&q=80" alt="Misty green hills with a walker standing on a rock" class="aspect-[3/4] w-full object-cover transition duration-700 group-hover:scale-105" loading="lazy">
<span class="absolute inset-0 bg-gradient-to-t from-pine-deep via-pine-deep/10 to-transparent"></span>
<span class="absolute left-5 top-5 font-serif text-lg">04</span>
<span class="absolute inset-x-5 bottom-5">
<span class="block font-serif text-3xl leading-tight">The Salt Path North</span>
<span class="label mt-3 flex gap-4 text-[.6rem] text-cream/80"><span>5 days</span><span>81 km</span><span class="text-mint">Moderate</span></span>
</span>
</span>
</a>
<a href="routes.html" class="group w-[80%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<span class="relative block overflow-hidden">
<img src="https://images.unsplash.com/photo-1483728642387-6c3bdd6c93e5?auto=format&fit=crop&w=900&q=80" alt="A snow-covered peak in blue evening light" class="aspect-[3/4] w-full object-cover transition duration-700 group-hover:scale-105" loading="lazy">
<span class="absolute inset-0 bg-gradient-to-t from-pine-deep via-pine-deep/10 to-transparent"></span>
<span class="absolute left-5 top-5 font-serif text-lg">05</span>
<span class="absolute inset-x-5 bottom-5">
<span class="block font-serif text-3xl leading-tight">The Winter Three</span>
<span class="label mt-3 flex gap-4 text-[.6rem] text-cream/80"><span>3 days</span><span>31 km</span><span class="text-mint">Hard</span></span>
</span>
</span>
</a>
</div>
<a href="routes.html" class="lead label mt-12"><span></span><span>All the routes</span></a>
</div>
</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);
});
});
document.querySelectorAll("[data-huts]").forEach((root) => {
const seasons = root.querySelectorAll("[data-season]");
const views = root.querySelectorAll("[data-view]");
const huts = root.querySelectorAll("[data-hut]");
seasons.forEach((season) => season.addEventListener("click", () => {
seasons.forEach((other) => other.setAttribute("aria-pressed", String(other === season)));
const key = season.dataset.season;
let open = 0;
huts.forEach((hut) => {
const lit = key === "all" || hut.dataset.open.split(" ").includes(key);
if (hut.tagName.toLowerCase() === "circle") { hut.toggleAttribute("data-dim", !lit); if (lit) open += 1; } else { hut.hidden = !lit; }
});
root.querySelector("[data-huts-count]").textContent = open;
}));
views.forEach((view) => view.addEventListener("click", () => {
views.forEach((other) => other.setAttribute("aria-pressed", String(other === view)));
root.querySelectorAll("[data-view-panel]").forEach((panel) => { panel.toggleAttribute("hidden", panel.dataset.viewPanel !== view.dataset.view); });
}));
});
document.querySelectorAll("[data-rail]").forEach((rail) => {
const track = rail.querySelector("[data-rail-track]");
const move = (direction) => track.scrollBy({ left: direction * (track.firstElementChild.clientWidth + 24), behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth" });
rail.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
rail.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
});
document.querySelectorAll("[data-trip]").forEach((trip) => {
const nightButtons = trip.querySelectorAll("[data-trip-nights]");
const walkersLabel = trip.querySelector("[data-trip-walkers]");
const link = trip.querySelector("[data-trip-link]");
let nights = 5;
let walkers = 2;
const update = () => {
const extra = (key) => { const box = trip.querySelector(`[data-trip-extra="${key}"]`); return box.checked ? Number(box.dataset.price) : 0; };
const total = walkers * nights * (78 + extra("bag") + extra("lunch")) + nights * extra("guide");
walkersLabel.textContent = walkers;
trip.querySelector("[data-trip-total]").textContent = total.toLocaleString("en-GB");
trip.querySelector("[data-trip-each]").textContent = Math.round(total / walkers).toLocaleString("en-GB");
trip.querySelector("[data-trip-nights-label]").textContent = nights;
if (link) link.href = `contact.html?nights=${nights}&walkers=${walkers}`;
};
nightButtons.forEach((button) => button.addEventListener("click", () => {
nights = Number(button.dataset.tripNights);
nightButtons.forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
update();
}));
trip.querySelectorAll("[data-trip-step]").forEach((button) => button.addEventListener("click", () => {
walkers = Math.min(8, Math.max(1, walkers + Number(button.dataset.tripStep)));
update();
}));
trip.addEventListener("change", update);
update();
});
document.querySelectorAll("[data-quotes]").forEach((root) => {
const quotes = JSON.parse(root.querySelector("[data-quotes-data]").textContent);
let index = 0;
root.querySelectorAll("[data-quotes-step]").forEach((button) => button.addEventListener("click", () => {
index = (index + Number(button.dataset.quotesStep) + quotes.length) % quotes.length;
root.querySelector("[data-quotes-quote]").textContent = quotes[index].quote;
root.querySelector("[data-quotes-name]").textContent = quotes[index].name;
root.querySelector("[data-quotes-place]").textContent = quotes[index].place;
root.querySelector("[data-quotes-index]").textContent = index + 1;
}));
});
(() => {
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));
})();
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<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>
Premium
Travel
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.
Tailwind CSS · HTML download