/**
 * Single Web Story — chrome above fullscreen viewer + one-story tweaks.
 */

.eb-ws-single-main {
	position: relative;
	min-height: 40vh;
}

.eb-ws-single__chrome {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100001;
	padding: 0.65rem 1rem;
	background: linear-gradient(
		to bottom,
		rgba(15, 23, 42, 0.92) 0%,
		rgba(15, 23, 42, 0.55) 70%,
		transparent 100%
	);
	pointer-events: none;
}

.eb-ws-single__chrome * {
	pointer-events: auto;
}

.eb-ws-single__back {
	margin: 0;
}

.eb-ws-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #f8fafc;
	text-decoration: none;
	padding: 0.35rem 0.5rem;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.eb-ws-single__back-link:hover,
.eb-ws-single__back-link:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	outline: none;
}

.eb-ws-single__back-icon {
	font-size: 1.1rem;
	line-height: 1;
}

/* Only one story in viewer: hide prev/next *story* arrows */
body.eb-bs-one-story .eb-bs-viewer__nav.eb-bs-viewer__nav--prev,
body.eb-bs-one-story .eb-bs-viewer__nav.eb-bs-viewer__nav--next {
	display: none;
}

/* Fallback when slides are missing */
.eb-ws-single-fallback {
	padding-top: 2rem;
	padding-bottom: 2rem;
}
