/* Gallery experience — dual-row infinite slider */

.section--gallery .container,
.section--gallery .bling-tour-section__frame {
	margin-bottom: 32px;
}

.gallery-slider {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	overflow: hidden;
	padding: 4px 0 8px;
}

.gallery-slider__row {
	position: relative;
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.gallery-slider__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: max-content;
	min-width: 100%;
	animation: gallery-marquee-scroll var(--gallery-duration, 40s) linear infinite;
	will-change: transform;
}

.gallery-slider__row.is-reverse .gallery-slider__track {
	animation-direction: reverse;
}

.gallery-slider__row.is-paused .gallery-slider__track,
.gallery-slider__row:hover .gallery-slider__track {
	animation-play-state: paused;
}

.gallery-slider__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 18px;
	flex-shrink: 0;
	padding-right: 18px;
}

@keyframes gallery-marquee-scroll {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

.gallery-slide-card {
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: 300px;
	max-width: 72vw;
	border-radius: 18px;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid #ECECF4;
	box-shadow: 0 8px 28px rgba(44, 34, 88, 0.06);
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide-card:hover,
.gallery-slide-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(44, 34, 88, 0.1);
	color: inherit;
}

.gallery-slide-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide-card:hover .gallery-slide-card__image,
.gallery-slide-card:focus-visible .gallery-slide-card__image {
	transform: scale(1.04);
}

.gallery-slide-card__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 18px 16px 16px;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(108, 60, 255, 0.18) 35%,
		rgba(44, 34, 88, 0.82) 100%
	);
	color: #FFFFFF;
	pointer-events: none;
}

.gallery-slide-card__title {
	display: block;
	margin: 0 0 2px;
	font-family: var(--font-body, 'Be Vietnam Pro', sans-serif);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
}

.gallery-slide-card__subtitle {
	display: block;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 500;
	opacity: 0.92;
}

@media (max-width: 767px) {
	.section--gallery .container,
.section--gallery .bling-tour-section__frame {
		margin-bottom: 24px;
	}

	.gallery-slider {
		gap: 14px;
	}

	.gallery-slider__group {
		gap: 14px;
		padding-right: 14px;
	}

	.gallery-slide-card {
		width: 260px;
		border-radius: 16px;
	}

	.gallery-slider__track {
		animation-duration: calc(var(--gallery-duration, 40s) * 0.85);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gallery-slider__track {
		animation-duration: 80s;
	}
}
