/* Full-viewport landing: centred media (contain), bottom bar overlay — vanilla carousel (no Swiper). */

.rs-landing {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	overflow: hidden;
	background: #000;
}

.rs-landing__stage {
	position: relative;
	height: 100vh;
	height: 100dvh;
	width: 100%;
}

/* Viewport */
.rs-landing .rs-landing-carousel {
	overflow: hidden;
	width: 100%;
	height: 100%;
	position: relative;
}

/* Full shuffle: hide until JS reorders (avoids flashing the wrong first slide) */
.rs-landing[data-rs-shuffle="1"] .rs-landing-carousel {
	visibility: hidden;
}

.rs-landing[data-rs-shuffle="1"].rs-landing--order-ready .rs-landing-carousel {
	visibility: visible;
}

/* ---- Fade mode: stacked slides (data-rs-effect = first paint before JS; --mode-fade = after init) ---- */
.rs-landing[data-rs-effect="fade"] .rs-landing__track,
.rs-landing--mode-fade .rs-landing__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.rs-landing[data-rs-effect="fade"] .rs-landing__slide,
.rs-landing--mode-fade .rs-landing__slide {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	box-sizing: border-box;
	/* containing block for .rs-landing__video-overlay */
}

/* Hide non-first slides until carousel JS sets opacity (avoids flash of every image) */
.rs-landing[data-rs-effect="fade"] .rs-landing__slide {
	opacity: 0;
	z-index: 0;
}

.rs-landing[data-rs-effect="fade"] .rs-landing__slide:first-child {
	opacity: 1;
	z-index: 1;
}

/* ---- Slide mode: horizontal track ---- */
.rs-landing[data-rs-effect="slide"] .rs-landing__track,
.rs-landing--mode-slide .rs-landing__track {
	display: flex;
	width: calc(var(--rs-n, 1) * 100%);
	height: 100%;
	will-change: transform;
}

.rs-landing[data-rs-effect="slide"] .rs-landing__slide,
.rs-landing--mode-slide .rs-landing__slide {
	position: relative;
	flex: 0 0 calc(100% / var(--rs-n, 1));
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	box-sizing: border-box;
	min-height: 100%;
}

.rs-landing__media {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

.rs-landing__slide video.rs-landing__media {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Hide native WebKit video chrome (slides use plugin overlay + muted playback). */
.rs-landing video.rs-landing__media::-webkit-media-controls {
	display: none !important;
}

.rs-landing video.rs-landing__media::-webkit-media-controls-enclosure,
.rs-landing video.rs-landing__media::-webkit-media-controls-panel {
	display: none !important;
}

/* Fill viewport: cover + clip (no letterboxing). */
.rs-landing--media-fill .rs-landing__stage,
.rs-landing--media-fill .rs-landing-carousel,
.rs-landing--media-fill .rs-landing__track,
.rs-landing--media-fill .rs-landing__slide {
	overflow: hidden;
}

.rs-landing--media-fill .rs-landing__slide {
	align-items: stretch;
	justify-content: stretch;
}

.rs-landing--media-fill .rs-landing__media {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.rs-landing--media-fill .rs-landing__slide video.rs-landing__media {
	object-fit: cover;
}

.rs-landing__video-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

/* Bottom bar */
.rs-landing__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 1rem 1.25rem;
	text-align: center;
	box-sizing: border-box;
}

.rs-landing__bar-inner {
	max-width: 100%;
	margin: 0 auto;
	font-size: clamp(0.95rem, 2.5vw, 1.15rem);
	line-height: 1.4;
}

.rs-landing__bar-inner a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rs-landing__empty {
	padding: 1rem;
	background: #fff3cd;
	color: #333;
}

/* Optional: gentle landscape suggestion on small portrait screens */
.rs-landing__tilt-hint {
	display: none;
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	z-index: 50;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1.25rem;
	padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: rgba(255, 255, 255, 0.95);
	text-align: center;
	font-size: clamp(0.95rem, 3.5vw, 1.1rem);
	line-height: 1.45;
}

.rs-landing__tilt-hint-inner {
	max-width: 20rem;
	margin: 0 auto;
}

.rs-landing__tilt-icon {
	display: block;
	margin: 0 auto 1rem;
	color: rgba(255, 255, 255, 0.88);
}

.rs-landing__tilt-icon svg {
	display: block;
	margin: 0 auto;
}

.rs-landing__tilt-title {
	margin: 0 0 0.5rem;
	font-size: 1.15em;
	font-weight: 600;
}

.rs-landing__tilt-text {
	margin: 0 0 1.25rem;
	opacity: 0.9;
}

.rs-landing__tilt-dismiss {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.95em;
	color: #111;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	box-sizing: border-box;
}

.rs-landing__tilt-dismiss:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (orientation: portrait) and (max-width: 896px) {
	.rs-landing:not(.rs-landing--tilt-dismissed) .rs-landing__tilt-hint {
		display: flex;
		flex-direction: column;
	}
}

/* Optional: “Enter fullscreen” in narrow landscape (above bottom bar) */
.rs-landing__fs-nudge {
	display: none;
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	max-width: min(22rem, calc(100vw - 2rem));
	padding: 0.5rem 0.65rem;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	background: rgba(0, 0, 0, 0.78);
	border-radius: 8px;
	font-size: clamp(0.85rem, 2.8vw, 0.95rem);
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.95);
}

.rs-landing__fs-nudge .rs-landing__fs-enter,
.rs-landing__fs-nudge .rs-landing__fs-dismiss {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0.45rem 0.85rem;
	font: inherit;
	font-size: inherit;
	cursor: pointer;
	border: none;
	border-radius: 6px;
	box-sizing: border-box;
}

.rs-landing__fs-nudge .rs-landing__fs-enter {
	color: #111;
	background: rgba(255, 255, 255, 0.92);
}

.rs-landing__fs-nudge .rs-landing__fs-dismiss {
	color: rgba(255, 255, 255, 0.88);
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (orientation: landscape) and (max-width: 896px) {
	.rs-landing[data-rs-fs-offer="1"]:not(.rs-landing--fs-nudge-dismissed):not([data-rs-fullscreen-active="1"]) .rs-landing__fs-nudge {
		display: flex;
	}
}

.rs-landing--hide-fs-on-ios .rs-landing__fs-nudge {
	display: none !important;
}

/* iOS / iPadOS: Add to Home Screen (JS sets data-rs-a2hs-visible) */
.rs-landing__a2hs-nudge {
	display: none;
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
	z-index: 41;
	width: min(22rem, calc(100vw - 2rem));
	padding: 0.75rem 1rem;
	flex-direction: column;
	gap: 0.5rem;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 10px;
	font-size: clamp(0.85rem, 2.8vw, 0.95rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.95);
}

.rs-landing__a2hs-title {
	margin: 0;
	font-weight: 600;
	font-size: 1.05em;
}

.rs-landing__a2hs-text {
	margin: 0;
	opacity: 0.92;
}

.rs-landing__a2hs-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.25rem;
}

.rs-landing__a2hs-dismiss {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0.45rem 0.95rem;
	font: inherit;
	font-size: inherit;
	color: #111;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	box-sizing: border-box;
}

.rs-landing__a2hs-dismiss:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.rs-landing[data-rs-a2hs-visible="1"] .rs-landing__a2hs-nudge {
	display: flex;
}

/* Arrows */
.rs-landing__nav {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	z-index: 15;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	font: inherit;
	background: transparent;
	border: none;
	padding: 0;
	box-sizing: border-box;
}

.rs-landing__nav:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rs-landing__nav--prev {
	left: 10px;
}

.rs-landing__nav--next {
	right: 10px;
}

.rs-landing__nav::before {
	content: '';
	display: block;
	width: 0.65em;
	height: 0.65em;
	border-style: solid;
	border-width: 0 0.2em 0.2em 0;
	border-color: currentColor;
}

.rs-landing__nav--prev::before {
	transform: rotate(135deg);
	margin-left: 0.2em;
}

.rs-landing__nav--next::before {
	transform: rotate(-45deg);
	margin-right: 0.2em;
}

.rs-landing-nav--dark .rs-landing__nav {
	color: rgba(255, 255, 255, 0.92);
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}

.rs-landing-nav--light .rs-landing__nav {
	color: rgba(0, 0, 0, 0.82);
	filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5));
}

.rs-landing-nav--medium .rs-landing__nav {
	color: rgba(240, 240, 240, 0.95);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Pagination */
.rs-landing__pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 15;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}

.rs-landing__pagination .rs-landing__bullet {
	pointer-events: auto;
}

.rs-landing__bullet {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.45);
	box-sizing: border-box;
}

.rs-landing__bullet:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rs-landing__bullet--active {
	background: rgba(255, 255, 255, 0.95);
}

.rs-landing-nav--dark .rs-landing__bullet--active {
	background: #fff;
}

.rs-landing-nav--light .rs-landing__bullet {
	background: rgba(0, 0, 0, 0.3);
}

.rs-landing-nav--light .rs-landing__bullet--active {
	background: #111;
}

.rs-landing-nav--medium .rs-landing__bullet--active {
	background: #eee;
}
