
.justified-gallery {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.justified-gallery>a, .justified-gallery>div {
	position: absolute;
	display: inline-block;
	overflow: hidden;
	opacity: 0;
	filter: alpha(opacity=0);
}

.justified-gallery>a>img, .justified-gallery>a>a>img, .justified-gallery>div>img, .justified-gallery>div>a>img {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	padding: 0;
	border: none;
	opacity: 0;
	filter: "alpha(opacity=0)";
}

.justified-gallery>.entry-visible {
	opacity: 1;
	filter: alpha(opacity=100);
	animation: wd-fadeIn 500ms 0 ease;
}

.justified-gallery>.entry-visible>img, .justified-gallery>.entry-visible>a>img {
	opacity: 1;
	filter: "alpha(opacity=100)";
	transition: opacity 500ms ease-in;
}

.wd-justified-gallery:not(.justified-gallery) {
	display: none;
}

img.mfp-img {
	display: block;
	margin: 0 auto;
	padding: 40px 0;
	max-width: 100%;
	width: auto;
	height: auto;
	line-height: 0;
}

.mfp-figure {
	line-height: 0;
}

.mfp-figure small {
	display: block;
	color: #bdbdbd;
	font-size: 12px;
	line-height: 14px;
}

.mfp-figure figure {
	margin: 0;
}

.mfp-figure:after {
	content: "";
	position: absolute;
	top: 40px;
	right: 0;
	bottom: 40px;
	left: 0;
	z-index: -1;
	display: block;
	width: auto;
	height: auto;
	background: #444;
}

.mfp-figure.mfp-loading {
	display: none;
}

.mfp-bottom-bar {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: -36px;
	width: 100%;
	cursor: auto;
}

.mfp-title {
	padding-right: 36px;
	color: #f3f3f3;
	text-align: left;
	word-wrap: break-word;
	line-height: 18px;
}

.mfp-image-holder .mfp-content {
	max-width: 100%;
}

.mfp-zoom-out-cur {
	cursor: zoom-out;
}

.mfp-zoom {
	cursor: pointer;
	cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
	cursor: auto;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
	cursor: pointer;
}

.mfp-counter {
	position: absolute;
	top: 0;
	right: 0;
	color: #ccc;
	white-space: nowrap;
	font-size: 12px;
	line-height: 18px;
}

.mfp-arrow {
	position: absolute;
	top: 50%;
	margin: 0;
	margin-top: -55px;
	padding: 0;
	width: 90px;
	height: 110px;
	background-color: transparent;
	box-shadow: none;
	opacity: .65;
}

.mfp-arrow:hover {
	background-color: rgba(0, 0, 0, .1);
	box-shadow: none;
	opacity: 1;
}

.mfp-arrow:before, .mfp-arrow:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	margin-top: 35px;
	margin-left: 35px;
	width: 0;
	height: 0;
	border: medium inset transparent;
}

.mfp-arrow:after {
	top: 8px;
	border-top-width: 13px;
	border-bottom-width: 13px;
}

.mfp-arrow:before {
	border-top-width: 21px;
	border-bottom-width: 21px;
	opacity: .7;
}

.mfp-arrow-left {
	left: 0;
}

.mfp-arrow-left:after {
	margin-left: 31px;
	border-right: 17px solid #fff;
}

.mfp-arrow-left:before {
	margin-left: 25px;
	border-right: 27px solid #3f3f3f;
}

.mfp-arrow-right {
	right: 0;
}

.mfp-arrow-right:after {
	margin-left: 39px;
	border-left: 17px solid #fff;
}

.mfp-arrow-right:before {
	border-left: 27px solid #3f3f3f;
}

.wd-images-gallery.view-justified .caption, .wd-images-gallery.view-justified .justified-gallery>.spiner {
	display: none !important;
}

.wd-images-gallery.view-justified>.gallery-images:not(.justified-gallery) {
	display: none;
}
