/* These rows sit inside full-width wrappers with no horizontal padding. */
.about-story-section > .row,
.container-fluid.mt-3.p-0 > .row {
	margin-inline: 0;
}

@media (max-width: 767.98px) {
	/* Let the flex card and its text track shrink beside the number and icon. */
	.olcards > li > .content {
		min-width: 0;
		grid-template-columns: auto minmax(0, 1fr);
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	:where(h1, h2, h3, h4, h5, h6, .h4),
	.bbs-post-content {
		overflow-wrap: anywhere;
	}

	.bbs-industry-hero h1,
	.bbs-industry-cta h2 {
		hyphens: auto;
	}

	/* Match the horizontal gutter to the container padding on narrow screens. */
	.bbs-industry-hero .row.g-5,
	.bbs-industry-why .row.g-5,
	.bbs-branches-page .container > .row.g-5,
	.bbs-itcheck-page .container > .row.g-5,
	.bbs-pricing-page .container > .row.g-5,
	.about-intro > .row.g-5 {
		--bs-gutter-x: 1.5rem;
	}

	.bbs-itcheck-priority > div:last-child {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.bbs-post-content table.bbs-mobile-table,
	.bbs-mobile-table tbody {
		display: block;
	}

	/* The original column headers remain available to assistive technology. */
	.bbs-mobile-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.bbs-mobile-table tbody > tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #dce5ed;
		border-radius: 8px;
		background: #f4f7f9;
	}

	.bbs-post-content .bbs-mobile-table tbody > tr > td {
		display: block;
		padding: .7rem .85rem;
		border: 0;
		line-height: 1.55;
		hyphens: none;
		overflow-wrap: anywhere;
	}

	.bbs-post-content .bbs-mobile-table tbody > tr > td + td {
		border-top: 1px solid #dce5ed;
	}

	.bbs-mobile-table td::before {
		content: attr(data-column-label);
		content: attr(data-column-label) / '';
		display: block;
		margin-bottom: .2rem;
		color: #045b94;
		font-size: .85rem;
		font-weight: 700;
	}

	@media (max-width: 389.98px) {
		.bbs-industry-hero-buttons .animated-button1,
		.container-fluid > .row > .col-lg-5 > .animated-button1 {
			max-width: calc(100% - 24px);
			overflow-wrap: anywhere;
		}

		.bbs-service-price-button {
			white-space: normal;
		}

		.bbs-footer-list a {
			overflow-wrap: anywhere;
		}
	}
}

/* Keep both review controls inside the screen at the tablet breakpoint. */
@media (min-width: 768px) and (max-width: 991.98px) {
	#googleRevSlider .grev_prev {
		margin-left: -20px;
	}

	#googleRevSlider .grev_next {
		margin-right: -20px;
	}
}
