/* =========================================================================
   Heights Image Marquee — continuous auto-scroll, pause on hover
   ========================================================================= */
.hmq, .hmq * { box-sizing: border-box; }

.hmq {
	width: 100%;
	overflow: hidden;
}

.hmq-track {
	display: flex;
	gap: 18px;
	width: max-content;
	will-change: transform;
	animation: hmq-scroll var(--hmq-speed, 40s) linear infinite;
}
.hmq-dir-right .hmq-track { animation-direction: reverse; }

.hmq-group {
	display: flex;
	gap: 18px;
	flex: 0 0 auto;
}

.hmq-item {
	flex: 0 0 auto;
	width: 240px;
	height: 320px;
	border-radius: 18px;
	overflow: hidden;
	display: block;
	background: #eee;
}
.hmq-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Pause on hover */
.hmq-pause:hover .hmq-track { animation-play-state: paused; }

/* Fade edges */
.hmq-fade {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* The two groups sit side by side; shifting by half the track loops seamlessly */
@keyframes hmq-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hmq-track { animation: none; }
	.hmq { overflow-x: auto; }
}
