/* functional-image-zoom v1.0.11 */
.entry-content img,
.wp-block-post-content img {
	cursor: zoom-in;
}

.entry-content img:active,
.wp-block-post-content img:active {
	opacity: 0.8;
}

.fiz-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px;
	box-sizing: border-box;
	background: rgba(234, 234, 234, 0.44);
	overscroll-behavior: none;
	touch-action: none;
}

.fiz-overlay[hidden] {
	display: none;
}

.fiz-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	min-width: 0;
	min-height: 0;
}

.fiz-frame {
	position: relative;
	flex: 0 0 auto;
	width: fit-content;
	max-width: 100%;
	line-height: 0;
	box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.25);
	cursor: zoom-out;
}

.fiz-img {
	display: block;
	/* Display size set in JS so small images upscale to available space. */
	max-width: none;
	max-height: none;
	object-fit: fill;
}

.fiz-img-lo {
	position: relative;
	z-index: 0;
}

.fiz-img-hi {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

.fiz-frame.is-hi-ready .fiz-img-hi {
	position: static;
	left: auto;
	top: auto;
	opacity: 1;
	pointer-events: auto;
	cursor: zoom-out;
}

.fiz-caption {
	display: inline-block;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	margin: 4px 0 0;
	padding: 0.35rem 0.6rem;
	background: #fff;
	color: #000;
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}

.fiz-caption[hidden] {
	display: none;
}
