/* Projects
-------------------------------------------------- */
.grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}
.grid li {
  list-style: none;
}

@media screen and (min-width: 55em) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

showcase {
	position: relative;
}
.showcase-item {
	list-style: none;
	margin-bottom: 2rem;
	position: relative;
}
.showcase-link {
	display: block;
	position: relative;
	padding-top: 100%;
	z-index: 0;
	border-bottom: 0 !important;
}
.showcase-caption {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #FFF;
	letter-spacing: .05em;
	opacity: 0;
	-webkit-transition: .25s opacity;
	transition: .25s opacity;
	will-change: opacity;
}
.showcase-title {
	margin-bottom: 0;
	text-align: center;
	width: 100%;
	font-size: 2.5rem;
	text-shadow: 1px 1px rgba(0,0,0,.5);
	padding: 0 1.5rem;
	/* Vertically center the caption */
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}
.showcase-image {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
}
.showcase-link:hover .showcase-caption,
.showcase-link:focus .showcase-caption {
	opacity: 1;
}

@media (any-hover: none) {
	.showcase-caption {
		/* The media query, enclosing these rules matches only
			 touch-screen devices that do not support hover due
			 to the lack of a pointing device like a mouse.
			 It does not work in all mobile browsers, but
			 progressively enhances the experience on supported
			 devices. Tested in Safari (iOS) 9.3 */
		opacity: 1.0;
		/* Reset will-change property to keep it from eating
			 up unneccessary resources on touch-only devices */
		will-change: auto;
	}
	.showcase-title {
		font-size: .85em;
	}
}