.rhs-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	--rhs-speed: 700ms;
}

/* All slides share one grid cell, so the slider takes the height of the
   image for the current device: wide on desktop, tall on mobile. */
.rhs-track {
	display: grid;
}

.rhs-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--rhs-speed) ease, visibility 0s linear var(--rhs-speed);
}

.rhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--rhs-speed) ease, visibility 0s;
	z-index: 1;
}

.rhs-slide a,
.rhs-slide picture {
	display: block;
}

.rhs-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.rhs-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s, background 0.2s;
}

.rhs-arrow:hover,
.rhs-arrow:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, 0.7);
}

.rhs-arrow:focus-visible,
.rhs-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.rhs-prev { left: 12px; }
.rhs-next { right: 12px; }

.rhs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.rhs-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.rhs-dot[aria-current="true"] {
	background: #fff;
}

@media (max-width: 700px) {
	.rhs-arrow {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}
	.rhs-prev { left: 6px; }
	.rhs-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.rhs-slider { --rhs-speed: 0ms; }
}
