<!-- VIBRANT COLLECTION CAROUSEL -->
<style>
/* Page styling */
body, html {
margin: 0;
padding: 0;
overflow: hidden;
}
.carousel-container {
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.carousel-track {
display: flex;
transition: transform 0.6s ease-in-out;
width: 100%;
height: 100%;
}
.carousel-slide {
flex: 0 0 100%;
position: relative;
}
.carousel-slide img {
width: 100%;
height: 100vh;
object-fit: cover;
}
/* Navigation arrows */
.arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.7);
color: #000;
border: none;
font-size: 2rem;
padding: 0.8rem 1.2rem;
cursor: pointer;
z-index: 10;
transition: background 0.3s;
}
.arrow:hover {
background: rgba(255,255,255,0.9);
}
.arrow-left {
left: 10px;
}
.arrow-right {
right: 10px;
}
/* Find Out More button */
.find-out-more {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
padding: 14px 28px;
background-color: rgba(255, 255, 255, 0.8);
color: #000;
font-weight: bold;
border: none;
text-transform: uppercase;
cursor: pointer;
transition: background 0.3s;
z-index: 5;
}
.find-out-more:hover {
background-color: #fff;
}
</style>
<div class="carousel-container">
<div class="carousel-track" id="carouselTrack">
<!-- Each slide -->
<div class="carousel-slide">
<img src="[via.placeholder.com](https://via.placeholder.com/1600x900/ff5959/ffffff?text=Vibrant+1)" alt="Vibrant Image 1">
<button class="find-out-more" onclick="openImage('[via.placeholder.com](https://via.placeholder.com/2400x1400/ff5959/ffffff?text=Vibrant+1+Full)')">Find Out More</button>
</div>
<div class="carousel-slide">
<img src="[via.placeholder.com] (https://via.placeholder.com/1600x900/ffa659/ffffff?text=Vibrant+2)" alt="Vibrant Image 2">
<button class="find-out-more" onclick="openImage('[via.placeholder.com](https://via.placeholder.com/2400x1400/ffa659/ffffff?text=Vibrant+2+Full)')">Find Out More</button>
</div>
<div class="carousel-slide">
<img src="[via.placeholder.com](https://via.placeholder.com/1600x900/f0ff59/000000?text=Vibrant+3)" alt="Vibrant Image 3">
<button class="find-out-more" onclick="openImage('[via.placeholder.com](https://via.placeholder.com/2400x1400/f0ff59/000000?text=Vibrant+3+Full)')">Find Out More</button>
</div>
</div>
<button class="arrow arrow-left" id="prev">❮</button>
<button class="arrow arrow-right" id="next">❯</button>
</div>
<script>
const track = document.getElementById('carouselTrack');
const slides = Array.from(track.children);
const nextButton = document.getElementById('next');
const prevButton = document.getElementById('prev');
let index = 0;
function updateSlide() {
track.style.transform = `translateX(-${index * 100}%)`;
}
nextButton.addEventListener('click', () => {
index = (index + 1) % slides.length;
updateSlide();
});
prevButton.addEventListener('click', () => {
index = (index - 1 + slides.length) % slides.length;
updateSlide();
});
function openImage(url) {
window.location.href = url;
// Optional: replace with shop/product page link in Squarespace
}
</script>