.khmw-smugmug {
	margin: 1.5em 0;
}

.khmw-smugmug--align-center {
	text-align: center;
}

.khmw-smugmug--align-left {
	text-align: left;
}

.khmw-smugmug--align-right {
	text-align: right;
}

.khmw-smugmug__btn {
	cursor: pointer;
	border: none;
	font: inherit;
}

.khmw-smugmug__count {
	font-weight: 400;
	opacity: 0.85;
}


.khmw-smugmug-lightbox {
	flex-direction: column;
	gap: 20px;
	padding-bottom: 28px;
}

.khmw-smugmug-lightbox .khmw-nieuws-lightbox__stage {
	min-height: 0;
	max-height: calc(100vh - 190px);
}

.khmw-smugmug-lightbox .khmw-nieuws-lightbox__image {
	max-height: calc(100vh - 250px);
}

.khmw-smugmug-lightbox__toolbar {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: Inter, system-ui, sans-serif;
	color: #fff;
}

.khmw-smugmug-lightbox__counter {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 14px;
	line-height: 1;
}

.khmw-smugmug-lightbox__overview-toggle {
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	background: #AE1639;
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

body[data-button-style^="rounded"] .khmw-smugmug-lightbox button.khmw-smugmug-lightbox__thumb,
body[data-button-style^="rounded"] .khmw-smugmug-lightbox button.khmw-smugmug-lightbox__overview-item {
	border-radius: 0 !important;
}

.khmw-smugmug-lightbox__overview-toggle:hover,
.khmw-smugmug-lightbox__overview-toggle:focus-visible {
	background: #fff;
	color: #002266;
	outline: none;
}

.khmw-smugmug-lightbox__thumbs {
	z-index: 1;
	display: flex;
	gap: 8px;
	width: min(100%, 1120px);
	max-width: calc(100vw - 144px);
	padding: 8px;
	overflow-x: auto;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.22);
	scrollbar-color: rgba(255, 255, 255, 0.55) transparent;
}

.khmw-smugmug-lightbox__thumb,
.khmw-smugmug-lightbox__overview-item {
	flex: 0 0 auto;
	border: 2px solid transparent;
	border-radius: 0 !important;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.khmw-smugmug-lightbox__thumb {
	width: 76px;
	height: 56px;
	overflow: hidden;
	opacity: 0.72;
}

.khmw-smugmug-lightbox__thumb.is-active,
.khmw-smugmug-lightbox__thumb:hover,
.khmw-smugmug-lightbox__thumb:focus-visible,
.khmw-smugmug-lightbox__overview-item.is-active,
.khmw-smugmug-lightbox__overview-item:hover,
.khmw-smugmug-lightbox__overview-item:focus-visible {
	border-color: #fff;
	opacity: 1;
	outline: none;
}

.khmw-smugmug-lightbox__thumb img,
.khmw-smugmug-lightbox__overview-item img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0 !important;
	object-fit: cover;
}

.khmw-smugmug-lightbox__overview {
	width: min(100%, 1120px);
	max-height: calc(100vh - 190px);
	overflow: auto;
	padding: 8px;
}

.khmw-smugmug-lightbox__overview[hidden] {
	display: none !important;
}

.khmw-smugmug-lightbox__overview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 10px;
}

.khmw-smugmug-lightbox__overview-item {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.khmw-smugmug-lightbox.is-overview .khmw-nieuws-lightbox__figure,
.khmw-smugmug-lightbox.is-overview .khmw-nieuws-lightbox__nav {
	display: none;
}

.khmw-smugmug-lightbox.is-overview .khmw-smugmug-lightbox__thumbs {
	display: none;
}

@media (max-width: 700px) {
	.khmw-smugmug-lightbox {
		gap: 14px;
		padding-bottom: 16px;
	}

	.khmw-smugmug-lightbox__toolbar {
		top: 12px;
		left: 12px;
		right: 60px;
		flex-wrap: wrap;
	}

	.khmw-smugmug-lightbox__thumbs {
		max-width: calc(100vw - 32px);
	}

	.khmw-smugmug-lightbox__thumb {
		width: 64px;
		height: 48px;
	}

	.khmw-smugmug-lightbox__overview-grid {
		grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	}
}
