/* A4W Fotogalerij */

/* De instellingen komen als CSS-variabelen op de module (per toestel); hier enkel terugvalwaarden. */

/* Raster. Zonder script (of tot het geladen is) een gewoon raster; het script maakt er masonry van. */
.a4w-gal__grid {
	display: grid;
	grid-template-columns: repeat(var(--a4w-cols, 3), minmax(0, 1fr));
	gap: var(--a4w-gap, 32px);
	align-items: start;
}
.a4w-gal__grid { position: relative; }
.a4w-gal__probe {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: var(--a4w-gap, 32px);
	visibility: hidden;
	pointer-events: none;
}
.a4w-gal--masonry .a4w-gal__grid.is-masonry {
	grid-auto-rows: 1px;
	row-gap: 0;
}
.a4w-gal--masonry .is-masonry .a4w-gal__item {
	margin-bottom: var(--a4w-gap, 32px);
}

.a4w-gal__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--a4w-radius, 0);
	background: var(--a4w-placeholder, #F2F2F2);
	aspect-ratio: var(--a4w-ratio, var(--a4w-r));
	cursor: zoom-in;
	-webkit-tap-highlight-color: transparent;
}
.a4w-gal__item.is-hidden { display: none; }
.a4w-gal__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.a4w-gal--fade.is-ready .a4w-gal__item img:not(.is-loaded) { opacity: 0; }

/* Hover: donkere laag, vergrootglas, eventueel inzoomen. */
.a4w-gal__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--a4w-overlay, rgba(1, 1, 1, .4));
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.a4w-gal__icon {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--a4w-icon, #fff);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}
.a4w-gal__item:hover::after,
.a4w-gal__item:focus-visible::after,
.a4w-gal__item:hover .a4w-gal__icon,
.a4w-gal__item:focus-visible .a4w-gal__icon { opacity: 1; transform: none; }
.a4w-gal--zoom .a4w-gal__item:hover img { transform: scale(1.06); }
.a4w-gal__item:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Knoppenbalken. */
.a4w-gal__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.a4w-gal__bar--top { margin-bottom: var(--a4w-gap, 32px); }
.a4w-gal__bar--more,
.a4w-gal__bar--bottom { margin-top: var(--a4w-gap, 32px); }
.a4w-gal__bar--more { justify-content: center; }
.a4w-gal__bar .et_pb_button { margin: 0; }

/*
 * Knoppen in de A4W-stijl, zoals de knoppen op de rest van de site: zwart, schuin, vet,
 * bij hover wit met rode rand en weer recht. Sterker dan de algemene Divi-knopstijl,
 * maar zwakker dan "Eigen stijl gebruiken" bij Ontwerp > Knop (die wint dus altijd).
 */
body #page-container .a4w-gal .a4w-gal__bar .et_pb_button,
body .a4w-gal .a4w-gal__bar a.et_pb_button {
	display: inline-block;
	padding: .3em 1em !important;
	border: 2px solid #010101;
	border-radius: 10px;
	background-color: #010101;
	color: #fff !important;
	font-family: 'Barlow', Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
	font-weight: 900;
	font-style: normal;
	line-height: 1.7em;
	text-decoration: none;
	transform: skewX(-15deg);
	transition: transform .3s ease, color .3s ease, background-color .3s ease, border-color .3s ease;
}
body #page-container .a4w-gal .a4w-gal__bar .et_pb_button:hover,
body .a4w-gal .a4w-gal__bar a.et_pb_button:hover {
	padding: .3em 1em !important;
	border-color: #DF231D !important;
	background-color: #fff;
	color: #010101 !important;
	transform: skewX(0deg);
}
body #page-container .a4w-gal .a4w-gal__bar .et_pb_button:not(.et_pb_custom_button_icon)::before,
body #page-container .a4w-gal .a4w-gal__bar .et_pb_button:not(.et_pb_custom_button_icon)::after,
body .a4w-gal .a4w-gal__bar a.et_pb_button:not(.et_pb_custom_button_icon)::after {
	display: none !important;
}
/* Bij volle breedte niet schuin, anders steekt de knop buiten de kolom. */
.a4w-gal--align-desktop-full .a4w-gal__bar--dl .et_pb_button { transform: none !important; }
@media (max-width: 980px) {
	.a4w-gal--align-tablet-full .a4w-gal__bar--dl .et_pb_button { transform: none !important; }
}
@media (max-width: 767px) {
	.a4w-gal--align-phone-full .a4w-gal__bar--dl .et_pb_button { transform: none !important; }
}
.a4w-gal__meta { font-size: .9em; opacity: .75; }
.a4w-gal__dl-all.is-busy { pointer-events: none; opacity: .7; }
.a4w-gal__dl-all.is-busy::before {
	content: "";
	display: inline-block;
	width: .9em;
	height: .9em;
	margin-right: .5em;
	vertical-align: -.1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: a4w-spin .8s linear infinite;
}

.a4w-gal--align-desktop-center .a4w-gal__bar--dl { justify-content: center; }
.a4w-gal--align-desktop-right .a4w-gal__bar--dl { justify-content: flex-end; }
.a4w-gal--align-desktop-full .a4w-gal__bar--dl { flex-direction: column; align-items: stretch; text-align: center; }
@media (max-width: 980px) {
	.a4w-gal--align-tablet-left .a4w-gal__bar--dl { justify-content: flex-start; flex-direction: row; align-items: center; }
	.a4w-gal--align-tablet-center .a4w-gal__bar--dl { justify-content: center; flex-direction: row; align-items: center; }
	.a4w-gal--align-tablet-right .a4w-gal__bar--dl { justify-content: flex-end; flex-direction: row; align-items: center; }
	.a4w-gal--align-tablet-full .a4w-gal__bar--dl { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 767px) {
	.a4w-gal--align-phone-left .a4w-gal__bar--dl { justify-content: flex-start; flex-direction: row; align-items: center; }
	.a4w-gal--align-phone-center .a4w-gal__bar--dl { justify-content: center; flex-direction: row; align-items: center; }
	.a4w-gal--align-phone-right .a4w-gal__bar--dl { justify-content: flex-end; flex-direction: row; align-items: center; }
	.a4w-gal--align-phone-full .a4w-gal__bar--dl { flex-direction: column; align-items: stretch; text-align: center; }
}

.a4w-gal__empty { padding: 40px; text-align: center; background: #F2F2F2; }

/* Lightbox */
.a4w-lb {
	--a4w-lb-bg: #010101;
	--a4w-lb-color: #fff;
	--a4w-lb-accent: #fff;
	--a4w-lb-accent-c: #010101;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--a4w-lb-bg);
	color: var(--a4w-lb-color);
	opacity: 0;
	transition: opacity .25s ease;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
.a4w-lb[hidden] { display: none; }
.a4w-lb.is-open { opacity: 1; }

.a4w-lb__top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	padding-top: max(14px, env(safe-area-inset-top));
	position: relative;
	z-index: 2;
}
.a4w-lb__spacer { flex: 1; }
.a4w-lb__count { font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .85; }

.a4w-lb button {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
}
.a4w-lb__close,
.a4w-lb__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	transition: background-color .2s ease;
}
.a4w-lb__close:hover,
.a4w-lb__nav:hover { background-color: rgba(255, 255, 255, .12); }
.a4w-lb button:focus-visible,
.a4w-lb__dl:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Zelfde schuine A4W-knop, op de donkere lightbox in het wit (zoals de menuknop), bij hover rood. */
.a4w-lb__dl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 2px solid var(--a4w-lb-accent);
	border-radius: 10px;
	background: var(--a4w-lb-accent);
	color: var(--a4w-lb-accent-c) !important;
	font-family: 'Barlow', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none !important;
	transform: skewX(-15deg);
	transition: transform .3s ease, color .3s ease, background-color .3s ease, border-color .3s ease;
}
.a4w-lb__dl:hover {
	border-color: #DF231D;
	background: #DF231D;
	color: #fff !important;
	transform: skewX(0deg);
}

.a4w-lb__stage {
	position: relative;
	overflow: hidden;
	min-height: 0;
}
.a4w-lb__track {
	position: absolute;
	inset: 0 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform;
}
.a4w-lb__track.is-animating { transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.a4w-lb__track img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity .25s ease;
	-webkit-user-drag: none;
}
.a4w-lb__track img.is-loaded { opacity: 1; }

.a4w-lb__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	margin-top: -24px;
}
.a4w-lb__prev { left: 12px; }
.a4w-lb__next { right: 12px; }
.a4w-lb__nav[disabled] { opacity: .25; cursor: default; }

.a4w-lb__caption {
	min-height: 20px;
	padding: 12px 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom));
	text-align: center;
	font-size: 15px;
	line-height: 1.45;
	opacity: .9;
}
.a4w-lb__caption:empty { padding-top: 0; }

.a4w-lb__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	opacity: 0;
	transition: opacity .2s ease .25s;
	animation: a4w-spin .8s linear infinite;
	pointer-events: none;
}
.a4w-lb.is-loading .a4w-lb__spinner { opacity: .6; }

@keyframes a4w-spin { to { transform: rotate(360deg); } }

/* Gsm: foto over de volle breedte, pijlen onderaan naast het onderschrift. */
@media (max-width: 767px) {
	.a4w-lb__track { inset: 0; }
	.a4w-lb__nav { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); margin-top: 0; }
	.a4w-lb__prev { left: 8px; }
	.a4w-lb__next { right: 8px; }
	.a4w-lb__caption { padding-left: 64px; padding-right: 64px; min-height: 64px; display: flex; align-items: center; justify-content: center; }
	.a4w-lb__top { padding-left: 12px; padding-right: 8px; }
}

html.a4w-lb-lock,
html.a4w-lb-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
	.a4w-gal__item img,
	.a4w-lb,
	.a4w-lb__track.is-animating,
	.a4w-lb__track img { transition: none !important; }
	.a4w-gal--zoom .a4w-gal__item:hover img { transform: none; }
}
