/* 3D Photo Viewer — Styles */

.foto3d-viewer-wrapper {
	position: relative;
	width: 100%;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #1a1a1a;
	margin: 1.5em 0;
}

.foto3d-canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	touch-action: none;
}

/* Loading overlay */
.foto3d-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #ffffff;
	font-family: sans-serif;
	font-size: 14px;
	background: rgba(26, 26, 26, 0.9);
	z-index: 10;
}

.foto3d-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: foto3d-spin 0.8s linear infinite;
}

@keyframes foto3d-spin {
	to { transform: rotate(360deg); }
}

/* Error message */
.foto3d-error-msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff6b6b;
	font-family: sans-serif;
	font-size: 14px;
	background: rgba(26, 26, 26, 0.95);
	z-index: 10;
	padding: 20px;
	text-align: center;
}

/* Fullscreen button */
.foto3d-fullscreen-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 20;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	width: 32px;
	height: 32px;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	line-height: 1;
}

.foto3d-fullscreen-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

/* Fullscreen mode */
.foto3d-viewer-wrapper:fullscreen {
	border-radius: 0;
	width: 100vw !important;
	height: 100vh !important;
}

/* Inline error (shortcode sem id) */
.foto3d-error {
	color: #cc0000;
	font-family: monospace;
	background: #fff3f3;
	padding: 8px 12px;
	border-left: 3px solid #cc0000;
	margin: 1em 0;
}
