section.galleries {
	display: block;
	margin: 0 auto;
	max-width: 1028px;
	margin-top: 40px;
}

section.galleries records {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

section.galleries records a {
	display: block;
	flex: 0 0 calc(50% - 20px);
	height: 400px;
	background-size: cover;
	background-position: center top;
	cursor: pointer;
	border-radius: 5px;
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.1);
	overflow: hidden;
}


section.galleries records a .summary {
	display: flex;
  align-items: center;
  justify-content: center;
	width: 100%;
	height: 100%;
}

section.galleries records a .summary h2 {
	color: #FFF;
	font-size: 36px;
	background: rgba(0,0,0,0.5);
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 0;
}

section.galleries records a:hover .summary h2 {
	background: rgba(0,0,0,0.8);
	cursor: pointer;
}

@media only screen and (min-width: 0px) and (max-width: 1080px) {

	section.galleries {
		padding-left: 40px;
		padding-right: 40px;
	}

}

@media only screen and (min-width: 0px) and (max-width: 800px) {
	section.galleries records a {
		flex: 0 0 100%;
		margin-bottom: 20px;
		height: 200px;
	}

	section.galleries records {
		gap: 0;
	}
}