/*
 * Home „O nas” (template-parts/home/about.php). No section mockup; built from
 * the preview docs/preview/new_home7_2.png: a wide photo left, text right.
 * Below 56em: the photo above the text.
 */

.hf-about
{
	padding-block: var(--hf-space-section-block);
}

.hf-about__inner
{
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.hf-about__image
{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	border-radius: var(--hf-radius-m);
	object-fit: cover;
	object-position: 50% 30%;
}

.hf-about__eyebrow
{
	margin-bottom: var(--hf-space-s);
}

/* Smaller than other section headings: the preview keeps it on one line
   next to the photo (max 39px for this text at 1440). */
.hf-about__title
{
	margin: 0 0 var(--hf-space-m);
	font-size: var(--hf-text-h2-s);
	text-wrap: balance;
}

.hf-about__text
{
	max-width: 32em;
	margin: 0 0 var(--hf-space-l);
	font-size: var(--hf-text-l);
	line-height: 1.55;
	text-wrap: pretty;
}

@media (max-width: 55.99em)
{
	.hf-about__inner
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.hf-about__image
	{
		aspect-ratio: 3 / 2;
	}
}

/* Phones: the typed line break would leave the text ragged. */
@media (max-width: 40em)
{
	.hf-about__text br
	{
		display: none;
	}
}
