.cards{
	background: rgba(255, 255, 255, .5);
	height: 100%;
}

.card-container{
	display: flex;
	flex-wrap: wrap;
	margin: 50px auto;
	width: 300px;
}

.card{
	position: relative;
	perspective: 1000px;
	height: 200px;
	width: 300px;
	margin: 5px;
}

.card:hover > figure.front{
	transform: rotateY(180deg);
	opacity: 0;
}

.card:hover > figure.back{
	transform: rotateY(360deg);
	opacity: 1;
}

.card > figure{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-content: stretch;
	align-items: center;
	position: absolute;
	margin: 0px;
	height: 100%;
	width: 100%;
	background-color: rgba(255, 255, 255, .85);
	text-align: center;
	transition: transform .4s ease-out, opacity .14s step-end;
	cursor: pointer;
}

.card > figure.front{
	padding: 30px;
	transform: rotateY(0deg);
}

.card > figure.front > figcaption{
	margin: 0px;
	background: none;
	margin: 0px;
	padding: 0px;
	font-size: 22px;
	font-weight: bold;
	color: rgb(91, 92, 185);
}

.card > figure.back{
	align-content: center;
	background-color: rgba(255, 255, 255, .85) !important;
	transform: rotateY(180deg);
	opacity: 0;
}

.card > figure.back div.thumb img{
	display: block;
	height: 170px;
	width: 300px;
}

.card > figure.back div.thumb img{
	height: 170px;
	width: 300px;
}

.card > figure.back figcaption{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	font-weight: bold;
	font-size: 26px;
	color: rgb(91, 92, 185);
}

.card:nth-of-type(even) > figure{
	background-color: rgba(91, 92, 185, 0.85);
}

.card:nth-of-type(even) > figure.front > figcaption{
	color: rgba(255, 255, 255, .85);
}

#zoom-window {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0px;
	left: 0px;
	padding-top: 60px;
	width: 100%;
	z-index: 3;
	height: 100vh;
	background-color: rgba(70, 60, 50, .8);
}

#zoom-window > figure{
	display: none;
	position: relative;
	padding: 30px;
	max-width: 300px;
	max-height: 90%;
	overflow: auto;
	background-color: #fff;
}

#zoom-window > figure > div.close-button-container {
	position: absolute;
	top: 15px;
	right: 60px;
	cursor: pointer;
}

#zoom-window > figure img.close-button {
	position: fixed;
}

#zoom-window > figure > .photos {
	text-align: center;
	max-height: 80%;
}

#zoom-window > figure > .photos > img {
	max-height: 100%;
	max-width: 100%;
}

#zoom-window > figure > figcaption{
	padding: 5px;
}

#zoom-window > figure > figcaption h1{
	font-size: 20px;
	margin: 0px auto;
	color: #000;
	text-align: center;
}

#zoom-window > figure > figcaption p {
	margin: .67em auto;
	color: #000;
	text-align: left;
}

#zoom-window.active {
	display: flex;
}

#zoom-window > figure.active {
	display: flex;
	flex-direction: column;
}

#zoom-window.hidden {
	display: none;
}

#zoom-window > figure.hidden {
	display: none;
}