#vedge-gallery-container {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	transform: translateY(100%);
	background: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	transition: .3s;
}

.vedge-gallery-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.masonry-container,
.masonry-container-admin {
	height: 100%;
	margin: 0 auto;
	width: 95%;
	padding: 5px;
}

.masonry-container-admin {
	padding: 20px 5px;
}

.masonry-container {
	max-width: 1500px;
	height: 85%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
}

.masonry-section {
	width: 50%;
	height: 100%;
	box-sizing: border-box;
	float: left;
}

.masonry-container-admin > .masonry-section {
	height: 500px;
}

.masonry-column {
	float: left;
	height: 100%;
	box-sizing: border-box;
}

.masonry-column.one-quarter {
	width: 25%;
}

.masonry-column.three-quarters {
	width: 75%;
}

.masonry-column.one-third {
	width: 33.334%;
}

.masonry-column.two-thirds {
	width: 66.667%;
}

.masonry-column.one-half {
	width: 50%;
}

.masonry-row {
	width: 100%;
	box-sizing: border-box;
}

.masonry-row.one-quarter {
	height: 25%;
}

.masonry-row.three-quarters {
	height: 75%;
}

.masonry-row.one-third {
	height: 33.334%;
}

.masonry-row.two-thirds {
	height: 66.667%;
}

.masonry-row.one-half {
	height: 50%;
}

.masonry-panel {
	height: 100%;
	width: 100%;
	padding: 5px;
	box-sizing: border-box;
	transition: .25s;
	position: relative;
	cursor: pointer;
}

.masonry-container .hover:hover .masonry-content-overlay {
	background: rgba(0, 0, 0, 0.8);
	opacity: 1;
}

.masonry-container-admin .hover:hover > .masonry-content {
	opacity: 0.6;
}

.masonry-content {
	background: rgba(255, 255, 255, 0.5);
	height: 100%;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
	position: relative;
}

.masonry-content i {
	position: absolute;
	font-size: 28px;
	height: 28px;
	top: 50%;
	margin-top: -14px;
	width: 100%;
	text-align: center;	
}

.masonry-content-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transition: .25s;
	opacity: 0;
	color: #fff;
}

.masonry-container-admin .masonry-content {
	border: 1px solid #008bde;	
	background: #e9f7ff;
}

.masonry-content img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: .25s;
}

.masonry-content.selected img {
	height: 100%;
	width: auto;
	object-fit: initial;
	display: block;
	margin: 0 auto;

}

.masonry-overlay {
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
}

.no-transition {
	transition: none;
}

/*.vedge-gal-controls {
	position: fixed;
	height: 100px;
	width: 120px;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	z-index: 1001;
	color: #000;
	text-align: center;
	line-height: 100px;
	font-size: 70px;
	transition: .25s;
}*/

.vedge-gal-controls {
	position: fixed;
	height: 100px;
	cursor: pointer;
	z-index: 1001;
	color: #fff;
	text-align: center;
	line-height: 100px;
	font-size: 50px;
}

.vedge-gal-controls:active {
	transform: translateY(1px);
}

/*.vedge-gal-controls:hover {
	background: #fff;
}*/

/*.gal-right {
	right: -20px;
	top: 50%;
	margin-top: -50px;
	border-top-left-radius: 50px;
	border-bottom-left-radius: 50px;
}*/

.gal-right {
	right: 4%;
	top: 50%;
	margin-top: -50px;
}

/*.gal-right:hover {
	right: 0;
}*/

.gal-left {
	left: 4%;
	top: 50%;
	margin-top: -50px;
}

/*.gal-left {
	left: -20px;
	top: 50%;
	margin-top: -50px;
	border-top-right-radius: 50px;
	border-bottom-right-radius: 50px;
}

.gal-left:hover {
	left: 0;
}*/

/*.vedge-close {
	right: -20px;
	border-bottom-left-radius: 100px;
	line-height: 0;
}*/

.vedge-close {
	right: 4%;
	top: 2%;
}

#gallery-toggle {
	position: absolute;
	top: -50px;
	left: 50%;
	margin-left: -50px;
	height: 100px;
	width: 100px;
	background: #000;
	cursor: pointer;
	border-radius: 100px;
	color: #fff;
	text-align: center;
	line-height: 53px;
	font-size: 28px;
	opacity: 0.7;
	transition: .25s;
}

#gallery-toggle:hover {
	opacity: 1;
}



@media only screen and (max-width: 500px) {
	.masonry-section {
		height: 50%;
		width: 100%;
		float: none;
	}	

	.masonry-panel {
		padding: 2px;
	}

	.masonry-content {
		background: rgba(0, 0, 0, 0.3);
	}

	.masonry-container .hover:hover .masonry-content-overlay {
		opacity: 0;
	}	

	.masonry-container .hover:active .masonry-content-overlay {
		opacity: 1;
	}		

	.vedge-gal-controls {
		top: initial;
		margin-top: 0;
		bottom: 20px;
		height: 50px;
		width: 50px;
		border-radius: 50px;
		line-height: 50px;
		font-size: 20px;
		transition: none;
	}

/*	.vedge-gal-controls:hover {
		background: rgba(255, 255, 255, 0.8);
	}

	.vedge-gal-controls:active {
		background: #000;
		color: #fff;
		bottom: 19px;
	}*/

	.gal-right,
	.gal-right:hover {
		right: 50px;
	}

	.gal-left,
	.gal-left:hover {
		left: 50px;
	}

	.vedge-close {
		left: 50%;
		margin-left: -25px;
		padding: 0;
		text-align: center;
	}


}