/**
 * Google Reviews carousel (Elementor Image Carousel, class .tjl-reviews).
 * Arrow/dot colours are set natively in the widget; this adds full bleed, a fixed
 * review frame (height never changes while autoplay or lazy-load swaps images),
 * centre-mode emphasis and the white/gold arrow chips.
 */

/* full bleed at every width; only the OUTERMOST section clips the scrollbar-width
   overhang — the inner containers carry 20px side padding and would cut the peeks */
html body .elementor > .e-con:has(.tjl-reviews) {
	overflow-x: clip;
}

/* doubled element class: Elementor's container sizes widgets via --container-widget-width */
html body .elementor .elementor-element.elementor-element.elementor-widget-image-carousel.tjl-reviews {
	--container-widget-width: 100vw;
	flex: 0 0 auto;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* "arrows outside" narrows the swiper by the arrow width; arrows overlay the peeks instead */
html body .elementor-widget-image-carousel.tjl-reviews .elementor-image-carousel-wrapper {
	width: 100%;
	touch-action: pan-y;
}

/* fixed frame: every slide is the same shape, the review sits centred inside it */
html body .elementor-widget-image-carousel.tjl-reviews .swiper-wrapper {
	align-items: stretch;
}

html body .elementor-widget-image-carousel.tjl-reviews .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	aspect-ratio: 1.45;
}

html body .elementor-widget-image-carousel.tjl-reviews .swiper-slide > a,
html body .elementor-widget-image-carousel.tjl-reviews .swiper-slide figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

html body .elementor-widget-image-carousel.tjl-reviews .swiper-slide img.swiper-slide-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	border: 1px solid #EFDFB4;
	box-shadow: 0 14px 30px -18px rgba(58, 18, 89, .45);
	-webkit-user-drag: none;
	user-select: none;
}

/* centre mode: side reviews recede, the centre one is full strength */
html body .elementor-widget-image-carousel.tjl-reviews--ready .swiper-slide {
	opacity: .6;
	transform: scale(.92);
	transition: opacity .45s ease, transform .45s ease;
}

html body .elementor-widget-image-carousel.tjl-reviews--ready .swiper-slide-active {
	opacity: 1;
	transform: none;
}

/* arrows: white chip, gold line, plum glyph — overlaid on the peeking reviews */
html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #EFDFB4;
	border-radius: 50%;
	background: #FFF;
	box-shadow: 0 8px 20px -10px rgba(58, 18, 89, .45);
	z-index: 3;
	transition: background .25s ease, border-color .25s ease;
}

html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button-prev { left: 32px; }
html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button-next { right: 32px; }

html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button svg {
	fill: #3A1259;
}

@media (hover: hover) {
	html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button:hover {
		background: #3A1259;
		border-color: #3A1259;
	}

	html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button:hover svg {
		fill: #FFF;
	}
}

/* dots: gold pills, active one widens */
html body .elementor-widget-image-carousel.tjl-reviews .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	opacity: 1;
	transition: width .3s ease, background .3s ease;
}

html body .elementor-widget-image-carousel.tjl-reviews .swiper-pagination-bullet-active {
	width: 24px;
}

/* phone: one big review, slim peeks from the screen edges, swipe only */
@media (max-width: 767px) {
	/* no shrink here — at 1.22 slides a scale would eat the 26px peeks */
	html body .elementor-widget-image-carousel.tjl-reviews--ready .swiper-slide {
		transform: none;
	}

	html body .elementor-widget-image-carousel.tjl-reviews .elementor-swiper-button {
		display: none;
	}

	html body .elementor-widget-image-carousel.tjl-reviews .swiper-pagination-bullet {
		width: 6px;
		height: 6px;
	}

	html body .elementor-widget-image-carousel.tjl-reviews .swiper-pagination-bullet-active {
		width: 18px;
	}
}
