/* =============================================================================
   TW Image Testimonial Slider
   Adjust .tw-its-bg padding-bottom to match your image aspect ratio.
   All colour/sizing variables here are defaults — override in style.css.
   ============================================================================= */

/* Wrapper ------------------------------------------------------------------- */
.tw-image-testimonial-slider {
	position: relative;
	/* Full-width breakout: escapes WPBakery column/row padding constraints */
	width: 100vw;
	left: 50%;
	margin-left: -50vw;
	overflow: hidden;
}

/* Track: all slides laid out horizontally ----------------------------------- */
.tw-its-track {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
}

/* Individual slide ---------------------------------------------------------- */
.tw-its-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	position: relative;
}

/* Background image layer ---------------------------------------------------- */
.tw-its-bg {
	width: 100%;
	height: 375px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* =============================================================================
   Accessible hidden text
   Mirrors the WordPress .screen-reader-text specification.
   Defined here as a safety net — Salient/WordPress may already provide it.
   ============================================================================= */
.tw-its-text.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* =============================================================================
   Navigation arrows
   ============================================================================= */
.tw-its-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.85);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.tw-its-btn:hover {
	background: #fff;
}

.tw-its-btn:focus-visible {
	background: #fff;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tw-its-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.tw-its-prev { left: 16px; }
.tw-its-next { right: 16px; }

/* =============================================================================
   Dot navigation — overlaid at the bottom of the slide
   ============================================================================= */
.tw-its-dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0;
	/* White by default so dots are legible against images;
	   override in style.css if the client's images are light. */
	color: #fff;
}

.tw-its-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
	/* Subtle shadow so dots stay visible on both light and dark images */
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.tw-its-dot--active,
.tw-its-dot:hover {
	background: #fff;
}

.tw-its-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
