.ddr-rotator {
	position: relative;
	width: 100%;
	margin: 0 auto 1.5em;
	outline: none;
}
.ddr-rotator,
.ddr-rotator:focus,
.ddr-rotator:focus-visible,
.ddr-rotator:active,
.ddr-stage,
.ddr-canvas {
	outline: none !important;
	box-shadow: none !important;
	border: 0;
}
.ddr-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: wait;
	touch-action: pan-y;            /* vertical swipes scroll the page, horizontal swipes spin */
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.ddr-ready .ddr-stage { cursor: grab; }
.ddr-dragging .ddr-stage { cursor: grabbing; }
.ddr-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.ddr-loading {
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: 14px;
	height: 3px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .12);
	overflow: hidden;
	transition: opacity .4s;
}
.ddr-loading span {
	display: block;
	width: 0;
	height: 100%;
	background: rgba(0, 0, 0, .55);
	transition: width .15s linear;
}
.ddr-ready .ddr-loading { opacity: 0; }
.ddr-hint {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin: 12px;
	padding: .4em .9em;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s ease;
}
.ddr-hint-icon { flex: none; display: block; }
.ddr-ready .ddr-hint { opacity: 1; }
.ddr-ready.ddr-touched .ddr-hint { opacity: 0; }
.ddr-no-hint .ddr-hint { display: none; }

/* prompt position */
.ddr-hint-top-left .ddr-hint,
.ddr-hint-top-center .ddr-hint,
.ddr-hint-top-right .ddr-hint { top: 0; }
.ddr-hint-bottom-left .ddr-hint,
.ddr-hint-bottom-center .ddr-hint,
.ddr-hint-bottom-right .ddr-hint { bottom: 0; }
.ddr-hint-top-left .ddr-hint,
.ddr-hint-bottom-left .ddr-hint { left: 0; }
.ddr-hint-top-right .ddr-hint,
.ddr-hint-bottom-right .ddr-hint { right: 0; }
.ddr-hint-top-center .ddr-hint,
.ddr-hint-bottom-center .ddr-hint { left: 50%; transform: translateX(-50%); margin-left: 0; margin-right: 0; }

/* linked rotators */
.ddr-linked.ddr-control-strip .ddr-stage { cursor: pointer; }

/* strip mode: the image ignores drags so the host page / lightbox keeps its swipes */
.ddr-control-strip .ddr-stage,
.ddr-ready.ddr-control-strip .ddr-stage { cursor: default; touch-action: auto; }
.ddr-control-strip.ddr-linked .ddr-stage { cursor: pointer; }

/* rotation strip */
.ddr-strip {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;                    /* comfortable touch target */
	margin-top: 10px;
	padding: 0 4px;
	border: 1px solid rgba(128, 128, 128, .45);
	border-radius: 999px;
	color: inherit;
	cursor: wait;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	opacity: .5;
	transition: opacity .3s;
}
.ddr-ready .ddr-strip { cursor: grab; opacity: 1; }
.ddr-dragging .ddr-strip { cursor: grabbing; }
.ddr-strip:focus-visible { border-color: currentColor; }
.ddr-strip-btn {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
}
.ddr-strip-btn svg { display: block; pointer-events: none; }
.ddr-strip-btn:hover { background: rgba(128, 128, 128, .18); }
.ddr-strip-track {
	position: relative;
	flex: 1;
	height: 100%;
	margin: 0 22px;                  /* room for the handle at each end */
	background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
	opacity: .9;
}
.ddr-strip-thumb {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
	padding: 3px 9px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: rgba(128, 128, 128, .25);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}
