/**
 * nl-highlights – selected products in a blue band.
 *
 * Breakpoint template, see nl-base.css. Selectors use two classes so they win against
 * the Elementor kit (".elementor-kit-N h2", "a") and the theme.
 */

/* Same fix as in nl-category-grid.css: full width in a wrapping flex container. */
.e-con-inner > .elementor-widget-shortcode:has(.nl-highlights),
.e-con > .elementor-widget-shortcode:has(.nl-highlights) {
	width: var(--container-widget-width, 100%);
	--flex-grow: var(--container-widget-flex-grow);
}

/* In the category template the shortcode widget carries the class "nl-highlights-slot"; without highlights it takes no space. */
.nl-highlights-slot:not(:has(.nl-highlights)) {
	display: none;
}

.nl-highlights.nl-portfolio {
	--nl-highlights-circle: 128px;

	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
	align-items: center;
	gap: 40px;
	width: 100%;
	padding: 48px;
	border-radius: var(--nl-r-l);
	background: var(--nl-action);
	color: #fff;
}

.nl-highlights :focus-visible {
	outline-color: #fff;
}

.nl-highlights .nl-highlights__title {
	font-family: var(--nl-font-heading);
	font-size: 30px;
	font-weight: 900;
	line-height: 1.2;
	color: #fff;
}

.nl-highlights .nl-highlights__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nl-highlights .nl-highlights__list > li {
	min-width: 0;
	margin: 0;
}

.nl-highlights .nl-highlights__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	color: #fff;
	text-decoration: none;
}

.nl-highlights .nl-highlights__image {
	display: block;
	overflow: hidden;
	width: var(--nl-highlights-circle);
	height: var(--nl-highlights-circle);
	border-radius: var(--nl-r-pill);
	background: #fff;
}

.nl-highlights .nl-highlights__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nl-highlights .nl-highlights__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-underline-offset: 4px;
}

.nl-highlights .nl-highlights__item:hover .nl-highlights__name {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.nl-highlights.nl-portfolio {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 32px;
	}
}

@media (max-width: 767px) {
	.nl-highlights.nl-portfolio {
		--nl-highlights-circle: 104px;

		padding: 24px;
	}

	.nl-highlights .nl-highlights__title {
		font-size: 22px;
	}

	.nl-highlights .nl-highlights__list {
		grid-template-columns: minmax(0, 1fr);
	}
}
