/* De Neef Projecten – front-end
   Breakpoints follow Elementor defaults: tablet ≤ 1024px, mobile ≤ 767px. */

.dnp {
	--dnp-gap: 30px;
	--dnp-title-color: #1B2F0B;
	--dnp-text-color: #3F3F3F;
	--dnp-font: "Nunito Sans", sans-serif;
	box-sizing: border-box;
}

.dnp *,
.dnp *::before,
.dnp *::after {
	box-sizing: inherit;
}

/* ---------- Typography (requested styles) ---------- */

.dnp .dnp-title {
	font-family: var(--dnp-font);
	font-weight: 400;
	font-size: 29px;
	line-height: 1.2em;
	color: var(--dnp-title-color);
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
}

.dnp .dnp-description,
.dnp .dnp-description p,
.dnp .dnp-description li {
	font-family: var(--dnp-font);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6em;
	color: var(--dnp-text-color);
}

.dnp .dnp-description p {
	margin: 0 0 1em;
}

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

/* ---------- Overview grid ---------- */

.dnp-grid {
	display: grid;
	grid-template-columns: repeat(var(--dnp-columns, 3), minmax(0, 1fr));
	gap: var(--dnp-gap);
}

.dnp-card {
	margin: 0;
}

.dnp .dnp-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.dnp-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #F7F7F7;
}

.dnp .dnp-card__img,
.dnp-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.dnp-card__link:hover .dnp-card__img,
.dnp-card__link:focus-visible .dnp-card__img {
	transform: scale(1.05);
}

.dnp .dnp-card__title {
	margin-top: 15px;
	transition: opacity .2s ease;
}

.dnp-card__link:hover .dnp-card__title {
	opacity: .8;
}

.dnp-card__link:focus-visible {
	outline: 2px solid var(--dnp-title-color);
	outline-offset: 4px;
}

.dnp-empty {
	font-family: var(--dnp-font);
	color: var(--dnp-text-color);
}

/* ---------- Single project ---------- */

.dnp-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}

.dnp .dnp-back {
	display: inline-block;
	margin-bottom: 25px;
	font-family: var(--dnp-font);
	font-size: 15px;
	color: var(--dnp-title-color);
	text-decoration: none;
}

.dnp .dnp-back:hover,
.dnp .dnp-back:focus-visible {
	text-decoration: underline;
}

.dnp-single .dnp-description {
	margin-top: 20px;
	max-width: 800px;
}

.dnp-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}

.dnp .dnp-gallery__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #F7F7F7;
	cursor: zoom-in;
}

.dnp .dnp-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.dnp-gallery__item:hover .dnp-gallery__img,
.dnp-gallery__item:focus-visible .dnp-gallery__img {
	transform: scale(1.05);
}

.dnp-gallery__item:focus-visible {
	outline: 2px solid var(--dnp-title-color);
	outline-offset: 3px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.dnp .dnp-title {
		font-size: 26px;
		line-height: 1.3em;
	}

	.dnp-grid:not(.dnp-grid--cols-1),
	.dnp-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dnp {
		--dnp-gap: 24px;
	}

	.dnp-single {
		padding-top: 40px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.dnp .dnp-title {
		font-size: 22px;
	}

	.dnp .dnp-description,
	.dnp .dnp-description p,
	.dnp .dnp-description li {
		font-size: 14px;
	}

	.dnp-grid:not(.dnp-grid--cols-1) {
		grid-template-columns: 1fr;
	}

	.dnp-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 30px;
	}

	.dnp {
		--dnp-gap: 20px;
	}

	.dnp-single {
		padding: 30px 16px 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dnp *,
	.dnp-lb * {
		transition: none !important;
	}
}

/* ---------- Lightbox ---------- */

html.dnp-lb-open {
	overflow: hidden;
}

.dnp-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 14, 8, .94);
	opacity: 0;
	transition: opacity .25s ease;
}

.dnp-lb.is-open {
	display: flex;
}

.dnp-lb.is-visible {
	opacity: 1;
}

.dnp-lb__figure {
	margin: 0;
	max-width: 92vw;
	text-align: center;
}

.dnp-lb__img {
	display: block;
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	user-select: none;
}

.dnp-lb__caption,
.dnp-lb__counter {
	font-family: "Nunito Sans", sans-serif;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.dnp-lb__caption {
	margin-top: 12px;
}

.dnp-lb__caption:empty {
	display: none;
}

.dnp-lb__counter {
	position: absolute;
	top: 22px;
	left: 24px;
	opacity: .8;
}

.dnp-lb__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

.dnp-lb__btn:hover,
.dnp-lb__btn:focus-visible {
	background: rgba(255, 255, 255, .28);
	outline: none;
}

.dnp-lb__btn:focus-visible {
	box-shadow: 0 0 0 2px #fff;
}

.dnp-lb__close { top: 12px; right: 16px; }
.dnp-lb__prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.dnp-lb__next  { right: 16px; top: 50%; transform: translateY(-50%); }

.dnp-lb.is-single .dnp-lb__prev,
.dnp-lb.is-single .dnp-lb__next,
.dnp-lb.is-single .dnp-lb__counter {
	display: none;
}

@media (max-width: 767px) {
	.dnp-lb__prev,
	.dnp-lb__next {
		top: auto;
		bottom: 18px;
		transform: none;
	}
	.dnp-lb__img {
		max-width: 100vw;
		max-height: 75vh;
	}
}
