/*
 * Quote (design draft V2): one centred voice at a time, the fine gold
 * chevrons at the outer edges, a short gold rule beneath.
 */
@layer blocks {
	.quote .container {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.quote__carousel,
	.quote__single {
		position: relative;
		width: 100%;
	}

	.quote__carousel {
		--carousel-slide-size: 100%;
		--carousel-gap: var(--space-8);
	}

	.quote__figure {
		display: grid;
		justify-items: center;
		max-width: 50rem;
		margin: 0 auto;
		padding-inline: var(--space-8);
		text-align: center;
	}

	.quote__caption {
		display: grid;
		justify-items: center;
	}

	.quote__portrait {
		display: grid;
		place-items: center;
		width: var(--space-20);
		height: var(--space-20);
		overflow: hidden;
		border-radius: 50%;
		background: var(--card);
	}

	.quote__image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.quote__emblem {
		width: var(--space-10);
		height: var(--space-10);
	}

	.quote__name {
		margin-top: var(--space-5);
	}

	.quote__text {
		display: grid;
		gap: var(--space-3);
		margin: var(--space-4) 0 0;
		font-size: var(--type-statement);
		line-height: var(--type-statement-line);
		color: var(--foreground);
		text-wrap: balance;
	}

	.quote__text p::before {
		content: "\201C";
	}

	.quote__text p:last-child::after {
		content: "\201D";
	}

	.quote__text p + p::before {
		content: none;
	}

	.quote__role {
		margin-top: var(--space-3);
		color: var(--subtle-foreground);
		font-size: var(--type-small-size);
		line-height: var(--type-small-line);
	}

	.quote__rule {
		width: var(--space-40);
		height: var(--border-width);
		margin-top: var(--space-10);
		background: var(--rule);
	}

	/* Chevrons at the outer edges, level with the words. */
	.quote__arrows .carousel__arrows {
		position: absolute;
		inset: 50% 0 auto;
		justify-content: space-between;
		translate: 0 -50%;
		pointer-events: none;
	}

	.quote__arrows .carousel__button {
		width: var(--space-8);
		height: var(--space-16);
		pointer-events: auto;
	}

	.quote__arrows .carousel__button::before {
		width: var(--space-3);
		height: var(--space-10);
		mask-image: var(--icon-chevron-large);
	}

	.quote__slide:not(.carousel__slide--selected) .quote__figure {
		opacity: 0;
		transition: opacity var(--duration-base) var(--ease-out);
	}

	.quote__slide .quote__figure {
		transition: opacity var(--duration-reveal) var(--ease-out);
	}

	.quote__carousel:not([data-carousel-ready]) .carousel__viewport {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.quote__carousel:not([data-carousel-ready]) .carousel__slide {
		scroll-snap-align: center;
	}

	.quote__carousel:not([data-carousel-ready]) .quote__arrows {
		display: none;
	}

	@media (min-width: 64rem) {
		.quote__figure {
			padding-inline: var(--space-16);
		}
	}
}
