/* Compatibility styles for frameworks like bootstrap, foundation e.t.c */
.xzoom-source img,
.xzoom-preview img,
.xzoom-lens img {
	display: block;
	max-width: none;
	max-height: none;
	-webkit-transition: none;
	-moz-transition: none;
	-o-transition: none;
	transition: none;
}
/* --------------- */

/* xZoom Styles below */
.xzoom-container {
	display: inline-block;
	width: 100%;
	height: auto;
}
.xzoom-thumbs {
	/* text-align: center; */
	margin: 20px 0;
}

.xzoom {
	/* -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5); */
}
.xzoom2,
.xzoom3,
.xzoom4,
.xzoom5 {
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

/* Thumbs */
.xzoom-gallery,
.xzoom-gallery2,
.xzoom-gallery3,
.xzoom-gallery4,
.xzoom-gallery5 {
	/* border: 1px solid #cecece; */
	margin-left: 10px;
	margin-bottom: 10px;
}

.xzoom-source,
.xzoom-hidden {
	display: block;
	position: static;
	float: none;
	clear: both;
}

/* Everything out of border is hidden */
.xzoom-hidden {
	overflow: hidden;
}

/* Preview */
.xzoom-preview {
	border: 1px solid #d8d8d8;
	/*	background: #2f4f4f;
	box-shadow: -0px -0px 10px rgba(0, 0, 0, 0.5); */
}

/* Lens */
.xzoom-lens {
	border: 1px solid #555;
	box-shadow: -0px -0px 10px rgba(0, 0, 0, 0.5);
	cursor: crosshair !important;
}

/* Loading */
.xzoom-loading {
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 100%;
	opacity: 0.7;
	background: url(../example/images/xloading.gif);
	width: 48px;
	height: 48px;
}

/* Additional class that applied to thumb when it is active */
.xactive {
	-webkit-box-shadow: 0px 0px 3px 0px rgba(74, 169, 210, 1);
	-moz-box-shadow: 0px 0px 3px 0px rgba(74, 169, 210, 1);
	box-shadow: 0px 0px 3px 0px rgba(74, 169, 210, 1);
	border: 1px solid #4aaad2;
}

/* Caption */
.xzoom-caption {
	position: absolute;
	bottom: -43px;
	left: 0;
	background: #000;
	width: 100%;
	text-align: left;
}

.xzoom-caption span {
	color: #fff;
	font-family: Arial, sans-serif;
	display: block;
	font-size: 0.75em;
	font-weight: bold;
	padding: 10px;
}

/* 2022.4.25針對圖在放大鏡內我編修新增 */
.xzoom-container {
	width: 100%;
	height: auto;
}
.xzoom-container img {
	max-width: 100%;
	height: auto;
}
.xzoom-preview {
	cursor: crosshair;
}
.xzoom-preview img {
	width: 120%;
	height: 120%;
}

.xzoom-thumbs {
	display: flex;
	align-content: flex-start;
	flex-wrap: wrap;
}
.xzoom-thumbs a {
	width: calc(20% - 20px);
	margin: 0 20px 20px 0;
}
.xzoom-thumbs a img {
	width: 100%;
	height: auto;
}

@media only screen and (max-width: 640px) {
	.xzoom-thumbs a {
		width: calc(33.333% - 20px);
	}
}
