/* =============================================================================
 * ce_gallery template elevatezoom
 * ========================================================================== */

.ce_elevatezoom .elevatezoom_gallery_window {
	margin-bottom: 10px;
}

.ce_elevatezoom .elevatezoom_gallery_window img:first-child {
	width: 100%!important;
	max-width: 100%;
	height: auto!important;
	position: static!important;
	display: block;
}

.ce_elevatezoom .elevatezoom_gallery_window img {
	display: none;
}

.ce_elevatezoom img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.ce_elevatezoom .zoomWrapper {
	width: 100%!important;
	height: auto!important;
}

.ce_elevatezoom ul,
.ce_elevatezoom li {
	overflow: hidden;
}

.ce_elevatezoom ul {
	margin-left: -5px;
	margin-right: -5px;
	display: flex;
	flex-wrap: wrap;
}

.ce_elevatezoom li {
	padding-left: 5px;
	padding-right: 5px;
	margin-bottom: 5px;
}

.zoomContainer {
	z-index: 1000;
	height: auto!important;
}

.ce_elevatezoom .cols_2 li {
	flex: 0 0 calc(100% / 2);
}

.ce_elevatezoom .cols_3 li {
	flex: 0 0 calc(100% / 3);
}

.ce_elevatezoom .cols_4 li {
	flex: 0 0 calc(100% / 4);
}

.ce_elevatezoom .cols_5 li {
	flex: 0 0 calc(100% / 5);
}

.ce_elevatezoom .cols_6 li {
	flex: 0 0 calc(100% / 6);
}

.ce_elevatezoom .cols_7 li {
	flex: 0 0 calc(100% / 7);
}

.ce_elevatezoom .cols_8 li {
	flex: 0 0 calc(100% / 8);
}

.ce_elevatezoom .cols_9 li {
	flex: 0 0 calc(100% / 9);
}

.ce_elevatezoom .cols_10 li {
	flex: 0 0 calc(100% / 10);
}

.ce_elevatezoom .cols_11 li {
	flex: 0 0 calc(100% / 11);
}

.ce_elevatezoom .cols_12 li {
	flex: 0 0 calc(100% / 12);
}

.ce_elevatezoom li.col_first {
	clear: both;
}

/* =============================================================================
* smart phones  (s / small screens)
* ========================================================================== */
@media only screen and (max-width: 767px) {
	.ce_elevatezoom [class*='cols_'] li {
		flex: 0 0 50%!important;
	}
	
	.ce_elevatezoom li:nth-child(3n) {
		clear: both;
	}
}