.flipbook {
	background: transparent;
	position: relative;
	overflow: visible;
	touch-action: pan-y;
	transition: box-shadow .3s ease;
	max-width: 90vw;
	max-height: min(80vh, 80dvh); /* never exceed 80% viewport height */
	margin: 0 auto;
}
/* Flipbook Page Background Handling */
.flipbook .page,
.flipbook .hard {
  background-size: contain !important;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white; /* or your preferred fallback */
  overflow: hidden;
}

.flipbook img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}
.flipbook canvas {
	pointer-events: none !important;
}
.flipbook-page-container {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 4rem;
	box-sizing: border-box;
}
