/* Southern Home content slideshow */

.sh-slideshow {
	--sh-accent: #b08d57;
	margin: 2rem auto;
	max-width: 100%;
}

.sh-slideshow:focus {
	outline: none;
}

.sh-slideshow:focus-visible {
	outline: 2px solid var(--sh-accent);
	outline-offset: 4px;
}

.sh-slideshow__title {
	margin: 0 0 1rem;
	text-align: center;
	font-size: 1.25rem;
}

.sh-slideshow__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f4f2ee;
}

.sh-slideshow__track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}

.sh-slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 100%;
	height: clamp(300px, 60vh, 700px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sh-slide img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	display: block;
}

.sh-slide__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 40%;
	overflow: auto;
	padding: 0.6rem 1rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	color: #fff;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.4;
}

.sh-slide__caption a {
	color: #fff;
	text-decoration: underline;
}

.sh-slideshow__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.sh-slideshow__nav:hover,
.sh-slideshow__nav:focus-visible {
	background: rgba(0, 0, 0, 0.75);
	outline: none;
}

.sh-slideshow__nav--prev {
	left: 10px;
}

.sh-slideshow__nav--next {
	right: 10px;
}

.sh-slideshow__dots {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 0.75rem;
}

.sh-slideshow__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfc8bd;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.sh-slideshow__dot[aria-selected='true'] {
	background: var(--sh-accent);
	transform: scale(1.25);
}

.sh-slideshow__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.sh-slideshow__nav {
		width: 36px;
		height: 36px;
		font-size: 1.3rem;
	}

	.sh-slide {
		height: clamp(220px, 50vh, 520px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-slideshow__track {
		transition: none;
	}
}
