/* IG Feed Carousel */

.igfc-carousel {
	--igfc-w: 276px;
	--igfc-h: 345px;
	--igfc-gap: 20px;
	--igfc-radius: 10px;
	width: 100%;
	overflow: hidden;
}

.igfc-track {
	display: flex;
	width: max-content;
	animation: igfc-scroll var(--igfc-duration, 35s) linear infinite;
}

.igfc-carousel:hover .igfc-track,
.igfc-carousel:focus-within .igfc-track {
	animation-play-state: paused;
}

/* Spacing as margin (not gap) so both halves are exactly equal: seamless loop. */
.igfc-group {
	display: flex;
	flex: 0 0 auto;
}

.igfc-item {
	display: block;
	flex: 0 0 auto;
	width: var(--igfc-w);
	height: var(--igfc-h);
	margin-right: var(--igfc-gap);
	overflow: hidden;
	border-radius: var(--igfc-radius);
}

.igfc-item img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform .4s ease;
}

.igfc-item:hover img,
.igfc-item:focus-visible img {
	transform: scale(1.06);
}

.igfc-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

@keyframes igfc-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
	.igfc-carousel {
		--igfc-w: 180px;
		--igfc-h: 225px;
		--igfc-gap: 10px;
	}
}

/* No motion: a normal swipeable row, without the duplicate copy. */
@media (prefers-reduced-motion: reduce) {
	.igfc-carousel {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.igfc-track {
		animation: none;
	}

	.igfc-clone {
		display: none;
	}

	.igfc-item {
		scroll-snap-align: start;
	}
}
