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

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: center;
}

@media (min-width: 1024px) {
	.about__grid {
		grid-template-columns: minmax(0, 513fr) minmax(0, 627fr);
		gap: 0;
	}
}

.about__content {
	padding-inline-end: 60px;
}

.about__title {
	margin-inline-start: 60px;
	margin-bottom: 80px;
}

.about__text {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--wp--preset--color--primary-dark);
	text-align: end;
}

.about__text p {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.about__media {
	margin: 0;
}

.about__media img {
	display: block;
	width: 100%;
	height: 70vh;
	object-fit: cover;
}

@media (max-width: 1023.98px) {
	.about__content {
		padding-inline-end: 0;
	}

	.about__title {
		margin-inline-start: 0;
	}

	.about__media img {
		height: auto;
	}
}

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

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

	.about__grid {
		gap: 78px;
	}

	.about__title {
		margin-bottom: 44px;
	}

	.about__text {
		text-align: center;
	}

	/* Full-bleed picture at the bottom of the section. */
	.about__media {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
	}

	.about__media img {
		width: 100%;
		height: 406px;
		object-fit: cover;
	}
}
