:root {
	--exItemSize: 300px;
	--exItemMargin: 25px;
}
main {
	max-width: calc((var(--exItemSize) + var(--exItemMargin)) * 2);
	margin: 30px auto;
}

span {
	display: inline-block;
}

li {
	list-style: none;
}

#exItemWrapper {
	display: flex;
	flex-wrap: wrap;
	margin: calc(-1 * var(--exItemMargin));
	list-style-type: none;
	padding: 0;
}

.exItem {
	background-color: #F5F5F5;
	height: var(--exItemSize);
	width: var(--exItemSize);
	margin: var(--exItemMargin);
	position: relative;
}

.exItem:hover {
	background-color: #F0F0F0;
}

.exItem a {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.exItem .titleBar {
	text-align: center;
	border-top: #ddd solid 2px;
	border-bottom: #ddd solid 2px;
	margin-top: 10px;
}

.exItem .title, .exItem .subTitle {
	font-weight: normal;
	margin: 0;
}

.exItem .subTitle {
	font-size: 0.7rem;
}

.exItem .imgAndCaption {
	display: flex;
	padding: 0 15px;
	height: 230px;
}

.exItem .imgAndCaption img {
	width: 38%;
	object-fit: contain;
}

.exItem .imgAndCaption pre {
	display: flex;
	justify-content: center;
	flex-direction: column;
	margin: 0;
	padding: 10px;
	text-align: center;
	font-size: 0.8rem;
	width: 100%;
}

@media screen and (max-width: 665px) {
	#exItemWrapper {
		justify-content: center;
		margin: 0;
	}
}