.odyssee-slideshow {
	width: min(100%, 760px);
	margin: 2.5rem auto 5rem;
}

.odyssee-slideshow__viewport {
	position: relative;
	overflow: hidden;
	aspect-ratio: 700 / 410;
	border-radius: 8px;
	background: #111;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.odyssee-slideshow__slide {
	position: absolute;
	inset: 0;
	display: grid;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.odyssee-slideshow__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.odyssee-slideshow__slide img {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.odyssee-slideshow__slide figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1.2rem 4.5rem 1.25rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.odyssee-slideshow__control {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, transform 0.2s ease;
}

.odyssee-slideshow__control:hover,
.odyssee-slideshow__control:focus-visible {
	background: rgba(0, 0, 0, 0.82);
	outline: none;
	transform: translateY(-50%) scale(1.04);
}

.odyssee-slideshow__control--prev {
	left: 1rem;
}

.odyssee-slideshow__control--next {
	right: 1rem;
}

.odyssee-slideshow__counter {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 2;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

.odyssee-slideshow__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 1.2rem;
}

.odyssee-slideshow__dot {
	width: 0.82rem;
	height: 0.82rem;
	border: 0;
	border-radius: 50%;
	background: #b8b8b8;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.odyssee-slideshow__dot:hover,
.odyssee-slideshow__dot:focus-visible {
	background: #717171;
	outline: none;
	transform: scale(1.15);
}

.odyssee-slideshow__dot.is-active {
	background: #237b9a;
}

html[data-theme="dark"] .odyssee-slideshow__viewport {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .odyssee-slideshow__dot {
	background: #64748b;
}

html[data-theme="dark"] .odyssee-slideshow__dot.is-active {
	background: #60a5fa;
}

@media (max-width: 640px) {
	.odyssee-slideshow {
		margin: 2rem auto 4rem;
	}

	.odyssee-slideshow__viewport {
		border-radius: 0;
		box-shadow: none;
	}

	.odyssee-slideshow__slide figcaption {
		padding: 1rem 3.6rem 1.05rem;
		font-size: 0.95rem;
	}

	.odyssee-slideshow__control {
		width: 2.4rem;
		height: 2.4rem;
	}

	.odyssee-slideshow__control--prev {
		left: 0.6rem;
	}

	.odyssee-slideshow__control--next {
		right: 0.6rem;
	}

	.odyssee-slideshow__dot {
		width: 0.75rem;
		height: 0.75rem;
	}
}
