/* Outer shell: clips overflow after tilt; extra padding avoids corner gaps */
.pcw-tgm-shell {
	overflow: hidden;
	width: 100%;
	line-height: 0;
}

/* Rotates the whole strip */
.pcw-tgm-tilt {
	display: block;
	width: 100%;
	transform-origin: center center;
}

.pcw-tgm-viewport {
	overflow: hidden;
	width: 100%;
}

.pcw-tgm-viewport.pcw-tgm-pause-hover:hover .pcw-tgm-track {
	animation-play-state: paused;
}

.pcw-tgm-track {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: max-content;
	animation-name: pcw-tgm-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

.pcw-tgm-item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pcw-tgm-item-inner {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}

.pcw-tgm-item-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 0.5rem 0.65rem 0.65rem;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.9) 100%);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.pcw-tgm-item-overlay-text {
	display: block;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.35;
	color: #f8fafc;
	text-align: left;
	max-height: 42%;
	overflow: hidden;
}

@media (hover: hover) {
	.pcw-tgm-item-inner:hover .pcw-tgm-item-overlay,
	.pcw-tgm-item-inner:focus-within .pcw-tgm-item-overlay {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcw-tgm-item-overlay {
		transition: none;
	}
}

.pcw-tgm-item img {
	display: block;
	height: var(--pcw-tgm-img-h, 160px);
	width: auto;
	max-width: none;
	object-fit: cover;
	vertical-align: middle;
}

@keyframes pcw-tgm-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcw-tgm-track {
		animation: none !important;
		transform: translateX(0);
	}
}
