.elementor-30 .elementor-element.elementor-element-ccb1f06 > .e-con-inner,
.elementor-30 .elementor-element.elementor-element-ccb1f06 > .elementor-widget-shortcode {
	width: 100%;
	max-width: 100%;
}

.elementor-30 .elementor-element.elementor-element-ccb1f06 .elementor-widget-shortcode,
.elementor-30 .elementor-element.elementor-element-ccb1f06 .elementor-widget-shortcode > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

.elementor-30 .elementor-element.elementor-element-ccb1f06 .elementor-element-u8a9c3f.elementor-widget-shortcode {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

.af-home-carousel {
	--af-carousel-brown: #60351f;
	--af-carousel-cream: #fffaf1;
	--af-carousel-sage: #739174;
	position: relative;
	width: 100%;
	aspect-ratio: 2520 / 1120;
	overflow: hidden;
	background: var(--af-carousel-cream);
	font-family: "IBM Plex Sans Thai", Lato, sans-serif;
}

.af-home-carousel,
.af-home-carousel * {
	box-sizing: border-box;
}

.af-home-carousel__viewport,
.af-home-carousel__slide {
	position: absolute;
	inset: 0;
}

.af-home-carousel__slide {
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 650ms ease, visibility 650ms ease;
}

.af-home-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.af-home-carousel__slide--artwork {
	background: var(--af-carousel-cream);
}

.af-home-carousel__artwork-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.af-home-carousel__clinic-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.af-home-carousel__controls {
	position: absolute;
	inset: 0;
	z-index: 3;
	visibility: hidden;
	opacity: 0;
	transition: opacity 180ms ease, visibility 180ms ease;
	pointer-events: none;
}

.af-home-carousel:hover .af-home-carousel__controls,
.af-home-carousel:focus-within .af-home-carousel__controls {
	visibility: visible;
	opacity: 1;
}

.af-home-carousel__arrow {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(42px, 3.8vw, 58px);
	height: clamp(42px, 3.8vw, 58px);
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(96, 53, 31, .13);
	border-radius: 50%;
	background: rgba(255, 250, 241, .94);
	box-shadow: 0 5px 22px rgba(51, 32, 20, .16);
	color: var(--af-carousel-brown);
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
	pointer-events: auto;
}

.af-home-carousel__arrow:hover {
	transform: translateY(-50%) scale(1.06);
	background: #fff;
	box-shadow: 0 7px 26px rgba(51, 32, 20, .22);
}

.af-home-carousel__arrow:focus-visible,
.af-home-carousel__dot:focus-visible {
	outline: 3px solid #78a8dc;
	outline-offset: 3px;
}

.af-home-carousel .af-home-carousel__arrow:hover,
.af-home-carousel .af-home-carousel__arrow:focus {
	border-color: rgba(96, 53, 31, .25) !important;
	background-color: var(--af-carousel-cream) !important;
	color: var(--af-carousel-brown) !important;
}

.af-home-carousel__arrow svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.af-home-carousel__arrow--previous {
	left: clamp(14px, 2.5vw, 38px);
}

.af-home-carousel__arrow--next {
	right: clamp(14px, 2.5vw, 38px);
}

.af-home-carousel__pagination {
	position: absolute;
	bottom: clamp(12px, 2vw, 26px);
	left: 50%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	transform: translateX(-50%);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 24px;
	background: rgba(61, 40, 29, .38);
	backdrop-filter: blur(8px);
	pointer-events: auto;
}

.af-home-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
	cursor: pointer;
	transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.af-home-carousel__dot.is-active {
	width: 23px;
	border-radius: 8px;
	background: #fff;
}

.af-home-carousel__sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 767px) {
	.af-home-carousel {
		aspect-ratio: 2520 / 1120 !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}

	.af-home-carousel__artwork-image,
	.af-home-carousel__clinic-image {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	.af-home-carousel__controls {
		visibility: visible;
		opacity: 1;
	}

	/* Hide overlapping arrow buttons on mobile in favor of intuitive touch swipe */
	.af-home-carousel__arrow {
		display: none !important;
	}

	.af-home-carousel__pagination {
		bottom: 6px !important;
		gap: 6px !important;
		padding: 4px 8px !important;
		background: rgba(61, 40, 29, .55) !important;
	}

	.af-home-carousel__dot {
		width: 6px !important;
		height: 6px !important;
	}

	.af-home-carousel__dot.is-active {
		width: 16px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.af-home-carousel__slide,
	.af-home-carousel__controls,
	.af-home-carousel__arrow,
	.af-home-carousel__dot {
		transition: none !important;
	}
}
