/* pr/istorija · Figma: Apie Section/istorija (2032:3100). */

.pr-istorija {
	padding-block: 3rem;
}

.pr-istorija__grid {
	display: grid;
	gap: 1.5rem;
}

.pr-istorija__img {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: var(--pr-line);
	overflow: hidden;
	font-size: 0.8125rem;
	color: var(--pr-line-dark);
}

.pr-istorija__img:has(> figure) {
	position: relative;
}

.pr-istorija__img > figure {
	position: absolute;
	inset: 0;
	margin: 0;
}

.pr-istorija__img img,
.pr-istorija__img > figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pr-istorija__text {
	display: grid;
	align-content: center;
	gap: 0.875rem;
}

.pr-istorija__text h2 {
	font-size: 1.75rem;
	letter-spacing: -0.02em;
}

.pr-istorija__text p:not(.pr-label) {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--pr-text);
}

@media (min-width: 1000px) {
	.pr-istorija__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 4rem;
	}

	.pr-istorija__text h2 {
		font-size: 2.25rem;
	}
}

@media (min-width: 1000px) {
	.pr-istorija {
		padding-block: 6rem;
	}
}
