/**
 * ThryonLab Slider
 *
 * Bootstrap powers the single-slide hero path.
 * Slick is kept only for multi-slide card mode.
 */

.hero-slider {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	padding-bottom: 1rem!important;
}

.hero-slider--layout-fullwidth,
.hero-slider--layout-contained {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.hero-slider__carousel {
	width: 100%;
	margin: 0;
	position: relative;
}

/* -------------------------------------------------------------------------
   Bootstrap hero path
------------------------------------------------------------------------- */
.hero-slider:not(.hero-slider--multi).thry-hero {
	box-shadow: 0 2px 15px rgba(15, 23, 42, 0.06);
	margin-bottom: 1rem;
}

.hero-slider:not(.hero-slider--multi).thry-hero .hero-slider__carousel,
.hero-slider:not(.hero-slider--multi).thry-hero .carousel-inner,
.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item {
	width: 100%;
}

.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item {
	background: linear-gradient(135deg, #faf8fc 0%, #ffffff 55%, #f5f3fa 100%);
}

/* Stacked image + copy below lg. JS equalizes slide heights so the page does not jump. */
@media (max-width: 991.98px) {
	.hero-slider:not(.hero-slider--multi).thry-hero {
		background: #fff;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero::before {
		display: none;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-inner {
		overflow: hidden;
		background: #fff;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item {
		background: #fff;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide.carousel-fade .carousel-item.active,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item.active,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-next,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-prev,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-start,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-end {
		display: flex !important;
		flex-direction: column;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item {
		opacity: 0;
		transition-property: opacity;
		transform: none !important;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item.active,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-next.carousel-item-start,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .carousel-item-prev.carousel-item-end {
		z-index: 1;
		opacity: 1;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .active.carousel-item-start,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide .active.carousel-item-end {
		z-index: 0;
		opacity: 0;
		transition: opacity 0s 0.6s;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item > .thry-hero-slide,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item > [data-tl-slide] {
		flex: 1 1 auto;
		align-self: stretch;
		width: 100%;
		height: 100%;
		min-height: 100%;
	}

	.hero-slider--height-fixed:not(.hero-slider--multi) .thry-hero-slide__media,
	.hero-slider--height-auto:not(.hero-slider--multi) .thry-hero-slide__media {
		aspect-ratio: 4 / 3;
		height: auto !important;
		max-height: min(70vh, 720px) !important;
		overflow: hidden;
		background: #fff;
	}

	/* Cover + right-side zoom on mobile; desktop stays cover/center. */
	.hero-slider:not(.hero-slider--multi).thry-hero .thry-hero-slide__img,
	.hero-slider:not(.hero-slider--multi).thry-hero [data-tl-img] {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: right center;
		transform: scale(1.12);
		transform-origin: right center;
	}

	.hero-slider:not(.hero-slider--multi) .thry-hero-slide,
	.hero-slider:not(.hero-slider--multi) [data-tl-slide] {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		background: #fff;
	}

	.hero-slider--height-fixed:not(.hero-slider--multi) .thry-hero-slide__content,
	.hero-slider--height-auto:not(.hero-slider--multi) .thry-hero-slide__content {
		flex: 1 1 auto;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.hero-slider--height-fixed:not(.hero-slider--multi) .thry-hero-slide__media,
	.hero-slider--height-auto:not(.hero-slider--multi) .thry-hero-slide__media {
		aspect-ratio: 16 / 10;
		height: auto !important;
		max-height: min(62vh, 560px) !important;
	}
}

@media (min-width: 992px) {
	/* Desktop: slide fills equalized item; media/img cover full slide box. */
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-inner {
		overflow: hidden;
		background: linear-gradient(135deg, #faf8fc 0%, #ffffff 55%, #f5f3fa 100%);
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel-item {
		min-height: var(--hero-slider-height, 500px);
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide.carousel-fade .carousel-item.active {
		display: flex !important;
		flex-direction: column;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide:not(.carousel-fade) .carousel-item.active,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide:not(.carousel-fade) .carousel-item-next,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide:not(.carousel-fade) .carousel-item-prev,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide:not(.carousel-fade) .carousel-item-start,
	.hero-slider:not(.hero-slider--multi).thry-hero .carousel.slide:not(.carousel-fade) .carousel-item-end {
		display: flex !important;
		flex-direction: column;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .thry-hero-slide,
	.hero-slider:not(.hero-slider--multi).thry-hero [data-tl-slide] {
		position: relative;
		flex: 1 1 auto;
		align-self: stretch;
		width: 100%;
		height: 100% !important;
		min-height: 100% !important;
		overflow: hidden;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .thry-hero-slide__media,
	.hero-slider--height-fixed:not(.hero-slider--multi).thry-hero .thry-hero-slide__media,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide__media {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		aspect-ratio: auto !important;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .thry-hero-slide__media picture {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
	}

	.hero-slider:not(.hero-slider--multi).thry-hero .thry-hero-slide__img,
	.hero-slider:not(.hero-slider--multi).thry-hero [data-tl-img] {
		position: absolute !important;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: center center;
	}

	.hero-slider--height-fixed:not(.hero-slider--multi).thry-hero .thry-hero-slide__content,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide__content {
		position: absolute;
		inset: 0;
		display: flex !important;
		flex-direction: column;
		justify-content: center !important;
		align-items: stretch;
		width: 100%;
		height: 100% !important;
		min-height: 0 !important;
		padding: clamp(2rem, 4vw, 3.25rem) 0 !important;
		box-sizing: border-box;
	}

	.hero-slider--height-fixed:not(.hero-slider--multi).thry-hero .thry-hero-slide__content > .container,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide__content > .container {
		display: flex;
		flex-direction: column;
		justify-content: center;
		height: 100%;
	}

	.hero-slider--height-fixed:not(.hero-slider--multi).thry-hero .thry-hero-slide__content > .container > .row,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide__content > .container > .row {
		align-items: center;
		margin-top: 0;
		margin-bottom: 0;
	}

	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide__content,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .carousel-item,
	.hero-slider--height-auto:not(.hero-slider--multi).thry-hero .thry-hero-slide {
		min-height: clamp(220px, 38vw, 480px);
	}

	.hero-slider:not(.hero-slider--multi) {
		padding-bottom: 0 !important;
	}
}

.hero-slider:not(.hero-slider--multi) [data-tl-media].thry-hero-slide__media {
	display: block;
}

.hero-slider:not(.hero-slider--multi) [data-tl-media] picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-slider--text-shadow:not(.hero-slider--multi) [data-tl-content] h1,
.hero-slider--text-shadow:not(.hero-slider--multi) [data-tl-content] p,
.hero-slider--text-shadow:not(.hero-slider--multi)
	[data-tl-content]
	> .container
	.row
	> [class*="col-"]
	> div {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* -------------------------------------------------------------------------
   Slick multi-card path
------------------------------------------------------------------------- */
.hero-slider--multi .hero-slider__carousel .slick-list {
	overflow: hidden;
}

.hero-slider--multi .hero-slider__carousel .slick-slide {
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.hero-slider--multi.hero-slider--height-fixed .hero-slider__carousel .slick-slide {
	height: var(--hero-slider-height, 500px);
	min-height: 0;
}

.hero-slider--multi .hero-slider__carousel [data-tl-slide],
.hero-slider--multi .hero-slider__carousel .hero-slider__slide {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	background: #fff;
	padding: 10px;
	text-align: center;
}

.hero-slider--multi .hero-slider__carousel .hero-slider__slide-panel {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.hero-slider--multi .hero-slider__carousel [data-tl-media] {
	position: relative;
	inset: auto;
	width: 100%;
	min-height: 160px;
}

.hero-slider--multi.hero-slider--height-fixed .hero-slider__carousel [data-tl-media] {
	min-height: 0;
	height: var(--hero-slider-height, 240px);
}

.hero-slider--multi.hero-slider--height-auto .hero-slider__carousel [data-tl-media] {
	height: auto;
	min-height: 180px;
	aspect-ratio: 16 / 9;
}

.hero-slider--multi .hero-slider__carousel [data-tl-img] {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero-slider--multi .hero-slider__carousel [data-tl-content] {
	position: static;
	min-height: 0;
	padding: 10px 0 6px;
	display: block;
	box-sizing: border-box;
}

.hero-slider--multi .hero-slider__carousel .slick-prev,
.hero-slider--multi .hero-slider__carousel .slick-next {
	font-size: 0;
	line-height: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: block;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(0, 0, 0, 0.4);
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.3s ease;
}

.hero-slider--multi .hero-slider__carousel .slick-prev:hover,
.hero-slider--multi .hero-slider__carousel .slick-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.hero-slider--multi .hero-slider__carousel .slick-prev {
	left: 16px;
}

.hero-slider--multi .hero-slider__carousel .slick-next {
	right: 16px;
}

.hero-slider--multi.hero-slider--layout-fullwidth
	.hero-slider__carousel
	.slick-prev,
.hero-slider--multi.hero-slider--arrows-inside
	.hero-slider__carousel
	.slick-prev {
	left: 20px;
}

.hero-slider--multi.hero-slider--layout-fullwidth
	.hero-slider__carousel
	.slick-next,
.hero-slider--multi.hero-slider--arrows-inside
	.hero-slider__carousel
	.slick-next {
	right: 20px;
}

.hero-slider--multi.hero-slider--layout-fullwidth
	.hero-slider__carousel
	.slick-prev {
	left: 30px;
}

.hero-slider--multi.hero-slider--layout-fullwidth
	.hero-slider__carousel
	.slick-next {
	right: 30px;
}

.hero-slider--multi .hero-slider__carousel .slick-dots {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	display: block;
	list-style: none;
	text-align: center;
	z-index: 10;
	padding: 0;
	margin: 0;
}

.hero-slider--multi .hero-slider__carousel .slick-dots li {
	display: inline-block;
	margin: 0 4px;
	padding: 0;
}

.hero-slider--multi .hero-slider__carousel .slick-dots li button {
	width: 12px;
	height: 12px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	border: none;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	transition: background 0.3s ease;
}

.hero-slider--multi .hero-slider__carousel .slick-dots li.slick-active button {
	background: rgba(255, 255, 255, 1);
}

.thryonlab-slider__title-accent {
	display: inline;
	/* color left to theme/custom accent class */
}

.thryonlab-slider__list {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.thryonlab-slider__list--cols {
	display: grid;
	grid-template-columns: repeat(var(--tl-slider-list-cols-desk, 1), minmax(0, 1fr));
	gap: 1rem 1.25rem;
	padding-left: 0;
	list-style-position: inside;
}

@media (max-width: 767px) {
	.thryonlab-slider__list--cols {
		grid-template-columns: repeat(var(--tl-slider-list-cols-mob, 1), minmax(0, 1fr));
	}
}

.thryonlab-slider__list--icon-left,
.thryonlab-slider__list--icon-top {
	list-style: none;
	padding-left: 0;
}

.thryonlab-slider__list--icon-left .thryonlab-slider__list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.thryonlab-slider__list--icon-top .thryonlab-slider__list-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.thryonlab-slider__list-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Visible focus for Slick controls (vendor CSS removes outline). */
.hero-slider--multi .slick-prev:focus,
.hero-slider--multi .slick-next:focus,
.hero-slider--multi .slick-prev:focus-visible,
.hero-slider--multi .slick-next:focus-visible,
.tlc-columns .slick-prev:focus,
.tlc-columns .slick-next:focus,
.tlc-columns .slick-prev:focus-visible,
.tlc-columns .slick-next:focus-visible {
	outline: 2px solid #c2185b;
	outline-offset: 2px;
}

.hero-slider--multi .slick-dots li button:focus,
.hero-slider--multi .slick-dots li button:focus-visible,
.tlc-columns .slick-dots li button:focus,
.tlc-columns .slick-dots li button:focus-visible {
	outline: 2px solid #c2185b;
	outline-offset: 2px;
}

.thryonlab-slider__list-text {
	display: inline-block;
}
