.main {
	text-align: center;
	padding: 0;
	margin-top: 8em;
}

footer {
	bottom: 0;
}
.grid {
	margin: 2rem;
	display: grid;
	grid-gap: 2rem;
	justify-items: center;
}

@media screen and (max-width: 4860px) {
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
	.tiles {
		width: 20rem;
		height: 16rem;

		/* width:300px;
height:240px; */
	}
}
@media screen and (max-width: 960px) {
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
	.tiles {
		width: 18rem;
		height: 16rem;

		/* width:240px;
height:200px; */
	}
}

.tiles {
	overflow: hidden;
	position: relative;
	transition: transform 0.5s ease;
	line-height: 0;
}

.tiles img {
	object-fit: cover;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border-radius: 5px;
}
.overlay {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	height: 100%;
	width: 100%;
	border-radius: 5px;
	opacity: 1;
	-moz-transition: -moz-transform 0.5s ease;
	-webkit-transition: -webkit-transform 0.5s ease;
	-ms-transition: -ms-transform 0.5s ease;
	transition: 0.5s ease;
	background-color: rgba(132, 153, 231, 0.7);
}
.tiles:hover .overlay {
	opacity: 0;
}
.tiles:hover {
	cursor: pointer;

	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
	-moz-transition: -moz-transform 0.5s ease;
	-webkit-transition: -webkit-transform 0.5s ease;
	-ms-transition: -ms-transform 0.5s ease;
	transition: transform 0.5s ease;
}

.tiles .content {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 0;
	z-index: 2;
}
.tiles a {
	text-decoration: none;
	color: white;
}
