/* Generic Swiper block */
.frent-swiper-config {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.frent-swiper-config.is-overflow-visible,
.frent-swiper-config.is-overflow-visible .frent-swiper-target {
	overflow: visible;
}

.frent-swiper-config .swiper-slide {
	width: var(--frent-slide-width, auto);
	max-width: var(--frent-slide-max-width, none);
	padding-top: var(--frent-slide-padding-top, 0px);
	padding-right: var(--frent-slide-padding-right, 0px);
}

/* Lay query posts out horizontally before Swiper initialization. */
.frent-swiper-config[data-frent-structure="query"] .wp-block-post-template {
	display: flex;
	flex-wrap: nowrap;
}

/* Apply configured widths before query posts receive the slide class. */
.frent-swiper-config[data-frent-structure="query"] .wp-block-post-template > * {
	flex-shrink: 0;
	width: var(--frent-slide-width, auto);
	max-width: var(--frent-slide-max-width, none);
	margin-block-start: 0;
}

/* Keep theme flow spacing from offsetting slides vertically. */
.frent-swiper-config .swiper-wrapper > .swiper-slide {
	margin-block-start: 0;
}

.frent-swiper-config.has-auto-slide-height .swiper-slide {
	height: auto;
}

.frent-swiper-linear .swiper-wrapper {
	transition-timing-function: linear !important;
}

.frent-swiper-prev,
.frent-swiper-next {
	position: absolute;
	z-index: 10;
	top: 50%;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid currentColor;
	border-radius: 999px;
	background: rgba(255,255,255,.9);
	color: currentColor;
	cursor: pointer;
}

.frent-swiper-prev { left: 10px; }
.frent-swiper-next { right: 10px; }
.frent-swiper-prev::before { content: "‹"; font-size: 28px; line-height: 1; }
.frent-swiper-next::before { content: "›"; font-size: 28px; line-height: 1; }

.frent-swiper-pagination {
	position: relative;
	z-index: 10;
	margin-top: 12px;
	text-align: center;
}

.frent-swiper-fallback {
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
}

.frent-swiper-fallback > .swiper-wrapper,
.frent-swiper-fallback .swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
}

/* Hero Swiper block */
.frent-hero-swiper {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: var(--frent-hero-height, 100dvh);
}

.frent-hero-swiper .swiper-wrapper {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	box-sizing: content-box;
	transition-property: transform;
}

.frent-hero-swiper .swiper-slide,
.frent-hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.frent-hero-slide-bg,
.frent-hero-slide-overlay {
	position: absolute;
	inset: 0;
}

.frent-hero-slide-bg {
	z-index: 0;
	background-repeat: no-repeat;
	background-size: cover;
	will-change: transform;
}

.frent-hero-slide-overlay {
	z-index: 1;
	pointer-events: none;
}

.frent-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: var(--frent-content-justify, center);
	width: var(--frent-content-width, 60%);
	margin-left: var(--frent-content-margin-left, 0px);
	margin-right: var(--frent-content-margin-right, auto);
	height: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--60, 3rem) var(--wp--style--root--padding-right, 2rem);
	color: var(--wp--preset--color--white, #fff);
}

.frent-hero-content :where(h1,h2,h3,h4,h5,h6,p) {
	color: inherit;
}

.frent-hero-swiper[data-frent-zoom="true"] .swiper-slide-active .frent-hero-slide-bg,
.frent-hero-swiper[data-frent-zoom="true"] .frent-hero-slide.is-active .frent-hero-slide-bg {
	animation: frentHeroZoom var(--frent-zoom-duration, 20000ms) linear both;
}

@keyframes frentHeroZoom {
	from { transform: scale(1); }
	to { transform: scale(var(--frent-zoom-scale, 1.15)); }
}

.frent-hero-swiper.frent-fallback-slider[data-frent-effect="fade"] .swiper-wrapper {
	display: block;
}

.frent-hero-swiper.frent-fallback-slider[data-frent-effect="fade"] .swiper-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition-property: opacity, visibility;
	transition-duration: var(--frent-fallback-speed, 800ms);
}

.frent-hero-swiper.frent-fallback-slider[data-frent-effect="fade"] .swiper-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.frent-hero-swiper.frent-fallback-slider[data-frent-effect="slide"] .swiper-wrapper {
	will-change: transform;
	transition-property: transform;
	transition-duration: var(--frent-fallback-speed, 800ms);
}

@media (max-width: 767px) {
	.frent-hero-swiper {
		height: var(--frent-hero-mobile-height, 100svh);
	}

	.frent-hero-content {
		width: var(--frent-content-width-mobile, 100%);
	}
}
