.dirschl360-viewer-wrap {
	position: relative;
	width: 100%;
}

.dirschl360-viewer {
	position: relative;
	width: 100%;
	height: var(--dirschl360-height, 560px);
	min-height: 180px;
	background: #111;
	overflow: hidden;
	touch-action: pan-y;
}

.dirschl360-viewer canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.dirschl360-gesture-pad {
	position: absolute;
	z-index: 10;
	top: 50%;
	left: 50%;
	width: min(34%, 180px);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	cursor: grab;
	opacity: 0;
	transition: opacity .16s ease;
}

.dirschl360-gesture-pad span,
.dirschl360-gesture-pad span::before,
.dirschl360-gesture-pad span::after {
	position: absolute;
	display: block;
	content: "";
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.dirschl360-gesture-pad span {
	width: 42px;
	height: 2px;
}

.dirschl360-gesture-pad span::before {
	left: 20px;
	top: -20px;
	width: 2px;
	height: 42px;
}

.dirschl360-gesture-pad span::after {
	left: 17px;
	top: -3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.dirschl360-show-gesture-hint .dirschl360-gesture-pad {
	opacity: .72;
}

.dirschl360-is-dragging .dirschl360-gesture-pad {
	opacity: 0;
	cursor: grabbing;
}

.dirschl360-loading,
.dirschl360-error {
	position: absolute;
	z-index: 20;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #151515;
	font-size: 14px;
}

.dirschl360-error {
	position: relative;
	padding: 1rem;
	background: #7f1d1d;
}

.dirschl360-controls {
	position: absolute;
	z-index: 30;
	inset: 0;
	pointer-events: none;
}

.dirschl360-fullscreen,
.dirschl360-fullscreen-close {
	position: absolute;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, .58);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	touch-action: manipulation;
}

.dirschl360-fullscreen {
	right: 12px;
	bottom: 12px;
}

.dirschl360-fullscreen-close {
	top: 12px;
	right: 12px;
	display: none;
	font-size: 30px;
}

.dirschl360-fullscreen:hover,
.dirschl360-fullscreen:focus,
.dirschl360-fullscreen-close:hover,
.dirschl360-fullscreen-close:focus {
	background: rgba(0, 0, 0, .78);
}

.dirschl360-viewer:fullscreen,
.dirschl360-viewer.dirschl360-is-fullscreen {
	width: 100vw;
	height: 100vh;
	min-height: 100vh;
}

.dirschl360-viewer:fullscreen .dirschl360-fullscreen,
.dirschl360-viewer.dirschl360-is-fullscreen .dirschl360-fullscreen {
	display: none;
}

.dirschl360-viewer:fullscreen .dirschl360-fullscreen-close,
.dirschl360-viewer.dirschl360-is-fullscreen .dirschl360-fullscreen-close {
	display: block;
}

.dirschl360-projection-menu {
	position: absolute;
	z-index: 40;
	display: none;
	min-width: 180px;
	padding: 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .78);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .32);
}

.dirschl360-projection-menu.is-open {
	display: grid;
	gap: 2px;
}

.dirschl360-projection-menu button {
	display: block;
	width: 100%;
	min-height: 34px;
	padding: 7px 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dirschl360-projection-menu button:hover,
.dirschl360-projection-menu button:focus,
.dirschl360-projection-menu button.is-active {
	background: rgba(255, 255, 255, .16);
}

.dirschl360-caption {
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 0 12px;
	text-align: center;
}

.dirschl360-caption h2 {
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dirschl360-caption p {
	margin: 4px 0 0;
}

.dirschl360-caption-left .dirschl360-caption {
	text-align: left;
}

.dirschl360-caption-overlay-left .dirschl360-caption,
.dirschl360-caption-overlay-center .dirschl360-caption {
	position: absolute;
	z-index: 3;
	right: 12px;
	bottom: 12px;
	left: 12px;
	margin-top: 0;
	padding: 0;
	color: #fff;
	pointer-events: none;
}

.dirschl360-caption-overlay-left .dirschl360-caption {
	text-align: left;
}

.dirschl360-caption-overlay-center .dirschl360-caption {
	text-align: center;
}

.dirschl360-caption-overlay-left .dirschl360-caption h2,
.dirschl360-caption-overlay-left .dirschl360-caption p,
.dirschl360-caption-overlay-center .dirschl360-caption h2,
.dirschl360-caption-overlay-center .dirschl360-caption p {
	display: block;
	width: fit-content;
	min-height: 38px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .58);
	color: #fff;
	line-height: 22px;
}

.dirschl360-caption-overlay-center .dirschl360-caption h2,
.dirschl360-caption-overlay-center .dirschl360-caption p {
	margin-right: auto;
	margin-left: auto;
}

.dirschl360-caption-overlay-left .dirschl360-caption p,
.dirschl360-caption-overlay-center .dirschl360-caption p {
	margin-top: 4px;
}

@media (max-width: 700px) {
	.dirschl360-gesture-pad {
		width: min(28%, 130px);
		min-width: 84px;
	}
}
