.lightbox { padding: 50px;
	cursor: pointer;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	/*background: rgba(255, 255, 255, 0.99);*/
	background:#fff;
	-webkit-filter: none !important;
	z-index: 9997;
	overflow:auto;
	background-color: rgba(0, 0, 0, 0.8);
}

.lightbox img {
	display: block;
	
	height:auto !important; 
/*	 width:100% !important; */
	overflow:auto;
	max-width:1000px;
	margin: 0 auto;

    position: absolute;
	top: 50% !important;
	left: 50%!important;
	margin-right: -50%!important;
	-webkit-transform: translate(-50%, -50%)!important;
	-ms-transform: translate(-50%, -50%)!important;
	transform: translate(-50%, -50%)!important;
	
max-height: calc(100vh - 60px);
width: auto;
text-align: right;
margin: auto;
    margin-right: auto;
margin-right: auto;
display: block;
margin-right: 0;
	
}

.blurred{ overflow: hidden !important;}

body.blurred > * { 
  -webkit-filter: blur(2px);
  -webkit-transform: translate3d(0, 0, 0);
}

.lightbox__loading {
	background: url(loading.gif) center center no-repeat;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	position: absolute;
	top: 50%;
	left: 50%;
}

.lightbox__caption { height:34px;
	display: none;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	text-align: center;
	z-index: 9998;
	background: #000;
	background: rgba(0,0,0,0.3);
}

.lightbox__caption p {
	margin: 0 auto;
	max-width: 92%;
	display: inline-block;
	*display: inline;
	*zoom: 1;
	padding: 10px;
	color: #fff;
	font-size: 12px;
	line-height: 18px;
}

.lightbox__button {
	position: absolute;
	z-index: 9999;
	background: no-repeat center center;
	
	width: 25px;
	height: 45px;
	opacity:0.4;
	-webkit-transition: all 0.3s;
	-moz-transition:    all 0.3s;
	-ms-transition:     all 0.3s;
	transition: 		all 0.3s;
}

.lightbox__button:hover,
.lightbox__button:focus {
	opacity: 1;
/*	-webkit-transform: scale(1.4);
	-moz-transform: scale(1.4);
	-ms-transform: scale(1.4);
	transform: scale(1.4);*/
}

.lightbox__close {
	right: 10px;
	top: 10px;
	background-image:url(../images/close_size_white.png);
}

.lightbox__nav {
    top: 50%;
    margin-top: -16px;
}

.lightbox__nav--next {
	right: 10px;
	background-image:url(../images/next.png);
}

.lightbox__nav--prev {
	left: 10px;
	background-image: url(../images/previous.png);
}




 .gallery {
      list-style: none;
      padding: 0;
   
    }
    .gallery li {
      float: left;
      margin: 4px;
    }