/* ===========================================================================
   Helios — Testimonial reel widget
   ======================================================================== */

.hl-qcard {
	display: flex;
	flex: 0 0 clamp(276px, 30vw, 420px);
	flex-direction: column;
	margin: 0;
	padding: 0 0 24px;
	overflow: hidden;
	border: 1px solid var(--hl-w-border, var(--hl-line));
	border-radius: var(--hl-radius-card);
	background: rgba(11, 9, 8, .55);
	backdrop-filter: blur(6px);
	transition: .5s var(--hl-ease);
}
.hl-qcard:hover {
	border-color: var(--hl-w-accent, var(--hl-sun));
	transform: translateY(-6px);
}

/* ---------- video well ---------- */
.hl-qcard__vid {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hl-ink-3);
}
.hl-qcard__vid img,
.hl-qcard__vid iframe {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* Dim the poster so the play button reads. Removed once the iframe is in, or
   it would sit over the playing video and swallow the controls. */
.hl-qcard__vid::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 9, 8, .1), rgba(11, 9, 8, .55));
	pointer-events: none;
	transition: .5s var(--hl-ease);
}
.hl-qcard__vid.is-playing::after { display: none; }

.hl-qcard__play {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding-left: 3px; /* optically centres the triangle glyph */
	border: 1px solid var(--hl-cream);
	border-radius: 50%;
	background: rgba(11, 9, 8, .45);
	color: var(--hl-cream);
	font-size: .9rem;
	transition: .4s var(--hl-ease);
}
.hl-qcard__play:hover {
	background: var(--hl-cream);
	color: var(--hl-ink);
	transform: translate(-50%, -50%) scale(1.07);
}

.hl-qcard__vlabel {
	position: absolute;
	inset-inline-start: 14px;
	top: 14px;
	z-index: 2;
	padding: 5px 11px;
	border: 1px solid var(--hl-cream-faint);
	border-radius: 999px;
	background: rgba(11, 9, 8, .5);
	backdrop-filter: blur(3px);
	font-size: .56rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hl-cream);
}

/* ---------- body ---------- */
.hl-qcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 0;
}
.hl-qcard--novid .hl-qcard__body { padding-top: 30px; }

/* line-height .5 pulls the oversized quote glyph up onto the first line of the
   quote instead of leaving a gap the height of a 2.6rem serif. */
.hl-qcard__mark {
	display: block;
	margin-bottom: 20px;
	font-family: var(--hl-f-display);
	font-size: 2.6rem;
	line-height: .5;
	opacity: .45;
}

.hl-qcard blockquote {
	margin: 0;
	font-family: var(--hl-f-display);
	font-size: clamp(1.05rem, 1.5vw, 1.34rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.44;
}

.hl-qcard figcaption {
	margin-top: auto;
	padding-top: 22px;
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.hl-qcard figcaption b {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	letter-spacing: .12em;
	color: var(--hl-w-heading, var(--hl-cream));
}
