.section.hero-v3 {
	overflow: hidden;
	span.sentence {
		color: inherit;
	}
}

.video-block.hero-bg video, section.hero-v3 video {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.weak {
	font-weight: normal;
}
.text-accent {
	&.orange {
		color: #de6923;
	}
}

.background-wiggle {
	position: relative;
	isolation: isolate;
	&:before {
		content: "";
		display: block;
		position: absolute;
		z-index: -1;
		/* background-image: url(https://www.ukconnect.com/wp-content/themes/rocket-saas/assets/images/lines-bg.svg); */
		background-image: url('../assets/images/lines-bg.svg');
		width: 1092px;
		height: 554px;
		left: calc(50% - 215px);
		top: 0;
		background-size: contain;
		background-position: 50%;
		background-repeat: no-repeat;
	}
}
.background-wiggle-dark {
	position: relative;
	isolation: isolate;
	&:before {
		content: "";
		display: block;
		position: absolute;
		z-index: -1;
		background-image: url('../assets/images/lines-dark-big-bg.svg');
		width: 1092px;
		height: 554px;
		left: calc(50% - 215px);
		top: 0;
		background-size: contain;
		background-position: 50%;
		background-repeat: no-repeat;
	}
}


/* Alignment classes */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

/* Images carrying alignment classes */
img.alignleft,
img.alignright,
img.aligncenter {
  max-width: 100%;
  height: auto;
}

/* Captions (classic editor) */
.wp-caption {
  max-width: 100%;
}

.wp-caption.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.wp-caption-text,
.wp-caption .wp-caption-text,
figcaption {
  font-size: 0.875em;
  text-align: center;
  margin: 0.5em 0 0;
}

/* Gallery captions */
.gallery-caption {
  display: block;
}

/* Clearfix for content containing floats */
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}


/* TinyMCE Custom Elements */

/* Accent: highlighted words in brand orange. In a heading the rest of the heading goes light
   so the accent stands out. --accent lets a block swap the colour. */
.accent {
	color: var(--accent, #DE6923);
}
:is(h1, h2, h3, h4, h5, h6):has(.accent) {
	font-weight: 300;
}
:is(h1, h2, h3, h4, h5, h6) .accent {
	font-weight: 600; /* explicit: the default 'bolder' is relative to the parent */
}

/* Pre-title tag: small pill above a heading. Same look as the Billboard block's pre-title
   (billboard-cards.css). span only, so the older blocks' <div class="pre-title"> keep their own styles. */
span.pre-title {
	display: inline-block;
	margin-bottom: 19px;
	padding: 7px 18px;
	border-radius: 8px;
	background: rgba(157, 227, 216, .1);
	color: #9de3d8;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Button (wrap selection), arrowed type: TinyMCE strips the empty <i> icon the [button]
   shortcode uses, so draw the same Font Awesome arrow here. Matches .link-arrowed .fas in
   inc/theme-shortcodes.php. Shortcode output (with its <i>) is left alone. */
a.link-arrowed:not(:has(> i))::before {
	content: "\f061"; /* fa-arrow-right */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	-webkit-font-smoothing: antialiased;
	color: #DE6923;
	margin-right: 0.5em;
}

/* Content width: max-width column, positioned with auto margins.
   Widths must match the labels in inc/harleys/admin-ui.js. */
div.content-width {
	max-width: 800px;
	margin-inline: auto;
	&.content-width--xs { max-width: 480px; }
	&.content-width--sm { max-width: 640px; }
	&.content-width--md { max-width: 800px; }
	&.content-width--lg { max-width: 960px; }
	&.content-width--xl { max-width: 1200px; }
	&.content-width--left { margin-inline: 0 auto; }
	&.content-width--center { margin-inline: auto; }
	&.content-width--right { margin-inline: auto 0; }
	& > :first-child { margin-top: 0; }
	& > :last-child { margin-bottom: 0; }
}

ul.feature-list {
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 1em;
	@media (width > 768px) {
		grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
	}
	li {
		list-style: none !important;
		margin: 0;
	}

	/* Limit width: --max-width only set when enabled */
	max-width: var(--max-width, none);
	&.feature-list--align-center {
		margin-inline: auto !important;
	}
	&.feature-list--align-right {
		margin-left: auto !important;
	}

	&.feature-list--ticks {
		li {
			position: relative;
			padding-left: 2.5em;
			&:before {
				content: "\f00c"; /* fa-check */
				color: var(--tick-colour); /* unset -> inherits the text colour */
				font-family: "Font Awesome 6 Free"; /* loaded in inc/theme-shortcodes.php */
				font-weight: 900; /* solid; the free font has no other weight for this icon */
				-webkit-font-smoothing: antialiased;
				position: absolute;
				left: 0;
				top: 0em;
				width: 1.5em;
				line-height: 1.5em;
				text-align: left;
			}
		}
	}
	&.feature-list--ticks.feature-list--underlined {
		li {
			padding-bottom: 0.75em;
			padding-right: 0.75em;
			border-bottom: 1px solid #ccc;
		}
	}
	&.feature-list--ticks.feature-list--rounded {
		li:before {
			/* Same 1.5em footprint as the plain tick, with a smaller icon inside */
			font-size: 0.75em;
			width: 2em;
			line-height: 2em;
			text-align: center;
			color: #fff;
			background: var(--tick-colour, #DE6923); /* no colour picked -> brand orange */
			border-radius: 50%;
		}
	}
	&.feature-list--cards {
		li {
			border: 1px solid #ccc;
			padding: 1em;
			border-radius: 0.25rem;
			background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 61.8%);
		}
	}
}


/* New style for the testimonials slider, existing components needs full rebuild later */
.testimonials-slider-v2 {
	&.no-background {
		background: none;
		&:before, &:after {
			display: none;
		}
	}
	&.dark-cards {
		
			h2, h3, h4 {
				&:has(.accent) {
					font-weight: 300;
				}
			}

		div.testimonial-slide {
			display: grid;
			grid-template-columns: 1fr 1fr;
			padding: 0;
			gap: 0;
			background-color: #000000;
			color: white;
			.image {
				width: 100%;
				height: 100%;
				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
					object-position: center;
				}
			}

			.testimonial-content {
				padding: 2rem;
				display: grid;
				align-content: center;
				.icon {
					display: none;
				}
				.text {
					font-weight: 300;
					&:before { content: '“'; }
					&:after { content: '”'; }
				}
				.text, .description {
					color: white;
				}

				
			}
			@media (width <= 998px) {
				grid-template-columns: 1fr;
				text-align: center;
				.image {
					width: 100%;
					height: auto;
					padding: 2rem;
					img {
						width: 18.625rem;
						max-width: 100%;
						height: auto;
						margin: 0 auto;
					}
				}
			}
		}

	}
}


/* Container widths */
.container {
	max-width: 1200px;

	&.content-column-width-xl {
		max-width: 1600px;
	}
	&.content-column-width-lg {
		max-width: 1400px;
	}

	&.content-column-width-sm {
		max-width: 1000px;
	}
	&.content-column-width-xs {
		max-width: 800px;
	}
}

iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}