/* Retro Film Projector 24 – Frontend Styles */

.rfp24-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #0a0805;
}

.rfp24-container {
	position: relative;
	width: 100%;
	height: 540px;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.rfp24-container:active {
	cursor: grabbing;
}

.rfp24-container canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.rfp24-container canvas.rfp24-ready {
	opacity: 1;
}

/* Loading indicator */
.rfp24-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 240, 200, 0.5);
	font-family: serif;
	font-size: 14px;
	letter-spacing: 0.1em;
	pointer-events: none;
}

.rfp24-loading.rfp24-hidden {
	display: none;
}

/* Gyroscope button */
.rfp24-gyro-btn {
	display: none;
	position: absolute;
	bottom: 16px;
	right: 16px;
	z-index: 10;
	background: rgba(184, 134, 11, 0.2);
	border: 1px solid rgba(184, 134, 11, 0.5);
	color: #b8860b;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	align-items: center;
	justify-content: center;
}

.rfp24-gyro-btn:hover {
	background: rgba(184, 134, 11, 0.35);
}

.rfp24-gyro-btn.rfp24-gyro-visible {
	display: flex;
}

.rfp24-gyro-btn.rfp24-gyro-active {
	background: rgba(184, 134, 11, 0.5);
	border-color: #b8860b;
}

/* Lightbox */
.rfp24-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rfp24-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.rfp24-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.rfp24-lightbox-media {
	max-width: 100%;
	max-height: 75vh;
	overflow: hidden;
	border: 3px solid #8a7a5a;
	box-shadow: 0 0 60px rgba(255, 240, 200, 0.15);
}

.rfp24-lightbox-media img,
.rfp24-lightbox-media video {
	display: block;
	max-width: 100%;
	max-height: 75vh;
	object-fit: contain;
}

.rfp24-lightbox-caption {
	color: rgba(255, 240, 200, 0.85);
	font-family: serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-align: center;
	margin: 0;
	padding: 0 16px;
}

.rfp24-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: rgba(255, 240, 200, 0.7);
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.rfp24-lightbox-close:hover {
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.rfp24-container {
		height: 440px;
		cursor: default;
	}

	.rfp24-lightbox-media {
		max-height: 65vh;
	}
}

@media (max-width: 480px) {
	.rfp24-container {
		height: 340px;
	}

	.rfp24-lightbox-content {
		max-width: 95vw;
	}

	.rfp24-lightbox-media {
		max-height: 60vh;
	}

	.rfp24-lightbox-caption {
		font-size: 12px;
	}
}
