/* Section: testimonials — template-parts/sections/testimonials.php */

.testimonials__title {
	margin-inline-start: 60px;
	margin-bottom: 70px;
}

.testimonials__slide {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: start;
	padding-block: 10px 11px;
}

@media (min-width: 782px) {
	.testimonials__slide {
		grid-template-columns: 450px 300px;
		column-gap: 135px;
		padding-inline-start: 120px;
	}
}

.testimonials__figure {
	display: flex;
	flex-direction: column;
	margin: 2px 0 0;
	text-align: end;
}

/* Author first, then the quote. */
.testimonials__author {
	order: -1;
	display: flex;
	flex-direction: column;
	margin-bottom: 41px;
}

.testimonials__name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 24px;
	color: var(--wp--preset--color--contrast);
}

.testimonials__role {
	margin-top: 5px;
	color: var(--wp--preset--color--primary-dark);
}

.testimonials__quote {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
}

.testimonials__quote p {
	margin: 0;
}

.testimonials__logo img {
	display: block;
	max-width: 100%;
	height: 180px;
	object-fit: contain;
	object-position: left;
}

@media (max-width: 781.98px) {
	.testimonials__title {
		margin-inline-start: 0;
		margin-bottom: 40px;
	}
}

/* Vertical position matched to the original design (desktop). */
@media (min-width: 782px) {
	.testimonials {
		padding-top: 68px;
	}
}

/* Phones — measured against timsteel.pt at 375px. */
@media (max-width: 781.98px) {
	.testimonials__title {
		margin-bottom: 44px;
	}

	.testimonials__slide {
		gap: 8px;
		padding: 0 24px 0 60px;
	}

	.testimonials__figure {
		text-align: end;
	}

	.testimonials__logo {
		margin-inline-start: -36px;
	}
}
