/* Attached files (thumbnail / PDF icon) and the image zoom viewer. */

a.attach-zoom {
	display: inline-block;
	cursor: zoom-in;
}

a.attach-pdf {
	display: inline-block;
	max-width: 160px;
	margin: 25px 5px 5px;
	color: #333333;
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	word-break: break-all;
}
a.attach-pdf img {
	display: block;
	margin: 0 0 4px;
}
a.attach-pdf:hover .attach-name {
	text-decoration: underline;
}

/* ---- zoom viewer ---- */

.zv-overlay {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.88);
}
.zv-overlay.zv-open {
	display: block;
}

.zv-stage {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 56px;
	overflow: hidden;
	-ms-touch-action: none;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.zv-overlay img.zv-img {
	position: absolute;
	left: 50%;
	top: 50%;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	border: 0;
	cursor: zoom-in;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}
.zv-overlay img.zv-img.zv-zoomed {
	cursor: grab;
}
.zv-overlay img.zv-img.zv-dragging {
	cursor: grabbing;
}

.zv-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #1c1f26;
}

.zv-btn {
	min-width: 44px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #5a6170;
	border-radius: 6px;
	background: #2b303a;
	color: #ffffff;
	font-family: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.zv-btn:hover {
	background: #3a4150;
}
.zv-btn:focus-visible {
	outline: 2px solid #9ec1ff;
	outline-offset: 2px;
}
.zv-btn.zv-btn-text {
	font-size: 13px;
}

.zv-pct {
	min-width: 52px;
	color: #d5d9e0;
	font-size: 13px;
	text-align: center;
}
