.pfr-flipbook-wrapper {
	max-width: 100%;
	margin: 0 auto 20px auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	outline: none;
}

.pfr-flipbook-wrapper .pfr-loading {
	padding: 40px;
	font-size: 15px;
	color: #666;
	text-align: center;
}

.pfr-flipbook-wrapper .pfr-book {
	width: 100%;
	max-width: 100%;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.25 );
	background: #f4f0e8;
}

/* Individual pages rendered by page-flip get this class from the library;
   we just make sure images fill the page cleanly. */
.pfr-book img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

.pfr-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
}

.pfr-controls button {
	background: #222;
	color: #fff;
	border: none;
	border-radius: 4px;
	width: 36px;
	height: 36px;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.pfr-controls button:hover {
	background: #444;
}

.pfr-controls .pfr-page-indicator {
	font-size: 14px;
	color: #333;
	min-width: 60px;
	text-align: center;
}

.pfr-flipbook-wrapper.pfr-is-fullscreen {
	background: #111;
	width: 100vw;
	height: 100vh;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.pfr-flipbook-wrapper.pfr-is-fullscreen .pfr-book {
	max-height: 85vh;
}

.pfr-error {
	color: #c0392b;
	font-weight: 600;
}

@media ( max-width: 600px ) {
	.pfr-controls button {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}
}
