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

.history__title {
	margin-bottom: 30px;
	text-align: center;
}

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

@media (min-width: 1024px) {
	.history__grid {
		grid-template-columns: 468px minmax(0, 1fr);
		column-gap: 116px;
		align-items: end;
		padding-inline-start: 10px;
	}

	.history__text {
		margin-bottom: 25px;
	}
}

.history__media {
	margin: 0;
}

.history__media img {
	display: block;
	width: 100%;
	height: auto;
}

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

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

.history__text p:last-child {
	margin-bottom: 0;
}

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

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

	.history__title {
		margin-bottom: 30px;
	}

	.history__grid {
		gap: 34px;
	}

	.history__media {
		padding-inline: 10px;
	}

	.history__text {
		text-align: center;
	}
}
