﻿

.gallery-grid{
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-left: 2.8%;
	padding-bottom: 2.8%;
	box-sizing: border-box;
}
.gallery-grid img{
	max-width: 100%;
	width: 100%;
	border-radius: 5px;
	transition: ease all 0.3s;
}
.gallery-grid img:hover{
	filter: brightness(0.5) contrast(0.9);
}
.gallery-grid div{
	position: relative;
	width: calc(25% - 20px);
	cursor: pointer;
}
.gallery-grid div:after{
	content: "\f065";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: #fff;
	font-size: 30px;
	text-align: center;
	opacity: 0;
	transition: ease all 0.3s;
	pointer-events: none;
}
.gallery-grid div:hover:after{
	opacity: 1;
}

#gallery-modal{
	position: fixed;
	top: 50%;
	left: 50%;
	width: 92%;
	max-width: 1200px;
	transform: translate(-50%, -50%);
}

#gallery-modal img{
	max-width: 100%;
	box-shadow: 0 0 12px 0 rgba(0,0,0,0.2);
	border-radius: 10px;
}
#gallery-modal i{
	position: absolute;
	font-size: 18px;
	top: 0;
	right: 0;
	padding: 20px;
	background: rgba(255,255,255,0.7);
	border-radius: 0 0 0 10px;
	cursor: pointer;
}

@media screen and (max-width:768px){

	.gallery-grid{
		
	padding-top: 2.8%;
	}
	.gallery-grid div{
		width: calc(50% - 20px);
	}
}