/*
 * Speerdent Hotspot — MOBILE slider styles.
 * Fully scoped under .shm-slider so it can never affect the desktop
 * [speerdent_hotspot] section or the surrounding theme.
 */

.shm-slider,
.shm-slider * {
	box-sizing: border-box;
}

.shm-slider {
	position: relative;
	display: block;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	font-family: 'Poppins', Arial, sans-serif;
	overflow: hidden;
}

/* ---------- top bar (logo + menu icon) ---------- */
.shm-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
}

.shm-logo img {
	display: block;
	height: 26px;
	width: auto;
}

.shm-menu {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 26px;
	height: 26px;
}

.shm-menu span {
	display: block;
	height: 2px;
	width: 100%;
	background: #fff;
	border-radius: 2px;
}

/* ---------- photo stage ---------- */
.shm-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #111;
	overflow: hidden;
}

.shm-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}

.shm-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.shm-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* soft dark gradient at the top so the white logo stays readable */
.shm-stage::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
	z-index: 5;
	pointer-events: none;
}

/* ---------- prev / next arrows ---------- */
.shm-nav {
	position: absolute;
	bottom: 14px;
	z-index: 8;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .8);
	background: rgba(0, 0, 0, .15);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	transition: background .2s ease;
}

.shm-nav:hover,
.shm-nav:focus-visible {
	background: rgba(0, 0, 0, .35);
	outline: none;
}

.shm-nav svg {
	width: 18px;
	height: 18px;
}

.shm-prev {
	right: 66px;
}

.shm-next {
	right: 14px;
}

/* ---------- caption (title + subheading, fades per slide) ---------- */
.shm-body {
	position: relative;
	padding: 22px 20px 26px;
	/* reserve height for the tallest caption (two-line title) so the
	   crossfade never causes the paragraphs below to jump */
	min-height: 132px;
}

.shm-caption {
	position: absolute;
	left: 20px;
	right: 20px;
	top: 22px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .38s ease, transform .38s ease;
	pointer-events: none;
}

.shm-caption.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.shm-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: #1a1a1a;
}

.shm-sub {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8a8a8a;
}
