.imageViewer {
	align-items: center;
	background-color: rgba(120, 120, 120, 0.5);
	backdrop-filter: blur(2px);
	box-sizing: border-box;
	display: none;
	height: 100%;
	justify-content: center;
	left: 0;
	padding: 12px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10000;
}

.imageViewer-visible {
	display: flex;
}

.imageViewer-dialog {
	background-color: #ffffff;
	border: solid 1px #609C38;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 24px);
	max-height: none;
	max-width: none;
	padding: 44px 14px 10px;
	position: relative;
	width: calc(100vw - 24px);
}

.imageViewer-dialog:focus {
	outline: none;
}

.imageViewer-close,
.imageViewer-navigation,
.imageViewer-thumbnail {
	border: 0;
	cursor: pointer;
}

.imageViewer-close {
	background-color: #ffffff;
	color: #609C38;
	font-size: 32px;
	height: 40px;
	line-height: 36px;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 4px;
	width: 40px;
}

.imageViewer-close:focus,
.imageViewer-navigation:focus,
.imageViewer-thumbnail:focus {
	outline: 2px solid #609C38;
	outline-offset: 2px;
}

.imageViewer-stage {
	align-items: center;
	background-color: #f5f5f5;
	border: 1px solid #d1d5db;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.imageViewer-imageContainer {
	display: inline-flex;
	max-height: 100%;
	max-width: calc(100% - 110px);
	overflow: hidden;
	position: relative;
}

.imageViewer-image {
	display: block;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.imageViewer-annotation {
	background-color: rgba(40, 40, 40, 0.72);
	bottom: 0;
	box-sizing: border-box;
	color: #ffffff;
	font-size: 14px;
	left: 0;
	line-height: 20px;
	max-height: 35%;
	overflow-y: auto;
	padding: 10px 14px;
	position: absolute;
	text-align: left;
	width: 100%;
}

.imageViewer-navigation {
	background-color: transparent;
	color: #609C38;
	font-size: 38px;
	height: 72px;
	line-height: 72px;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	z-index: 1;
}

.imageViewer-navigation:hover,
.imageViewer-navigation:focus {
	background-color: transparent;
	color: #4f842e;
}

.imageViewer-close:hover,
.imageViewer-close:focus {
	background-color: #f5f5f5;
}

.imageViewer-previous {
	left: 0;
}

.imageViewer-next {
	right: 0;
}

.imageViewer-counter {
	color: #263A81;
	font-size: 13px;
	left: 16px;
	line-height: 40px;
	position: absolute;
	top: 4px;
}

.imageViewer-thumbnails {
	background-color: #ffffff;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 86px;
	flex-wrap: nowrap;
	gap: 8px;
	height: 86px;
	justify-content: flex-start;
	margin-top: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 3px;
}

.imageViewer-thumbnail {
	background-color: #ffffff;
	border: 2px solid transparent;
	box-sizing: border-box;
	flex: 0 0 78px;
	height: 62px;
	opacity: 0.62;
	padding: 2px;
}

.imageViewer-thumbnail:hover,
.imageViewer-thumbnail-active {
	border-color: #609C38;
	opacity: 1;
}

.imageViewer-thumbnail img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

[data-image-viewer-url] {
	cursor: pointer;
}

@media (max-width: 700px) {
	.imageViewer {
		padding: 8px;
	}

	.imageViewer-dialog {
		height: calc(100vh - 16px);
		padding-left: 8px;
		padding-right: 8px;
		width: calc(100vw - 16px);
	}

	.imageViewer-imageContainer {
		max-width: calc(100% - 76px);
	}

	.imageViewer-navigation {
		font-size: 30px;
		width: 36px;
	}
}
