/* Full-bleed homepage banners (inside page content / container) */

body.ds-has-home-banners {
	overflow-x: hidden;
}

body.ds-has-home-banners .main-page-wrapper {
	padding-top: 0;
}

/* Flush banner to header on homepage only */
body.ds-has-home-banners .wd-content-layout.content-layout-wrapper {
	padding-top: 0;
}

body.ds-has-home-banners .entry-content > .wp-block-shortcode:first-child,
body.ds-has-home-banners .entry-content > .ds-home-banners:first-child {
	margin-top: 0;
	margin-bottom: 0;
}

body.ds-has-home-banners .entry-content > .wp-block-shortcode:first-child .ds-home-banners {
	margin-top: 0;
}

.ds-home-banners {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
	overflow: hidden;
	background: #111;
}

.ds-home-banners__track {
	position: relative;
	width: 100%;
}

.ds-home-banners__slide {
	display: none;
	width: 100%;
	aspect-ratio: 3 / 1;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.ds-home-banners__slide.is-active {
	display: block;
}

.ds-home-banners__slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

.ds-home-banners__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.ds-home-banners__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 52px;
	width: 52px;
	min-height: 52px;
	height: 52px;
	padding: 0 !important;
	border: 2px solid rgba(255, 255, 255, 0.92) !important;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
	color: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ds-home-banners__nav::before {
	content: "";
	display: block;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
}

.ds-home-banners__nav--prev::before {
	transform: translateX(2px) rotate(135deg);
}

.ds-home-banners__nav--next::before {
	transform: translateX(-2px) rotate(-45deg);
}

.ds-home-banners__nav:hover {
	background: rgba(0, 0, 0, 0.78);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ds-home-banners__nav--prev { left: 18px; }
.ds-home-banners__nav--next { right: 18px; }

.ds-home-banners__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 3;
}

.ds-home-banners__dots button {
	display: block;
	flex: 0 0 9px;
	box-sizing: border-box;
	min-width: 9px;
	width: 9px;
	min-height: 9px;
	height: 9px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	line-height: 0;
	cursor: pointer;
}

.ds-home-banners__dots button.is-active {
	background: #fff;
}

@media (max-width: 768px) {
	.ds-home-banners__nav {
		min-width: 42px;
		width: 42px;
		min-height: 42px;
		height: 42px;
	}

	.ds-home-banners__nav::before {
		width: 10px;
		height: 10px;
		border-right-width: 2.5px;
		border-bottom-width: 2.5px;
	}

	.ds-home-banners__nav--prev { left: 10px; }
	.ds-home-banners__nav--next { right: 10px; }
	.ds-home-banners__slide {
		aspect-ratio: 5 / 3;
	}
}
