/* ===================================================================
   Productgalerij ([product_gallery]) — thumbnail-rail + hoofdfoto die
   van blob-vorm naar afgeronde rechthoek morpht bij hover, met een
   lightbox (pijlen, sluiten, thumbnails, teller). Naar het ontwerp.
   =================================================================== */
.lk-gallery {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 16px;
	align-items: start;
}
/* Geen thumbnail-rail (bijv. lege galerij) → hoofdfoto vult de volle breedte. */
.lk-gallery:not(:has(.lk-gallery__thumbs)) { grid-template-columns: 1fr; }
.lk-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lk-gallery__thumb {
	aspect-ratio: 1;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	background: #F2ECE1;
	padding: 0;
	transition: border-color .15s ease;
}
.lk-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-gallery__thumb.is-active { border-color: #523F6D; }

/* Hoofdfoto: blob-vorm in rust, wordt afgeronde rechthoek bij hover */
.lk-gallery__main {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #F2ECE1;
	cursor: zoom-in;
	border-radius: 18px;
	box-shadow: 0 30px 60px -30px rgba(82, 63, 109, .35), 0 12px 24px -16px rgba(82, 63, 109, .2);
	transition: border-radius 1.2s cubic-bezier(.4, .2, .2, 1);
}
/*.lk-gallery__main:hover { border-radius: 18px; }*/
.lk-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Vergroot-knop rechtsonder, verschijnt bij hover */
.lk-gallery__zoom {
	position: absolute;
	bottom: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(250, 246, 240, .88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(250, 246, 240, .5);
	color: #2A1F40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
	box-shadow: 0 8px 24px -8px rgba(31, 26, 42, .4);
}
.lk-gallery__main:hover .lk-gallery__zoom { opacity: 1; transform: translateY(0); }
.lk-gallery__zoom:hover { background: #fff; }

/* ----- Lightbox ----- */
.lk-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(250, 246, 240, .92);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	backdrop-filter: blur(24px) saturate(140%);
	display: grid;
	grid-template-rows: 1fr auto;
	overflow: hidden;
	animation: lk-lightbox-in .3s cubic-bezier(.4, .2, .2, 1);
}
@keyframes lk-lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lk-lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #FAF6F0;
	border: 1px solid #E8DFD3;
	color: #3D3548;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: all .2s ease;
	box-shadow: 0 4px 16px -6px rgba(31, 26, 42, .18);
}
.lk-lightbox__close:hover {
	background: #523F6D;
	border-color: #523F6D;
	color: #FAF6F0;
	transform: rotate(90deg);
}

.lk-lightbox__stage {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	align-items: center;
	gap: 24px;
	padding: 64px 56px 24px;
	min-height: 0;
}
.lk-lightbox__imgwrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 100%;
}
.lk-lightbox__imgwrap img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(31, 26, 42, .05), 0 40px 80px -30px rgba(82, 63, 109, .35), 0 16px 32px -16px rgba(31, 26, 42, .18);
}
.lk-lightbox__arrow {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #FAF6F0;
	border: 1px solid #E8DFD3;
	color: #3D3548;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	justify-self: center;
	transition: all .2s ease;
	box-shadow: 0 4px 16px -6px rgba(31, 26, 42, .15);
}
.lk-lightbox__arrow:hover:not(:disabled) {
	background: #523F6D;
	border-color: #523F6D;
	color: #FAF6F0;
	transform: scale(1.05);
}
.lk-lightbox__arrow:disabled { opacity: .35; cursor: not-allowed; }

.lk-lightbox__footer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 16px 32px 28px;
}
.lk-lightbox__thumbs {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.lk-lightbox__thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	background: #F2ECE1;
	padding: 0;
	cursor: pointer;
	opacity: .6;
	transition: all .2s ease;
}
.lk-lightbox__thumb:hover { opacity: .9; }
.lk-lightbox__thumb.is-active { border-color: #523F6D; opacity: 1; }
.lk-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lk-lightbox__counter {
	position: absolute;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'Cormorant Garamond', serif;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-feature-settings: "tnum";
}
.lk-lightbox__counter .num   { font-size: 22px; line-height: 1; color: #2A1F40; }
.lk-lightbox__counter .sep   { font-size: 16px; color: #B89248; }
.lk-lightbox__counter .total { font-size: 14px; color: #8B8597; }

body.lk-lightbox-open { overflow: hidden; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
	.lk-lightbox__stage { padding: 56px 12px 16px; grid-template-columns: 44px 1fr 44px; gap: 12px; }
	.lk-lightbox__arrow { width: 44px; height: 44px; }
	.lk-lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
}
@media (max-width: 600px) {
	.lk-gallery { grid-template-columns: 1fr; }
	.lk-gallery__thumbs { flex-direction: row; flex-wrap: wrap; order: 2; }
	.lk-gallery__thumb { width: 60px; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
	.lk-gallery__main { transition: none; }
	.lk-lightbox { animation: none; }
}