/*
 * Home „Dla organizatorów” (template-parts/home/organizers.php).
 * Mockup: docs/sections/home/home_for_organisators.png. Desktop: text, three
 * offer items divided by thin lines and the button on the left, the photo of
 * the hall on the right. Below 56em: text first, photo under it. Phones:
 * items one under another.
 */

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

.hf-organizers__inner
{
	display: grid;
	/* The text column needs about 690 px at 1440 px for a two-line heading
	   and three offer items (Libre Baskerville is wider than the mockup font). */
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 1rem + 3vw, 4rem);
}

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

.hf-organizers__title
{
	margin: 0 0 var(--hf-space-s);
	font-size: min(var(--hf-text-h2), 3.5rem);
	text-wrap: balance;
}

.hf-organizers__text
{
	margin: 0;
	font-size: var(--hf-text-l);
}

.hf-organizers__items
{
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	margin: var(--hf-space-l) 0;
	padding: 0;
	list-style: none;
}

.hf-organizers__item
{
	padding-inline: clamp(1rem, 0.5rem + 1.2vw, 1.75rem);
}

.hf-organizers__item:first-child
{
	padding-left: 0;
}

.hf-organizers__item + .hf-organizers__item
{
	border-left: 1px solid var(--hf-color-line);
}

.hf-organizers__icon
{
	display: block;
	width: clamp(2.5rem, 2.2rem + 0.8vw, 3.25rem);
	height: auto;
	aspect-ratio: 1;
	margin-bottom: var(--hf-space-s);
	color: var(--hf-color-icon);
}

.hf-organizers__item-title
{
	margin: 0 0 var(--hf-space-xs);
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.5rem);
}

.hf-organizers__item-text
{
	margin: 0;
	font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
	line-height: 1.5;
	text-wrap: balance;
}

/* The columns are narrow, so typed line breaks would leave single words on
   a line; the text flows and balances instead. Titles keep their breaks. */
.hf-organizers__item-text br
{
	display: none;
}

.hf-organizers__image
{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 8;
	border-radius: var(--hf-radius-m);
	object-fit: cover;
}

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

@media (max-width: 40em)
{
	.hf-organizers__items
	{
		grid-auto-flow: row;
		gap: var(--hf-space-m);
	}

	.hf-organizers__item,
	.hf-organizers__item:first-child
	{
		padding-inline: 0;
	}

	.hf-organizers__item + .hf-organizers__item
	{
		padding-top: var(--hf-space-m);
		border-top: 1px solid var(--hf-color-line);
		border-left: 0;
	}

	.hf-organizers__item-title br,
	.hf-organizers__item-text br
	{
		display: none;
	}
}
