.gallerylink {
	position: relative;
}

.title {
	position: absolute;
	width: 101%;
	overflow: hidden;
	z-index: 2;
	left: 50%;
	bottom: 10%;
	transform: translate(-50%, -10%);
	background-color: rgb(33,33,33,0.5);
	text-align: center;
	font-size: 1.4em;
	white-space: nowrap;
	padding-top: 4px;
	padding-bottom: 4px;
}

.main a {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 3;
}

.main {
	display: grid;
	grid-gap: 25px;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	grid-auto-rows: 300px;
	grid-auto-flow: dense;
	padding: 20px;
}

.main img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}