/* Shorter and narrower than the theme default. Width goes on .uncol, which is
   display:block — .uncell is a table-cell and ignores max-width.
   `.hcg-carousel-section` is added by the JS to whichever row it converts. */
.hcg-carousel-section .wpb_column.column_parent > .uncol {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 960px) {
	/* The gutter system gives this column 36px padding-left and 0 right, so auto
	   margins sit 36px off-centre; 72px/0 restores an even gap either side. */
	.hcg-carousel-section .wpb_column.column_parent {
		padding-left: 72px;
	}
}

.hcg-carousel-section .uncell.style-accent-bg {
	padding-top: 42px;
	padding-bottom: 42px;
}

@media (min-width: 960px) {
	/* Trimming the card's padding left an equal amount of empty band beneath it,
	   which made the card look stranded at the top of its background.
	   !important because the theme's generated *-bottom-padding classes use it. */
	.hcg-carousel-section > .row {
		padding-bottom: 84px !important;
	}
}

.hcg-testimonials .vc_row.row-internal.row-container {
	width: 100%;
}

/* The card already has internal padding; sit the arrows in that gutter
   rather than padding the wrapper, which would narrow the quote text. */
.hcg-testimonials {
	position: relative;
}

.hcg-testimonials .owl-nav .owl-prev {
	left: -50px;
	right: auto;
}

.hcg-testimonials .owl-nav .owl-next {
	right: -50px;
	left: auto;
}

.hcg-testimonials .wpb_row.row-inner {
	align-items: center;
}

/* Without this, neighbouring slides render outside the card. */
.hcg-testimonials .owl-stage-outer {
	overflow: hidden;
}

/* The theme renders these quotes at ~29px, which makes long ones tower over
   short ones. Smaller text keeps every slide a similar height. */
.hcg-testimonials .owl-item .col-lg-9 h5 {
	font-size: clamp(14px, 0.55vw + 8px, 17px);
	line-height: 1.65;
}

.hcg-testimonials .owl-item .col-lg-9 .uncont {
	position: relative;
}

/* Equal-height slides so the card does not jump between testimonials. */
.hcg-testimonials .owl-stage {
	display: flex;
	align-items: stretch;
}

.hcg-testimonials .owl-item {
	backface-visibility: hidden;
	display: flex;
}

.hcg-testimonials .owl-item > .vc_row.row-internal.row-container {
	display: flex;
	align-items: center;
}

/* Attribution column: photo, company, location. */
.hcg-testimonials .owl-item .col-lg-3 .single-wrapper {
	max-width: 96px !important;
}

.hcg-testimonials .owl-item .col-lg-3 .uncode-single-media img {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.hcg-testimonials .owl-item .col-lg-3 h5 {
	font-size: clamp(13px, 0.35vw + 9px, 15px);
	letter-spacing: 0.06em;
	line-height: 1.35;
}

.hcg-testimonials .owl-item .col-lg-3 .uncode_text_column p {
	font-size: 13px;
	opacity: 0.7;
	margin-top: 2px;
}

.hcg-testimonials--nojs .vc_row.row-internal.row-container:not(:first-child) {
	display: none;
}

.hcg-testimonials .owl-nav {
	margin-top: 14px;
	text-align: center;
}

/* Uncode's Owl build renders nav as <b class="owl-prev"> / <u class="owl-next">. */
.hcg-testimonials .owl-nav .owl-prev,
.hcg-testimonials .owl-nav .owl-next {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	width: 32px;
	height: 32px;
	margin: 0 5px;
	opacity: 0.45;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: normal;
	text-decoration: none;
}

.hcg-testimonials .owl-nav .owl-prev:hover,
.hcg-testimonials .owl-nav .owl-next:hover {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.1);
}

.hcg-nav-prev,
.hcg-nav-next {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.hcg-nav-prev {
	transform: rotate(-135deg);
	margin-left: 3px;
}

.hcg-nav-next {
	transform: rotate(45deg);
	margin-right: 3px;
}

.hcg-testimonials .owl-dots {
	text-align: center;
	margin-top: 10px;
}

.hcg-testimonials .owl-dots .owl-dot {
	background: transparent;
	border: 0;
	padding: 5px;
	cursor: pointer;
}

.hcg-testimonials .owl-dots .owl-dot span {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.3;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hcg-testimonials .owl-dots .owl-dot.active span {
	opacity: 1;
	transform: scale(1.3);
}

/* Advertise the drag affordance the way the services slider does. */
.hcg-testimonials .owl-stage,
.hcg-testimonials .owl-item {
	cursor: grab;
}

.hcg-testimonials.owl-grab .owl-stage,
.hcg-testimonials.owl-grab .owl-item {
	cursor: grabbing;
}

.hcg-testimonials .owl-item a {
	cursor: pointer;
}

/* ------------------------------------------------------------------
   /testimonials/ page (rendered server-side by the mu-plugin)
   ------------------------------------------------------------------ */

/* BigText sets the line sizes itself; just keep the lines tight. */
.hcg-testimonials-page .bigtext {
	margin: 6px 0 0;
	line-height: 1.02;
}

.hcg-testimonials-page .hcg-page-lead {
	max-width: 560px;
	margin-top: 34px;
	margin-left: 22%;
}

.hcg-testimonials-page .hcg-page-lead p {
	margin: 0;
}

.hcg-testimonials-page .hcg-band-eyebrow {
	margin: 0 0 10px;
	letter-spacing: 0.08em;
}

.hcg-testimonials-page .hcg-band-title {
	margin: 0 0 18px;
}

.hcg-testimonials-page .hcg-band-quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(15px, 0.5vw + 11px, 17px);
	line-height: 1.75;
	font-weight: 400;
}

.hcg-testimonials-page .hcg-band-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

@media (max-width: 959px) {
	.hcg-testimonials-page .hcg-page-lead {
		margin-left: 0;
		margin-top: 24px;
	}

	.hcg-testimonials-page .hcg-band-photo {
		margin-top: 28px;
	}
}

@media (max-width: 959px) {
	/* Not enough side room for arrows on narrow screens; stack them below. */
	.hcg-testimonials {
		padding-left: 0;
		padding-right: 0;
	}

	.hcg-testimonials .owl-nav {
		position: static;
		text-align: center;
		margin-top: 14px;
		/* The theme forces margin:0 on the arrows and the markup has no whitespace
		   between them, so they touch; space them from the container instead. */
		display: flex;
		justify-content: center;
		gap: 16px;
	}

	.hcg-testimonials .owl-nav .owl-prev,
	.hcg-testimonials .owl-nav .owl-next {
		position: static;
		left: auto;
		right: auto;
		width: 40px;
		height: 40px;
		opacity: 0.7;
	}
}
