:root {
	--idcg-marzipano-preview-position: 42%;
	--idcg-marzipano-ui-bg: rgba(58, 68, 84, 0.82);
	--idcg-marzipano-ui-bg-hover: rgba(58, 68, 84, 0.96);
	--idcg-marzipano-accent: #FA6E00;
	--idcg-marzipano-border: #0000001A;
	--idcg-marzipano-border-hover: #FA6E0066;
	--idcg-marzipano-button-width: 240px;
}

.idcg-marzipano-wrapper {
	position: relative;
	width: 100%;
}

.idcg-marzipano-stage {
	position: relative;
	width: 100%;
	min-height: 320px;
	background: #000;
	overflow: hidden;
	height: clamp(360px, 62vh, 620px);
}

.idcg-marzipano-viewer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #000;
	overflow: hidden;
}

.idcg-marzipano-ui {
	pointer-events: none;
}

.idcg-marzipano-title {
	position: absolute;
	top: 0;
	left: 0;
	right: 96px;
	height: 52px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	background: var(--idcg-marzipano-ui-bg);
	color: #fff;
	font-family: "Outfit", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	pointer-events: auto;
}

.idcg-marzipano-scene-name {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.idcg-marzipano-control {
	position: absolute;
	top: 0;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 52px;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: var(--idcg-marzipano-ui-bg) !important;
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 180ms ease;
}

.idcg-marzipano-autorotate {
	right: 64px;
}

.idcg-marzipano-fullscreen {
	right: 0;
}

.idcg-marzipano-control:hover,
.idcg-marzipano-control.is-active {
	background: var(--idcg-marzipano-ui-bg-hover) !important;
	color: #fff;
}

.idcg-marzipano-view-controls {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
	transform: translateX(-50%);
	pointer-events: auto;
}

.idcg-marzipano-view-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 48px;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: rgba(58, 68, 84, 0.72) !important;
	color: #fff;
	font-family: Arial, sans-serif;
	line-height: 1;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.idcg-marzipano-view-controls button:hover {
	background: var(--idcg-marzipano-ui-bg-hover) !important;
	color: #fff;
}

.idcg-marzipano-control:focus-visible,
.idcg-marzipano-view-controls button:focus-visible,
.idcg-marzipano-selector-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.idcg-marzipano-selector {
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	gap: 24px;
	margin-top: 24px;
}

.idcg-marzipano-selector-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: var(--idcg-marzipano-button-width) !important;
	max-width: 100%;
	padding: 16px;
	background: transparent !important;
	border: 1px solid var(--idcg-marzipano-border) !important;
	border-radius: 0;
	cursor: pointer;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.idcg-marzipano-selector-button:hover,
.idcg-marzipano-selector-button.is-active {
	border-color: var(--idcg-marzipano-border-hover) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.idcg-marzipano-selector-button img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center var(--idcg-marzipano-preview-position);
	border: 1px solid #00000014;
}

.idcg-marzipano-selector-button span {
	margin-top: 14px;
	width: 100%;
	text-align: center;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: capitalize;
	line-height: 1.4;
	color: #2B2B2B;
}

.idcg-marzipano-wrapper.is-loading .idcg-marzipano-stage::after {
	content: "Loading panorama...";
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.42);
	color: #fff;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.idcg-marzipano-wrapper.has-error .idcg-marzipano-stage::after {
	content: "Panorama could not be loaded.";
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.idcg-marzipano-control .idcg-marzipano-icon-off,
.idcg-marzipano-control .idcg-marzipano-icon-on {
	display: block !important;
	width: 26px !important;
	height: 26px !important;
	max-width: none !important;
	max-height: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}

.idcg-marzipano-control .idcg-marzipano-icon-on {
	display: none !important;
}

.idcg-marzipano-control.is-active .idcg-marzipano-icon-off {
	display: none !important;
}

.idcg-marzipano-control.is-active .idcg-marzipano-icon-on {
	display: block !important;
}

.idcg-marzipano-view-controls button img {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	max-width: none !important;
	max-height: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}

@media (max-width: 767px) {
	.idcg-marzipano-stage {
		min-height: 340px;
	}

	.idcg-marzipano-title {
		right: 96px;
		height: 48px;
		padding: 0 12px;
		font-size: 14px;
	}

	.idcg-marzipano-control {
		width: 48px !important;
		height: 48px;
		font-size: 22px;
	}

	.idcg-marzipano-view-controls {
		display: none;
	}

	.idcg-marzipano-selector {
		gap: 16px;
	}

	.idcg-marzipano-selector-button {
		width: calc(50% - 8px) !important;
		padding: 10px;
	}

	.idcg-marzipano-selector-button span {
		font-size: 12px;
		letter-spacing: 0.05em;
	}
}

@media (max-width: 480px) {
	.idcg-marzipano-selector-button {
		width: 100% !important;
	}
}