*{
	margin: 0;
	padding: 0;
	box-sizing: bodrer-box;	
}
body{
	position: relative;
	font-family: 'Rubik', sans-serif;
}
img{
	max-width: 100%;
}
section.gallery{
	position: relative;
	padding: 30px 0;
}
h2.title{
	font-size: 44px;
	font-weight: bold;
	text-align: center;
	padding-bottom: 50px;
	position: relative;
}
h2.title:after{
	content: "";
	position: absolute;
	width: 100px;
	height: 3px;
	background-color: #111;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
}
.gallery-list{
	position: relative;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	font-size: 0;
	margin-top: 30px;
}
.gallery-item {
 	display: block;
 	position: relative;
 	width: calc(100% / 4);
 	overflow: hidden;
}
.gallery-item-hover{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.5);
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	opacity: 0;
	transition: opacity .5s ease;
	z-index: 2;
}
.gallery-item-wrapper {
	width: 100%;
	height: 100%;
}
.gallery-item:hover .gallery-item-hover{
	opacity: 1;
}
.gallery-item:hover img{
	transform: scale(1.1);
}
.gallery-item img{
    object-fit: cover;
		width: 100%;
    max-width: 100%;
    height: 100%;
		max-height: 100%;
    transition: all .5s ease;
    overflow: hidden;
}
@media (max-width: 1000px){
	.gallery-item{
		width: calc(100% / 3);
	}
}
@media (max-width: 768px){
	.gallery-item{
		width: calc(100% / 2);
	}
	h2.title{
		font-size: 38px;
	}
}
@media (max-width: 425px){
	.gallery-item{
		width: 100%;
	}
	h2.title{
		font-size: 28px;
	}
}
/*до слез нахуй...*/
.footer{
	font-size: 24px;
	text-align: center;
	margin: 2em;
}
.footer a{
	color: #000;
}

