/* Lovely Instagram Feed */
.ligf {
	--ligf-cols: 5;
	--ligf-cols-t: 5;
	--ligf-cols-m: 2;
	--ligf-gap: 0px;
	--ligf-radius: 0px;
	--ligf-overlay: rgba(33, 41, 66, 0.28);
	width: 100%;
}

/* Elementor flex-containers: widget altijd volle breedte (anders hoogte 0 op gsm) */
.elementor-widget-lovely_instagram_feed {
	width: 100%;
	max-width: 100%;
}

/* ---------- Kop ---------- */
.ligf-header {
	text-align: center;
	margin-bottom: 46px;
}
.ligf-subtitle {
	display: block;
	margin: 0 0 26px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #8f91c6;
}
.ligf .ligf-title {
	margin: 0 0 36px;
	padding: 0;
	font-size: 44px;
	font-weight: 400;
	line-height: 1.2;
	color: #1d2a3d;
}
.ligf-divider {
	display: block;
	width: 110px;
	height: 2px;
	background: #9fa1d4;
	margin-left: var(--ligf-div-ml, auto);
	margin-right: var(--ligf-div-mr, auto);
}

/* ---------- Raster ---------- */
.ligf-grid {
	display: grid;
	grid-template-columns: repeat(var(--ligf-cols), minmax(0, 1fr));
	gap: var(--ligf-gap);
}
.ligf .ligf-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f8;
	border-radius: var(--ligf-radius);
	text-decoration: none;
	box-shadow: none;
}
.ligf .ligf-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}
.ligf-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	z-index: 2;
	pointer-events: none;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}
.ligf-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
.ligf-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ligf-overlay);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.ligf-overlay svg {
	width: 34px;
	height: 34px;
}
.ligf--hover .ligf-item:hover img,
.ligf--hover .ligf-item:focus-visible img {
	transform: scale(1.04);
}
.ligf--hover .ligf-item:hover .ligf-overlay,
.ligf--hover .ligf-item:focus-visible .ligf-overlay {
	opacity: 1;
}

.ligf-empty {
	padding: 24px;
	text-align: center;
	background: #f6f6fb;
	color: #555;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.ligf-grid {
		grid-template-columns: repeat(var(--ligf-cols-t), minmax(0, 1fr));
	}
	.ligf .ligf-title {
		font-size: 36px;
	}
}
@media (max-width: 767px) {
	.ligf-grid {
		grid-template-columns: repeat(var(--ligf-cols-m), minmax(0, 1fr));
	}
	.ligf .ligf-title {
		font-size: 30px;
	}
	.ligf-header {
		margin-bottom: 32px;
	}
}

/* ---------- Popup: posts onder elkaar ---------- */
html.ligf-lb-open { overflow: hidden; }
.ligf-lb {
	--lb-accent: #8f91c6;
	--lb-ink: #1d2a3d;
	--lb-muted: #6b6f80;
	position: fixed;
	inset: 0;
	z-index: 999999;
	opacity: 0;
	transition: opacity .2s ease;
}
.ligf-lb[hidden] { display: none !important; }
.ligf-lb.is-visible { opacity: 1; }
.ligf-lb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 26, 42, 0.88);
}
.ligf-lb__scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	outline: none;
}
.ligf-lb__list {
	width: min(560px, 100%);
	margin: 0 auto;
	padding: 24px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.ligf-lb__post {
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.ligf-lb__media {
	position: relative;
	background: #f4f4f8;
}
.ligf-lb__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ligf-lb__track::-webkit-scrollbar { display: none; }
.ligf-lb__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	aspect-ratio: 1 / 1;
	max-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f8;
}
.ligf-lb .ligf-lb__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	margin: 0;
	border-radius: 0;
}
.ligf-lb__slide { position: relative; }
.ligf-lb .ligf-lb__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	padding: 20px 18px 20px 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	cursor: pointer;
	transition: transform .15s, background .15s;
}
.ligf-lb .ligf-lb__play:hover { background: rgba(0, 0, 0, .65); transform: scale(1.06); }
.ligf-lb__play svg { width: 100%; height: 100%; display: block; }
.ligf-lb__slide video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}
.ligf-lb__slide.is-playing .ligf-lb__play { display: none; }
.ligf-lb__slide.is-loading .ligf-lb__play { opacity: .6; pointer-events: none; }
.ligf-lb__vmsg {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	padding: 10px 14px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 14px;
	text-align: center;
	z-index: 3;
}
.ligf-lb__count {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 9px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}
.ligf-lb__dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}
.ligf-lb__dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 0 2px rgba(0, 0, 0, .35);
	transition: background .2s;
}
.ligf-lb__dots span.is-active { background: #fff; }
.ligf-lb__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
	color: var(--lb-ink);
}
.ligf-lb__date {
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--lb-accent);
}
.ligf-lb__caption {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-line;
	color: var(--lb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ligf-lb__caption.is-open { display: block; -webkit-line-clamp: unset; }
.ligf-lb .ligf-lb__more {
	align-self: flex-start;
	font-size: 14px;
	color: var(--lb-accent);
	text-decoration: underline;
}
.ligf-lb .ligf-lb__cta {
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	background: var(--lb-accent);
	color: #fff;
	font-size: 14px;
	letter-spacing: .05em;
	text-decoration: none;
	transition: background .2s;
}
.ligf-lb .ligf-lb__cta:hover,
.ligf-lb .ligf-lb__cta:focus-visible { background: #7577b4; color: #fff; }
.ligf-lb__cta svg { width: 20px; height: 20px; flex: none; }
.ligf-lb__end {
	margin: 0;
	text-align: center;
	color: #fff;
	font-size: 15px;
}
.ligf-lb .ligf-lb__end a { color: #fff; text-decoration: underline; }

.ligf-lb :where(button) {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ligf-lb button[hidden] { display: none; }
.ligf-lb :where(button):focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 2px; }
.ligf-lb :where(button) svg { width: 100%; height: 100%; }
.ligf-lb__close {
	position: fixed;
	top: calc(14px + env(safe-area-inset-top, 0px));
	right: calc(14px + env(safe-area-inset-right, 0px));
	z-index: 3;
	width: 42px;
	height: 42px;
	padding: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--lb-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.ligf-lb__nav {
	position: absolute;
	top: 50%;
	width: 34px;
	height: 34px;
	margin-top: -17px;
	padding: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--lb-ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.ligf-lb__nav--prev { left: 10px; }
.ligf-lb__nav--next { right: 10px; }

@media (max-width: 600px) {
	.ligf-lb__list { padding: 0 0 32px; gap: 10px; }
	.ligf-lb__post { box-shadow: none; }
	.ligf-lb__slide { max-height: none; }
	.ligf-lb__nav { display: none !important; } /* op gsm: swipen */
	.ligf-lb__backdrop { background: #1d2a3d; }
}
@media (prefers-reduced-motion: reduce) {
	.ligf-lb { transition: none; }
}
