.fpg-wrapper {
	position: relative;
	width: 100%;
}

.fpg-top-bar {
	position: absolute;
	top: 20px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	z-index: 10;
	pointer-events: none;
	padding: 0 20px;
}

.fpg-hint {
	background-color: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	transition: opacity 0.3s ease;
}

.fpg-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
	background: #f8f8f8;
	user-select: none;
	-webkit-user-select: none;
	/* Touch properties for mobile drag */
	touch-action: none;
}

.fpg-viewport:active {
	cursor: grabbing;
}

.fpg-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	will-change: transform;
}

.fpg-row {
    position: absolute;
    left: 0;
    will-change: transform;
    display: flex;
}

/* Absolute positioned tiles within rows */
.fpg-item {
	position: absolute;
	overflow: hidden;
	transition: transform 0.3s ease;
	border-radius: 8px; /* fallback */
	display: flex;
	align-items: center;
	justify-content: center;
}

.fpg-item::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: none;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.fpg-item:hover::after {
	opacity: 1;
}

.fpg-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	transition: transform 0.4s ease;
	z-index: 0;
}

.fpg-item-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 15px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(10px);
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fpg-item-title {
	color: #ffffff;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.fpg-item-subtitle {
	color: #dddddd;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
}

.fpg-item:hover .fpg-item-content {
	opacity: 1;
	transform: translateY(0);
}

.fpg-item:hover img {
	transform: scale(1.06);
}
