.wp360v-viewer.wp360v-3d {
	cursor: default;
	touch-action: auto;
}

.wp360v-viewer.wp360v-3d model-viewer {
	--poster-color: transparent;
	background: var(--wp360v-bg, #fafafa);
}

.wp360v-viewer.wp360v-3d {
	cursor: default;
	touch-action: auto;
	display: flex;
	flex-direction: column;
	height: auto;
	aspect-ratio: unset;
}

.wp360v-3d-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.wp360v-viewer.wp360v-3d model-viewer,
.wp360v-photo-view {
	width: 100%;
	height: 100%;
}

.wp360v-photo-view {
	object-fit: contain;
	background: #fafafa;
}

.wp360v-thumbs {
	display: flex;
	gap: 8px;
	padding: 10px;
	overflow-x: auto;
	background: #fff;
}

.wp360v-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	border: 2px solid transparent;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	background: #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp360v-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp360v-thumb.active {
	border-color: #333;
}

.wp360v-thumb-3d-icon {
	font-size: 11px;
	font-weight: 700;
	color: #444;
}

.wp360v-gallery-wrap {
	width: 100%;
}

.wp360v-viewer {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	background: #fafafa;
	border-radius: 8px;
	overflow: hidden;
	user-select: none;
	cursor: grab;
	touch-action: none;
	border: 1px solid #eee;
}

.wp360v-viewer.wp360v-dragging {
	cursor: grabbing;
}

.wp360v-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp360v-frame {
	max-width: 92%;
	max-height: 92%;
	pointer-events: none;
	transform-origin: center center;
}

.wp360v-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	color: #888;
	letter-spacing: 0.02em;
}

/* Top-left "360°" badge, similar to Blue Nile's viewer */
.wp360v-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(20, 20, 20, 0.75);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 4px 9px;
	border-radius: 20px;
	z-index: 3;
	pointer-events: none;
}

/* Zoom button, top-right */
.wp360v-zoom-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	cursor: pointer;
	z-index: 3;
	transition: background 0.2s ease, transform 0.15s ease;
}
.wp360v-zoom-btn:hover {
	background: #fff;
	transform: scale(1.06);
}

.wp360v-hint {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 12px;
	color: #777;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.wp360v-hint-icon {
	display: inline-block;
	margin-right: 4px;
	font-weight: bold;
}

/* Fullscreen zoom lightbox */
.wp360v-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp360v-lightbox-inner {
	position: relative;
	width: 90vw;
	height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp360v-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.wp360v-lightbox-close {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.wp360v-lightbox-hint {
	position: absolute;
	bottom: -34px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ccc;
	font-size: 13px;
}

@media (max-width: 480px) {
	.wp360v-viewer {
		border-radius: 0;
	}
	.wp360v-lightbox-hint {
		color: #eee;
	}
}
