ul.grid {
	margin: 0 -.5%;
	text-align: left;
}
.grid > li {
	display: inline-block;
/* 	border: 1px solid #ddd9d9; */
	vertical-align: top;
	background: #fafafa;
	-webkit-transition: -webkit-transform .25s, box-shadow .3s;
	-moz-transition: -moz-transform .25s, box-shadow .3s;
	-ms-transition: -ms-transform .25s, box-shadow .3s;
	-o-transition: -o-transform .25s, box-shadow .3s;
	transition: transform .25s, box-shadow .3s;

	position: relative;
	overflow: hidden;
	margin: .5%;
	min-width: 9em;
	max-width: 14em;
	width: 15.6%;
	height: 15%;
	text-align: center;
	cursor: pointer;
	box-shadow: 0;
}
.grid > li:hover {
	-webkit-transform: scale(1.02);
	-moz-transform: scale(1.02);
	-ms-transform: scale(1.02);
	-o-transform: scale(1.02);
	transform: scale(1.02);
}
.grid > li::before {
	content: "";
	width: 1px;
	margin-left: -1px;
	float: left;
	height: 0;
	padding-top: 100%;  /* Aspect Ratio */
}

.grid li a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
	cursor: pointer;
}

.grid figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1;
	padding-top: .3em;

	text-align: center;
	color: #000;
	text-transform: uppercase;
	font-size: .8em;
	font-weight: 800;
	line-height: 1;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;

	background: #fff;
}
.grid figure {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

    border: 1px solid #efefef;
    /* padding: 1ch; */

    display: flex;
    justify-content: center;
    align-content: center;
}
.grid figure img {
	position: relative;
	display: block;
	height: 100%;
	max-width: 100%;
	margin: auto;

	object-fit: cover;
	font-family: 'object-fit: cover;';
}

@media (max-width: 1280px) {
	.grid li {
		min-width: 9em;
		width: 19%;
	}
}
@media (max-width: 1080px) {
	.grid li {
		width: 24%;
	}
}
@media (max-width: 900px) {
	/* .grid li {
		width: 32.3%;
	} */
}
@media (max-width: 720px) {
	/* .grid li {
		width: 46%;
		margin: 2%;
	} */
}
@media (max-width: 600px) {
	#main article {
		margin-left: 2.5%;
	}
	/* .grid li {
		width: 100%;
		margin: 1% 0;
	} */
}
