.gallery {

}

.gallery #content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.gallery .item {
	display: block;
	/*float: left;*/
	width: 180px;
	height: 180px;
	margin-bottom: 5px;
	border: solid 1px #FFF;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	/*-webkit-transition: all .3s ease-out;*/
	/*-moz-transition: all .3s ease-out;*/
	transition: all .3s ease-out;
	/*position: relative;*/
}

.gallery .item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery .item:hover {
	border-color: #666;
}
/*.gallery .item p {
	display: none;
}*/
/*.gallery .item .img-wrapper {
	width: 180px;
	height: 180px;
	overflow: hidden;
	position: relative;
	z-index: -1;
}
.gallery .item .img-wrapper img {
	height: inherit;
	position: absolute;
	z-index: -1;
}
.gallery .item .img-wrapper img.portrait {
    width: 100%;
    height: auto;
}
.gallery .item .img-wrapper img.landscape {
    width: auto;
    height: 100%;
}
.gallery .item:hover img {

}*/
.gallery .item .arrow {
	position: absolute;
	top: 50px;
	left: 63px;
	opacity: .8;
	border-top: solid transparent 35px;
	border-right: solid transparent 35px;
	border-bottom: solid transparent 35px;
	border-left: solid #000 50px;
}
.gallery #overlay {
	background: #000;
	background: url("/lib/img/black-trans-70.png");
	background: rgba(0,0,0,0.7);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	visibility: hidden;
	opacity: 0;
	z-index: 99;
	/*-webkit-transition: opacity .5s ease-out;*/
}
.gallery #overlay.show {
	visibility: visible;
	opacity: 1;
}
.gallery #overlay #loading {
	display: none;
	background: #000;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -18px;
	margin-top: -18px;
	padding: 25px;
	border-radius: 10px;
}
.gallery #overlay #loading.show {
	display: block;
}
.gallery #img-cont {
	position: fixed;
	top: 5%;
	left: 5%;
	width: 90%;
	height: 90%;
	z-index: 100;
	visibility: hidden;
	opacity: 0;
	text-align: center;
	transform: scale(.98);
	transition: all .4s ease-out;
}
.gallery #img-zoom {
	display: inline-block;
	text-align: center;
	z-index: 100;
	width: 100%;
	height: 100%;
	box-shadow: 0 5px 20px #000;
	border: solid 5px #FFF;
	object-fit: cover;
	/*width: auto;*/
	/*height: auto;*/
}

.gallery #img-cont.show {
	visibility: visible;
	opacity: 1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	transform: scale(1);
}
/* VIDEO --------------------------------------------------------------------*/

.gallery #video-cont {
	position: fixed;
	top: 5%;
	left: 5%;
	width: 90%;
	height: 90%;
	z-index: 100;
	visibility: hidden;
	opacity: 0;
	text-align: center;
	/*
	-webkit-transform: scale(.98);
	-moz-transform: scale(.98);
	transform: scale(.98);
	-webkit-transition: all .4s ease-out;
	-moz-transition: all .4s ease-out;
	transition: all .4s ease-out;
	*/
}
.gallery #video-cont.show {
	opacity: 1;
	visibility: visible;
}
.gallery iframe {
	text-align: center;
	box-shadow: 0 5px 20px #000;
	border: solid 5px #FFF;
	z-index: 100;
	/*max-width: 450px;*/
	width: 480px;
	height: 360px;
}
.gallery #video-zoom.show {
	opacity: 1;
	visibility: visible;
}