@charset "utf-8";
/* CSS Document */

body {
	margin: 0;
	background: #111;
	overflow: hidden;
	font-family: sans-serif;
}

.carousel-wrapper {
	position: relative;
	width: 100%;
}

/* horizontal swipe track */
.carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* side padding lets the first/last slide sit in the center */
	padding: 30px calc((100% - var(--card-w)) / 2);
	--card-w: min(80vw, 800px);
	cursor: grab;
	user-select: none;
}

.carousel::-webkit-scrollbar {
	display: none;
}

.carousel.dragging,
.carousel.sliding {
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.carousel.dragging {
	cursor: grabbing;
}

.card {
	position: relative;
	flex: 0 0 var(--card-w);
	/* same 16:9 shape as the pictures */
	height: calc(var(--card-w) * 9 / 16);
	background-size: cover;
	background-position: center;
	background-color: #222;
	border-radius: 15px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
	scroll-snap-align: center;
	opacity: 0.5;
	transition: opacity 0.4s ease;
	cursor: pointer;
}

.card.active {
	opacity: 1;
}

/* ✨ GLOW EFFECT */
.card.active {
	animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
	0%,
	100% {
		box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.15);
	}
	50% {
		box-shadow: 0 0 40px 8px rgba(255, 255, 255, 0.35);
	}
}

.caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 15px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	border-radius: 0 0 15px 15px;
}

.caption:empty {
	display: none;
}

/* ARROWS */
.nav-btn {
	position: absolute;
	top: calc(50% - 15px);
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nav-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}

.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }

/* DOTS */
.dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding-bottom: 20px;
}

.dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
	background: #fff;
	transform: scale(1.3);
}

@media (max-width: 600px) {
	.carousel { gap: 10px; padding-top: 15px; padding-bottom: 15px; --card-w: 90vw; }
	.dots { padding-bottom: 15px; }
	.nav-btn { display: none; }
}

/* LIGHTBOX */
.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-img {
	max-width: 90%;
	max-height: 80%;
	border-radius: 10px;
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
	position: relative;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 30px;
	color: #fff;
	cursor: pointer;
	z-index: 1000;
}
