*{
	margin:0; padding:0;
	box-sizing: border-box;
	
}

.gallery-container{
	position: relative;
	background: #ddd;
}

.gallery-container .image-container{
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	padding:10px;
}
.gallery-container .image-container .image{
	width: 350px;
	height: 250px;
	border:10px solid #fff;
	box-shadow: 0 5px 15px rgba(0,0,0,.1);
	overflow:hidden;
	cursor: pointer;
}

.gallery-container .image-container .image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .2s linear;
}

.gallery-container .image-container .image:hover img{
	transform: scale(1.1);
}

.gallery-container .popup-image{
	position: fixed;
	top: 0; left:0;
	background: rgba(0,0,0,.9);
	height: 100%;
	width:100%;
	z-index: 100;
	display:none;
}
.gallery-container .popup-image span{ /*X button*/
	position: absolute;
	top:0; right:10px;
	font-size: 60px;
	font-weight: bolder;
	color:#fff;
	cursor: pointer;
	z-index: 100;
	
}
.gallery-container .popup-image img{ /*positions the popup image*/
	position: absolute;
	top: 50%; left:50%;
	transform: translate(-50%, -50%);
	border:5px solid #fff;
	border-radius: 5px;
	width:750px;
	object-fit: cover;
	
}

@media(max-width:795px){
	.gallery-container .popup-image img{
		width:95%;
		z-index: 999;
	}
}



/*4:20*/