/* WP PPTX Viewer frontend styles. */

.wppv-viewer {
	position: relative;
	overflow: hidden;
	max-width: 100%;
	box-sizing: border-box;
}

.wppv-viewer * {
	box-sizing: border-box;
}

.wppv-viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: #f5f5f5;
}

.wppv-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #f5f5f5;
}

.wppv-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	color: #888;
	font-size: 14px;
}

.wppv-protected {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

/* Floating dynamic watermark */
.wppv-watermark {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 30;
}

.wppv-watermark span {
	position: absolute;
	top: 50%;
	left: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: rgba(0, 0, 0, 0.12);
	text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
	transform: translateY(-50%) translateX(-100%) rotate(-25deg);
	animation: wppv-watermark-move 24s linear infinite;
}

@keyframes wppv-watermark-move {
	0% {
		transform: translateY(-50%) translateX(-100%) rotate(-25deg);
	}
	100% {
		transform: translateY(-50%) translateX(200%) rotate(-25deg);
	}
}

/* Slider engine */
.wppv-slider {
	height: 100%;
}

.wppv-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.wppv-slide {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
}

.wppv-slide.wppv-active {
	display: flex;
}

.wppv-slide-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Audio player for the slider engine */
.wppv-audio {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	z-index: 35;
}

/* Controls */
.wppv-controls {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 40;
	padding: 6px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
}

.wppv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.wppv-btn:hover {
	background: #eee;
}

/* Modal / Lightbox */
.wppv-modal-trigger {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
}

.wppv-modal-trigger img {
	display: block;
	max-width: 100%;
	height: auto;
	padding: 0;
	background: transparent;
	border: 0;
}

.wppv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow: auto;
	background: rgba(10, 10, 10, 0.9);
}

.wppv-modal[hidden] {
	display: none;
}

.wppv-modal .wppv-viewer {
	width: 90vw !important;
	height: 85vh !important;
}

.wppv-modal-close {
	position: fixed;
	top: 16px;
	right: 24px;
	z-index: 1000000;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

body.wppv-modal-open {
	overflow: hidden;
}

/* Access-denied fallback */
.wppv-fallback {
	padding: 16px;
	border: 1px dashed #ccc;
	border-radius: 6px;
	background: #fafafa;
	color: #555;
}
