/* Gallery Block */
.gallery-block {
	margin-bottom: 40px;
	overflow: hidden;
	/* Break out of container */
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.gallery-blur-effect {
	position: absolute;
	width: 611px;
	height: 611px;
	background-image: url(../../../image/blur.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 1;
	pointer-events: none;
	top: 50%;
	left: 10%;
	transform: translateY(-50%);
}

.gallery-block__marquee {
	position: relative;
	width: 100%;
	overflow: hidden;
	z-index: 2;
}

.gallery-block__track {
	max-height: 220px;
	display: flex;
	gap: 20px;
	animation: marquee 30s linear infinite;
	width: max-content;
}

.gallery-block__track:hover {
	animation-play-state: paused;
}
@media (max-width: 1024px) {
	.gallery-block__item {
		height: 110px;
	}
}
/* Desktop: 6 images visible */
.gallery-block__item {
	flex: 0 0 calc((100vw - 140px) / 6); /* 6 images, accounting for gaps */
	height: 400px;
	overflow: hidden;
	position: relative;
}
@media (max-width: 1024px) {
	.gallery-block__item img {
		max-height: 160px;
	}
}
@media (min-width: 1024px) {
	.gallery-block__item img {
		max-height: 100%;
	}
}
.gallery-block__item img {
	width: 296px;
	object-fit: contain;
	display: block;
	transition: transform 0.3s
	ease;
}

.gallery-block__item:hover img {
	transform: scale(1.05);
}

/* Marquee animation */
@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.gallery-block {
		padding: 60px 0;
	}

	.gallery-block__item {
		flex: 0 0 calc((100vw - 80px) / 4);
		height: 110px;
	}

	.gallery-blur-effect {
		width: 400px;
		height: 400px;
		left: 5%;
	}
}

/* Mobile: 3 images visible */
@media (max-width: 768px) {
	.gallery-block {
		padding: 40px 0;
	}

	.gallery-block__item {
		flex: 0 0 calc((100vw - 60px) / 3); /* 3 images, accounting for gaps */
		height: 110px;
		border-radius: 8px;
	}

	.gallery-block__track {
		gap: 10px;
		animation: marquee 20s linear infinite;
	}

	.gallery-blur-effect {
		width: 611px;
		height: 611px;
		left: 0;
	}
}