.reol-gallery-wrapper{
	position: fixed;
	z-index: 100;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: url(../img/overlay.png);
}
.reol-gallery-wrapper.loading .reol-gallery{
	background: center center url(../img/load.gif) no-repeat;
}
.reol-gallery-wrapper.loading .reol-gallery-controls{
	display:none;
}

.reol-gallery-viewer {
	height: 100%;
	width: 100%;
}

.reol-gallery{
	height: 100%;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	-webkit-align-items: center;
}

.reol-gallery-thumbs{
	visibility: hidden; /*SIXSQFT-152 hide as per design changes */
	position: absolute;
	bottom: 0;
	left: 0px;
	right: 0px;
	background: #222;
	box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.reol-gallery-thumbs ul{
	list-style-type: none;
	text-align: center;
	width: 100%;
	padding: 20px 0;
}

.reol-gallery-thumbs li{
	display: inline-block;
	padding: 2px;
	margin: 0 10px 0 0;
	zoom: 1;
    *display: inline;

}
.reol-gallery-thumbs li:hover{
	background: #ccc;
	cursor: pointer;
}
.reol-gallery-thumbs li.active{
	background: #fff;
	box-shadow: 0 0 5px rgba(0,0,0,.2);
}
.reol-gallery-thumbs li img{
	display: block;
	height: 80px;
	box-shadow: 0 0 5px rgba(0,0,0,.2);
}
.reol-gallery-dismiss{
	position: absolute;;
	display: block;
	z-index: 10;
	top: 10px;
	right: -24px;
	color: #ccc !important;
	font-size: 20px;
	vertical-align: middle;
	line-height: 20px;
	font-weight: bold;
	background-image: url('/wp-content/themes/realnews/img/l/close-button.png');
	background-repeat: no-repeat;
	height: 49px;
	width: 49px;
}
.reol-gallery-dismiss:hover{
	color: #fff !important;
}
.reol-gallery-dismiss span{
	font-weight: bold;
	font-size: 40px;
	line-height: 20px;
	display: inline-block;
}
.reol-gallery-img{
	position: relative;
	z-index: 1;
	width: 900px;
	height: 75%;
	display: flex;
	flex-direction: column;
}
.reol-gallery-img img {
	max-width: none;
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
	object-fit: contain;
	margin: auto;
}
.reol-gallery-controls a{
	position: absolute;
	z-index: 2;
	display: block;
	top: 50%;
	transform: translateY(-50%);
	height: 64px;
	width: 20%;
	min-width: 57px;
	text-indent: -1000px;
	overflow: hidden;
	transition: opacity .25s ease-in-out;
   	-moz-transition: opacity .25s ease-in-out;
   	-webkit-transition: opacity .25s ease-in-out;
}
.reol-gallery-controls .reol-gallery-previous{
	left: -70px;
	background: left center url('/wp-content/themes/realnews/img/l/chevron-left.png') no-repeat;
	opacity:0.2;
	filter:alpha(opacity=20); /* For IE8 and earlier */
}

.reol-gallery-controls .reol-gallery-next{
	width: 40%;
	left: auto;
	right: -70px;
	background: right center url('/wp-content/themes/realnews/img/l/chevron-right.png') no-repeat;
	opacity:0.2;
	filter:alpha(opacity=20);
}
.reol-gallery-img:hover .reol-gallery-previous,
.reol-gallery-img:hover .reol-gallery-next{
	opacity:0.5;
	filter:alpha(opacity=50);
}
.reol-gallery-img .reol-gallery-previous:hover,
.reol-gallery-img .reol-gallery-next:hover{
	opacity:0.9;
	filter:alpha(opacity=90);
}

.reol-gallery-caption{
 	padding: 10px 0;
 	text-align: center;
 	color: #f5f5f5;
 	text-shadow: 0 1px 1px rgba(0,0,0,.5);
}

.reol-gallery-thumbs li.active img{
	box-shadow: none;
}

@media (max-width: 1023px) {
	.reol-gallery-img{
		width: calc(90% - 40px);
	}

	.reol-gallery-thumbs li img{
		height: 40px;
	}
	.reol-gallery-thumbs li{
		padding: 1px;
		margin-right: 5px;
	}
	.reol-gallery-controls .reol-gallery-previous{
		left: 2% !important;
	}
	.reol-gallery-controls .reol-gallery-next{
		right: 2% !important;
	}
}

@media (max-width: 767px) {
	.reol-gallery-img{
		height: 50%;
		width: calc(100% - 40px);
	}
	.reol-gallery-controls a{
		top: 45%;
	}
}
