/*
 * Generic content-image viewer.  It is intentionally separate from the
 * reviewed page-411 exhibition gallery, whose grid and image allowlist must
 * remain isolated.
 */
.haussonder-content-lightbox[hidden] {
	display: none;
}

.haussonder-content-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, .86);
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 10000;
}

.haussonder-content-lightbox__dialog {
	box-sizing: border-box;
	max-height: 100%;
	max-width: 1120px;
	position: relative;
	width: 100%;
}

.haussonder-content-lightbox__figure {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
	max-height: calc(100vh - 48px);
}

.haussonder-content-lightbox__image {
	background: #111;
	border: 0;
	display: block;
	height: auto;
	margin: 0;
	max-height: calc(100vh - 108px);
	max-width: 100%;
	padding: 0;
	width: auto;
}

.haussonder-content-lightbox__caption {
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	margin: 10px 48px 0;
	text-align: center;
}

.haussonder-content-lightbox__close,
.haussonder-content-lightbox__previous,
.haussonder-content-lightbox__next {
	background: rgba(0, 0, 0, .58);
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
	padding: 10px 12px;
	position: absolute;
	z-index: 1;
}

.haussonder-content-lightbox__close {
	font-size: 28px;
	right: 0;
	top: 0;
}

.haussonder-content-lightbox__previous,
.haussonder-content-lightbox__next {
	font-size: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.haussonder-content-lightbox__previous {
	left: 0;
}

.haussonder-content-lightbox__next {
	right: 0;
}

.haussonder-content-lightbox__close:focus,
.haussonder-content-lightbox__close:hover,
.haussonder-content-lightbox__previous:focus,
.haussonder-content-lightbox__previous:hover,
.haussonder-content-lightbox__next:focus,
.haussonder-content-lightbox__next:hover {
	background: #fff;
	color: #111;
}

.haussonder-content-lightbox__previous[disabled],
.haussonder-content-lightbox__next[disabled] {
	cursor: default;
	opacity: .45;
}

body.haussonder-content-lightbox-open {
	overflow: hidden;
}

@media screen and (max-width: 640px) {
	.haussonder-content-lightbox {
		padding: 12px;
	}

	.haussonder-content-lightbox__image {
		max-height: calc(100vh - 84px);
	}

	.haussonder-content-lightbox__caption {
		margin-left: 34px;
		margin-right: 34px;
	}

	.haussonder-content-lightbox__previous,
	.haussonder-content-lightbox__next {
		font-size: 20px;
		padding: 8px 10px;
	}
}
