/* Alloway Testimonials — only what the DYNAMIC tiles add on top of
   bold.css's rail styles: the YouTube poster in the main player face
   and the thumbnail image in a rail thumb. The face/thumb layout,
   play glyph, and captions all stay bold.css's. */

.bold-video__face {
	position: relative;
}

.bold-video__face > * {
	position: relative;
	z-index: 1;
}

.alloway-vt__poster {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;

	/* Quiet the poster so the play glyph and label stay legible. */
	filter: brightness(0.55);
}

.bold-vthumb__thumb {
	position: relative;
	overflow: hidden;
}

.bold-vthumb__thumb .bold-video__play {
	position: relative;
	z-index: 1;
}

.alloway-vt__thumbimg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.7);
}

/* ---- Photo mode (epic 10, Jack's mockup): a white card on the dark
   slab — equipment photo over the quote bar (avatar, gold quote
   marks, name + operation line) — with side arrows and dots. ---- */

.alloway-pt {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}

.alloway-pt--empty {
	grid-template-columns: minmax(0, 1fr);
}

.alloway-pt__viewport {
	grid-column: 2;
}

.alloway-pt--empty .alloway-pt__slide,
.alloway-pt--empty .alloway-pt__viewport {
	grid-column: 1;
}

.alloway-pt__slide {
	/* Dark base (round 3): the bar is black, so the card grounds dark
	   and a hairline edge keeps it defined against the dark slab. */
	background: var(--bold-dark, #1c1917);
	border: 1px solid rgb(255 255 255 / 16%);
	border-radius: 3px;
	overflow: hidden;
	color: #fff;
}

.alloway-pt__slide img {
	/* Locked (Jack): right-clicks pass THROUGH the image (no save-as
	   menu) and drags never ghost. A deterrent, not protection — the
	   photo still travels in the page like any web image. */
	pointer-events: none;
	user-select: none;
}

/* The peek layout, JS-enhanced (Jack round 2): a sliding track — the
   center card focused, its neighbors half-visible and faded to say
   "there are more". Without JS the base rules show one card. */
.alloway-pt--enhanced .alloway-pt__viewport {
	overflow: hidden;
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 10%,
		#000 90%,
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 10%,
		#000 90%,
		transparent 100%
	);

	/* Draggable on every input: vertical page scroll stays native on
	   touch; the grab cursor advertises it on desktop. */
	touch-action: pan-y;
	user-select: none;
	cursor: grab;
}

.alloway-pt--enhanced .alloway-pt__viewport:active {
	cursor: grabbing;
}

.alloway-pt--enhanced .alloway-pt__track {
	display: flex;
	gap: 24px;
	align-items: stretch;
	transition: transform 450ms ease;
}

.alloway-pt--enhanced .alloway-pt__track.is-dragging {
	transition: none;
}

.alloway-pt--enhanced .alloway-pt__slide {
	flex: 0 0 62%;
	min-width: 0;
	transition: opacity 450ms ease;
}

.alloway-pt--enhanced .alloway-pt__slide:not(.is-active) {
	opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
	.alloway-pt--enhanced .alloway-pt__track,
	.alloway-pt--enhanced .alloway-pt__slide {
		transition: none;
	}
}

.alloway-pt__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 8;
	background: var(--wp--preset--color--surface, #f6f4f1);
}

/* The equipment photo fades DOWN into the black quote bar (Jack
   round 3: dark bar, gold accents). */
.alloway-pt__photo::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 64px;
	background: linear-gradient(180deg, transparent, var(--bold-dark, #1c1917));
	pointer-events: none;
}

.alloway-pt__photo .alloway-pt__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.alloway-pt__photo--ph {
	display: grid;
	place-items: center;
	color: rgb(28 25 23 / 55%);
	font-family: var(
		--wp--preset--font-family--heading,
		"Roboto Condensed",
		sans-serif
	);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;

	/* No gold divider (Jack round 4): the black fade alone carries the
	   transition, matching every photo card. */
}

.alloway-pt__bar {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	background: var(--bold-dark, #1c1917);
	color: #fff;
}

.alloway-pt__avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--primary, #fbd64a);
	color: var(--bold-ink, #1c1917);
	font-family: var(
		--wp--preset--font-family--heading,
		"Roboto Condensed",
		sans-serif
	);
	font-size: 1.3rem;
	font-weight: 700;
}

.alloway-pt__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alloway-pt__quote {
	margin: 0;
	position: relative;
	padding: 0 34px;
	font-size: 1.05rem;
	line-height: 1.5;
}

.alloway-pt__quote::before,
.alloway-pt__quote::after {
	position: absolute;

	/* Gold marks on the dark bar (Jack round 3). */
	color: var(--wp--preset--color--primary, #fbd64a);
	font-family: Georgia, serif;
	font-size: 3rem;
	line-height: 1;
}

.alloway-pt__quote::before {
	content: "\201C";
	top: -8px;
	left: -4px;
}

.alloway-pt__quote::after {
	content: "\201D";
	right: -4px;
	bottom: -22px;
}

.alloway-pt__quote p {
	margin: 0 0 6px;
}

.alloway-pt__quote footer {
	font-size: 0.85rem;
}

.alloway-pt__name {
	font-weight: 700;
}

.alloway-pt__meta {
	opacity: 0.7;
}

.alloway-pt__arrow {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
}

.alloway-pt__arrow:hover span,
.alloway-pt__arrow:focus-visible span {
	color: var(--wp--preset--color--primary, #fbd64a);
}

.alloway-pt__arrow:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary, #fbd64a);
	outline-offset: 2px;
}

.alloway-pt__dots {
	grid-column: 2;
	display: flex;
	justify-content: center;
	gap: 0; /* The 48px buttons provide their own spacing. */
	margin-top: 2px;
}

/* Round-1 epic-close finding 4: the button is a >=48px touch target
   (the project's hard tap-target floor); the 12px DOT is only its
   ::before visual. */
.alloway-pt__dot {
	position: relative;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.alloway-pt__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: var(--bold-dark, #1c1917);
}

.alloway-pt__dot.is-active::before {
	background: var(--wp--preset--color--primary, #fbd64a);
	border-color: var(--wp--preset--color--primary, #fbd64a);
}

.alloway-pt__dot:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary, #fbd64a);
	outline-offset: -6px;
}

@media (max-width: 600px) {
	.alloway-pt {
		grid-template-columns: minmax(0, 1fr);
	}

	.alloway-pt--enhanced .alloway-pt__slide {
		flex-basis: 92%; /* One card with a sliver of peek. */
	}

	.alloway-pt__viewport,
	.alloway-pt__dots {
		grid-column: 1;
	}

	.alloway-pt__arrow {
		display: none; /* Dots + swipe-free tap targets carry mobile. */
	}

	.alloway-pt__bar {
		flex-direction: column;
		text-align: center;
	}

	.alloway-pt__quote {
		padding: 0 22px;
	}
}
