/*
 * Responsive fixes for layouts built in Elementor.
 * Page-specific rules are scoped with .elementor-{page id}; element ids are
 * the Elementor data-id of the container/widget being fixed.
 */

/* No page should scroll sideways. "clip" (unlike "hidden") keeps sticky elements working. */
html,
body {
	overflow-x: clip;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

@media (max-width: 1024px) {
	.elementor-widget__width-initial {
		max-width: 100%;
	}

	.elementor-widget-container,
	.elementor-heading-title,
	.elementor-icon-list-text {
		overflow-wrap: break-word;
	}
}

/* Home: three columns (29% + content + 29% + gaps) were wider than the row on desktop. */
@media (min-width: 1367px) {
	.elementor-8 .elementor-element-e88f193 > .e-con-inner > .e-con {
		flex-shrink: 1 !important;
		min-width: 0;
	}
}

/* Mental Health Services: laptop width (960px) was inherited by tablets. */
@media (max-width: 1024px) {
	.elementor-2385 .elementor-element-67656ed,
	.elementor-2385 .elementor-element-872e829 {
		--width: 100%;
		width: 100% !important;
		max-width: 100%;
	}
}

/* ADHD Treatment: therapy rows (304px + 30% + 30%) overflowed on tablets. */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-16265 .elementor-element-1f3f5c7 > *,
	.elementor-16265 .elementor-element-a1e7a3b > *,
	.elementor-16265 .elementor-element-bdc7068 > * {
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0;
	}
}

/* Primary Care: two full-width buttons sat side by side on tablets. */
@media (max-width: 1024px) {
	.elementor-1554 .elementor-element-b5e5029 {
		flex-wrap: wrap;
		gap: 12px;
	}
}
