.fss-slider {
	position: relative;
	width: 100%;
	height: var(--fss-height, 100svh);
	overflow: hidden;
	margin: 0;
}

.fss-slider.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.fss-slider.alignwide {
	width: 100%;
}

.fss-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

/* --- Fade / Zoom: absolute stack with opacity crossfade --- */
.fss-transition-fade .fss-slide,
.fss-transition-zoom .fss-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.8s ease-in-out;
}

.fss-transition-fade .fss-slide.is-active,
.fss-transition-zoom .fss-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* --- Slide (defilement): slides sit side-by-side in a track, the whole
       track is translated so images stay glued to each other with no gap
       and no opacity flash. --- */
.fss-transition-slide .fss-slides {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.7s ease-in-out;
	will-change: transform;
}

.fss-transition-slide .fss-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.fss-slide-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fss-slide-image-mobile {
	display: none;
}

@media (max-width: 768px) {
	.fss-slider {
		height: var(--fss-mobile-height, var(--fss-height, 100svh));
	}

	.fss-slide-image-desktop {
		display: none;
	}

	.fss-slide-image-mobile {
		display: block;
	}
}

.fss-slide-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--fss-overlay, 0.35));
	z-index: 1;
}

.fss-slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 2;
	padding: 24px;
	color: #fff;
}

.fss-slide-title {
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 700;
	margin: 0 0 16px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.fss-slide-text {
	font-size: clamp(1rem, 2.5vw, 1.4rem);
	max-width: 720px;
	margin: 0 0 24px;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fss-slide-button {
	display: inline-block;
	padding: 14px 32px;
	background: #ffffff;
	color: #1e1e1e;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: transform 0.2s ease, background 0.2s ease;
}

.fss-slide-button:hover {
	background: #f0f0f0;
	transform: translateY(-2px);
	color: #1e1e1e;
}

/* Persistent overlay (shown on every slide).
   Acts as a 3x3 anchor grid; each zone is a flex column stacking the
   elements assigned to it, separated by --fss-gap. */
.fss-persistent-content {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	padding: 24px;
	pointer-events: none;
}

.fss-anchor-zone {
	display: flex;
	flex-direction: column;
	gap: var(--fss-gap, 2rem);
	pointer-events: none;
}

.fss-anchor-zone > * {
	pointer-events: auto;
}

/* Column alignment */
.fss-anchor-top-left,
.fss-anchor-center-left,
.fss-anchor-bottom-left {
	align-items: flex-start;
	text-align: left;
}

.fss-anchor-top-center,
.fss-anchor-center-center,
.fss-anchor-bottom-center {
	align-items: center;
	text-align: center;
}

.fss-anchor-top-right,
.fss-anchor-center-right,
.fss-anchor-bottom-right {
	align-items: flex-end;
	text-align: right;
}

/* Row alignment */
.fss-anchor-top-left,
.fss-anchor-top-center,
.fss-anchor-top-right {
	justify-content: flex-start;
	grid-row: 1;
}

.fss-anchor-center-left,
.fss-anchor-center-center,
.fss-anchor-center-right {
	justify-content: center;
	grid-row: 2;
}

.fss-anchor-bottom-left,
.fss-anchor-bottom-center,
.fss-anchor-bottom-right {
	justify-content: flex-end;
	grid-row: 3;
}

/* Grid columns */
.fss-anchor-top-left,
.fss-anchor-center-left,
.fss-anchor-bottom-left {
	grid-column: 1;
}

.fss-anchor-top-center,
.fss-anchor-center-center,
.fss-anchor-bottom-center {
	grid-column: 2;
}

.fss-anchor-top-right,
.fss-anchor-center-right,
.fss-anchor-bottom-right {
	grid-column: 3;
}

.fss-persistent-title {
	font-size: clamp(2rem, 6vw, 4rem);
	margin: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.fss-persistent-text {
	font-size: clamp(1rem, 2.5vw, 1.4rem);
	max-width: 720px;
	margin: 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fss-persistent-button {
	display: inline-block;
	padding: 14px 32px;
	text-decoration: none;
	border-radius: 4px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.fss-persistent-button:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

/* Mobile: force everything into a single centered, stacked column. */
@media (max-width: 768px) {
	.fss-persistent-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: var(--fss-gap, 2rem);
	}

	.fss-anchor-zone {
		display: contents;
	}

	.fss-anchor-zone > * {
		margin: 0 auto;
	}

	.fss-persistent-text {
		text-align: center;
	}
}

/* Zoom transition */
.fss-transition-zoom .fss-slide-image {
	transform: scale(1.15);
	transition: transform 6s ease-out, opacity 0.8s ease-in-out;
}

.fss-transition-zoom .fss-slide.is-active .fss-slide-image {
	transform: scale(1);
}

/* Arrows */
.fss-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fss-arrow:hover {
	background: rgba(255, 255, 255, 0.4);
}

.fss-arrow-prev {
	left: 24px;
}

.fss-arrow-next {
	right: 24px;
}

/* Dots */
.fss-dots {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.fss-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.fss-dot.is-active {
	background: #fff;
}

/* Placeholder for empty state on front-end */
.fss-placeholder {
	padding: 40px;
	text-align: center;
	background: #f0f0f0;
	color: #757575;
}

/* Responsive */
@media (max-width: 768px) {
	.fss-arrow {
		width: 36px;
		height: 36px;
	}

	.fss-arrow-prev {
		left: 12px;
	}

	.fss-arrow-next {
		right: 12px;
	}

	.fss-slide-content {
		padding: 16px;
	}
}

/* Allow overlaying site navigation: give the slider a negative top margin
   equivalent to the header height if your theme's header is set to
   position: absolute / fixed. Example utility class you can add via
   "Additional CSS class" in block settings: */
.fss-overlay-header {
	margin-top: calc(-1 * var(--wp-admin--admin-bar--height, 0px));
}
