/* GALLERY GRID */

div.aurora-gallery {
	width:100%;
	height: auto;
	position: relative;
	background: transparent;
}

div.aurora-gallery div.aurora-gallery-images {
	position: relative;
	margin: 0 auto;
	display: flex;
	flex-wrap:Wrap;
	justify-content: flex-start;
	align-items: flex-start;
	list-style:none!important;
	padding:0;
	
}

div.aurora-gallery div.gallery-image:before{
	display:none;
}

div.aurora-gallery div.gallery-image{
	width: 20px;
	height: auto;
	display: flex;
	align-self: stretch;
	cursor:pointer;
	overflow:hidden;
	margin:0;
	padding:0;
	transition:all 0.3s;
}

div.aurora-gallery div.gallery-image .wrapper{
	background-color:#fff;

}

div.aurora-gallery div.gallery-image:hover img {
	filter: brightness(0.9);
}

div.aurora-gallery div.gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s;
	padding:0;
	margin:0;
}

/* MODAL */

div.aurora-gallery-modal {
	display: flex;
	position: fixed; 
	left: 0;
	top: 0;
	width: 100%;
	height: 100%; 
	overflow: auto;
	background-color: rgba(0,0,0,0.9);
	z-index:1100;
	justify-content: center;
	align-items: center;
	visibility:hidden;
	pointer-events:none;
	opacity:0;
	transition:opacity 0.3s;
}
div.aurora-gallery-modal.show {
	visibility:visible;
	pointer-events:auto;
	opacity:1;
}

p.aurora-gallery-image-title {
	color: #f2f2f2;
	font-weight: 500;
	font-size: 16px;
	text-transform: capitalize;
	background: #000;
	padding: 5px 10px;
	transition: all 0.7s;
}

div.close-aurora-gallery:before {
	content:'\f00d';
	font-size: 24px;
	color: #f2f2f2;
	font-family: 'FontAwesome';
	display: block;
	position: relative;
	cursor:pointer;
}

div.close-aurora-gallery {
	position: absolute;
	top: 30px;
	right: 30px;
	color: #f2f2f2;
	z-index: 3;	
}

div.aurora-gallery-modal .wrapper.scaleup{
	transform:scale(1);
	transition:all 0.5s 0.3s;
}
div.aurora-gallery-modal .wrapper{
	transform:scale(0.3);
	transition:all 0.5s;
	display:flex;
	align-items:center;
	padding:30px;
}
div.image-modal-item{
	opacity: 0;
	width:0;
	height:0;
	overflow:hidden;
	transition:opacity 0.3s;
}

div.image-modal-item.selected {
	opacity: 1;
	width:auto;
	height:auto
}

img.modal-content {
 	width: auto;
 	height: auto;
	max-height: 80vh;
	z-index: 1;
	cursor: pointer;
	padding:5%;
	background:transparent;
}
/* MODAL CONTROLS */

div.aurora-gallery-controls{
	z-index: 10;
	position: absolute;
	width: 100%;
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 0 15px;
}
div.aurora-gallery-controls .prev,div.aurora-gallery-controls .next{
	width:50px;
	height:50px;
	border-radius:50%;
	background-color:#fefefe;
	text-align:center;
	line-height:50px;
	position:relative;
	cursor:pointer;
	box-shadow:0 1px 2px rgba(0,0,0,0.1);
}
div.aurora-gallery-controls .next{
	transform:scaleX(-1);
}
div.aurora-gallery-controls svg{
	width:20px;
	height:auto;
	fill:#777;
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	transition:all 0.3s;
}
div.aurora-gallery-controls .prev:hover svg,div.aurora-gallery-controls .next:hover svg{
	fill:#333;
}
