.grid {
	padding: 10px 10px 40px 10px;
	max-width: 1300px;
	margin: 0 auto;
	list-style: none;
	text-align: left;
}

.grid li {
	display: inline-block;
	width: 190px;
	margin: 0;
	padding: 10px;
	padding-bottom: 40px;
	text-align: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
	border:5px solid #fff;
}

.grid figure img {
	max-width: 180px;
	max-height: 120px; 
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding-top: 0px;
	background: #344164;
	color: #ed4e6e;
}


.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 14pt;
}

.grid figcaption span:before {
	content: 'by ';
}

.grid figcaption a {
	text-align: center;
	padding: 2px 5px;
	border-radius: 2px;
	display: inline-block;
	background: #ed4e6e;
	color: #fff;
}

/* Individual Caption Styles */

/* Caption Style 1 */
.cs-style-1 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	text-align: center;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	-moz-transition: -moz-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
}

.no-touch .cs-style-1 figure:hover figcaption,
.cs-style-1 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translate(15px, 15px);
	-moz-transform: translate(15px, 15px);
	-ms-transform: translate(15px, 15px);
	transform: translate(15px, 15px);
}

.cs-style-1 figcaption h3 {
	margin-top: 70px;
}

.cs-style-1 figcaption span {
	display: block;
}

.cs-style-1 figcaption a {
	margin-top: 30px;
}

/* Caption Style 2 */
.cs-style-2 figure img {
	z-index: 10;
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-2 figure:hover img,
.cs-style-2 figure.cs-hover img {
	-webkit-transform: translateY(-90px);
	-moz-transform: translateY(-90px);
	-ms-transform: translateY(-90px);
	transform: translateY(-90px);
}

.cs-style-2 figcaption {
	height: 90px;
	width: 100%;
	top: auto;
	bottom: 0;
}

.cs-style-2 figcaption a {
	position: absolute;
	right: 20px;
	top: 30px;
}

/* Caption Style 3 */
.cs-style-3 figure {
	overflow: hidden;
}

.cs-style-3 figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-3 figure:hover img,
.cs-style-3 figure.cs-hover img {
	-webkit-transform: translateY(-50px);
	-moz-transform: translateY(-50px);
	-ms-transform: translateY(-50px);
	transform: translateY(-50px);
}

.cs-style-3 figcaption {
	height: 100px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 0;
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-3 figure:hover figcaption,
.cs-style-3 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-3 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

/* Caption Style 4 */
.cs-style-4 li {
	-webkit-perspective: 1700px;
	-moz-perspective: 1700px;
	perspective: 1700px;
	-webkit-perspective-origin: 0 50%;
	-moz-perspective-origin: 0 50%;
	perspective-origin: 0 50%;
}

.cs-style-4 figure {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.cs-style-4 figure > div {
	overflow: hidden;
}

.cs-style-4 figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-4 figure:hover img,
.cs-style-4 figure.cs-hover img {
	-webkit-transform: translateX(25%);
	-moz-transform: translateX(25%);
	-ms-transform: translateX(25%);
	transform: translateX(25%);
}

.cs-style-4 figcaption {
	height: 100%;
	width: 50%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-4 figure:hover figcaption,
.cs-style-4 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
	transform: rotateY(0deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-4 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

/* Caption Style 5 */
.cs-style-5 figure img {
	z-index: 10;
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-5 figure:hover img,
.cs-style-5 figure.cs-hover img {
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	-ms-transform: scale(0.4);
	transform: scale(0.4);
}

.cs-style-5 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
	-moz-transition: -moz-transform 0.4s, opacity 0.4s;
	transition: transform 0.4s, opacity 0.4s;
}

.no-touch .cs-style-5 figure:hover figcaption,
.cs-style-5 figure.cs-hover figcaption {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

.cs-style-5 figure a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

/* Caption Style 6 */
.cs-style-6 figure img {
	z-index: 10;
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-6 figure:hover img,
.cs-style-6 figure.cs-hover img {
	-webkit-transform: translateY(-50px) scale(0.5);
	-moz-transform: translateY(-50px) scale(0.5);
	-ms-transform: translateY(-50px) scale(0.5);
	transform: translateY(-50px) scale(0.5);
}

.cs-style-6 figcaption {
	height: 100%;
	width: 100%;
}

.cs-style-6 figcaption h3 {
	margin-top: 60%;
}

.cs-style-6 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

/* Caption Style 7 */
.cs-style-7 li:first-child { z-index: 100; }
.cs-style-7 li:nth-child(2) { z-index: 99; }
.cs-style-7 li:nth-child(3) { z-index: 98; }
.cs-style-7 li:nth-child(4) { z-index: 97; }
.cs-style-7 li:nth-child(5) { z-index: 96; }
.cs-style-7 li:nth-child(6) { z-index: 95; }
.cs-style-7 li:nth-child(7) { z-index: 94; }
.cs-style-7 li:nth-child(8) { z-index: 93; }
.cs-style-7 li:nth-child(9) { z-index: 92; }
.cs-style-7 li:nth-child(10) { z-index: 91; }
.cs-style-7 li:nth-child(11) { z-index: 90; }
.cs-style-7 li:nth-child(12) { z-index: 89; }
.cs-style-7 li:nth-child(13) { z-index: 88; }
.cs-style-7 li:nth-child(14) { z-index: 87; }
.cs-style-7 li:nth-child(15) { z-index: 86; }
.cs-style-7 li:nth-child(16) { z-index: 85; }
.cs-style-7 li:nth-child(17) { z-index: 84; }
.cs-style-7 li:nth-child(18) { z-index: 83; }
.cs-style-7 li:nth-child(19) { z-index: 82; }
.cs-style-7 li:nth-child(20) { z-index: 81; }
.cs-style-7 li:nth-child(21) { z-index: 80; }
.cs-style-7 li:nth-child(22) { z-index: 79; }
.cs-style-7 li:nth-child(23) { z-index: 78; }
.cs-style-7 li:nth-child(24) { z-index: 77; }
.cs-style-7 li:nth-child(25) { z-index: 76; }
.cs-style-7 li:nth-child(26) { z-index: 75; }
.cs-style-7 li:nth-child(27) { z-index: 74; }
.cs-style-7 li:nth-child(28) { z-index: 73; }
.cs-style-7 li:nth-child(29) { z-index: 72; }
.cs-style-7 li:nth-child(30) { z-index: 71; }
.cs-style-7 li:nth-child(31) { z-index: 70; }
.cs-style-7 li:nth-child(32) { z-index: 69; }
.cs-style-7 li:nth-child(33) { z-index: 68; }
.cs-style-7 li:nth-child(34) { z-index: 67; }
.cs-style-7 li:nth-child(35) { z-index: 66; }
.cs-style-7 li:nth-child(36) { z-index: 65; }
.cs-style-7 li:nth-child(37) { z-index: 64; }
.cs-style-7 li:nth-child(38) { z-index: 63; }
.cs-style-7 li:nth-child(39) { z-index: 62; }
.cs-style-7 li:nth-child(40) { z-index: 61; }
.cs-style-7 li:nth-child(41) { z-index: 60; }
.cs-style-7 li:nth-child(42) { z-index: 59; }
.cs-style-7 li:nth-child(43) { z-index: 58; }
.cs-style-7 li:nth-child(44) { z-index: 57; }
.cs-style-7 li:nth-child(45) { z-index: 56; }
.cs-style-7 li:nth-child(46) { z-index: 55; }
.cs-style-7 li:nth-child(47) { z-index: 54; }
.cs-style-7 li:nth-child(48) { z-index: 53; }
.cs-style-7 li:nth-child(49) { z-index: 52; }
.cs-style-7 li:nth-child(50) { z-index: 51; }
.cs-style-7 li:nth-child(51) { z-index: 50; }
.cs-style-7 li:nth-child(52) { z-index: 49; }
.cs-style-7 li:nth-child(53) { z-index: 48; }
.cs-style-7 li:nth-child(54) { z-index: 47; }
.cs-style-7 li:nth-child(55) { z-index: 46; }
.cs-style-7 li:nth-child(56) { z-index: 45; }
.cs-style-7 li:nth-child(57) { z-index: 44; }
.cs-style-7 li:nth-child(58) { z-index: 43; }
.cs-style-7 li:nth-child(59) { z-index: 42; }
.cs-style-7 li:nth-child(60) { z-index: 41; }
.cs-style-7 li:nth-child(61) { z-index: 40; }
.cs-style-7 li:nth-child(62) { z-index: 39; }
.cs-style-7 li:nth-child(63) { z-index: 38; }
.cs-style-7 li:nth-child(64) { z-index: 37; }
.cs-style-7 li:nth-child(65) { z-index: 36; }
.cs-style-7 li:nth-child(66) { z-index: 35; }
.cs-style-7 li:nth-child(67) { z-index: 34; }
.cs-style-7 li:nth-child(68) { z-index: 33; }
.cs-style-7 li:nth-child(69) { z-index: 32; }
.cs-style-7 li:nth-child(70) { z-index: 31; }
.cs-style-7 li:nth-child(71) { z-index: 30; }
.cs-style-7 li:nth-child(72) { z-index: 29; }
.cs-style-7 li:nth-child(73) { z-index: 28; }
.cs-style-7 li:nth-child(74) { z-index: 27; }
.cs-style-7 li:nth-child(75) { z-index: 26; }
.cs-style-7 li:nth-child(76) { z-index: 25; }
.cs-style-7 li:nth-child(77) { z-index: 24; }
.cs-style-7 li:nth-child(78) { z-index: 23; }
.cs-style-7 li:nth-child(79) { z-index: 22; }
.cs-style-7 li:nth-child(80) { z-index: 21; }
.cs-style-7 li:nth-child(81) { z-index: 20; }
.cs-style-7 li:nth-child(82) { z-index: 19; }
.cs-style-7 li:nth-child(83) { z-index: 18; }
.cs-style-7 li:nth-child(84) { z-index: 17; }
.cs-style-7 li:nth-child(85) { z-index: 16; }
.cs-style-7 li:nth-child(86) { z-index: 15; }
.cs-style-7 li:nth-child(87) { z-index: 14; }
.cs-style-7 li:nth-child(88) { z-index: 13; }
.cs-style-7 li:nth-child(89) { z-index: 12; }
.cs-style-7 li:nth-child(90) { z-index: 11; }
.cs-style-7 li:nth-child(91) { z-index: 10; }
.cs-style-7 li:nth-child(92) { z-index: 9; }
.cs-style-7 li:nth-child(93) { z-index: 8; }
.cs-style-7 li:nth-child(94) { z-index: 7; }
.cs-style-7 li:nth-child(95) { z-index: 6; }
.cs-style-7 li:nth-child(96) { z-index: 5; }
.cs-style-7 li:nth-child(97) { z-index: 4; }
.cs-style-7 li:nth-child(98) { z-index: 3; }
.cs-style-7 li:nth-child(99) { z-index: 2; }
.cs-style-7 li:nth-child(100) { z-index: 1; }


.cs-style-7 figure img {
	z-index: 10;
	width: 160px;
	height: 110px; 
}

.cs-style-7 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	-moz-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	box-shadow: 0 0 0 0px #344164;
}

.no-touch .cs-style-7 figure:hover figcaption,
.cs-style-7 figure.cs-hover figcaption {
	opacity: 1;
	height: 200%;
	box-shadow: 0 0 0 10px #344164;
}

.cs-style-7 figcaption h3 {
	margin-top: 74%;
	width:120px;
}

.cs-style-7 figcaption h3,
.cs-style-7 figcaption span,
.cs-style-7 figcaption a {
	opacity: 0;
	-webkit-transition: opacity 0s;
	-moz-transition: opacity 0s;
	transition: opacity 0s;
}

.cs-style-7 figcaption a {
	position: absolute;
	top: 76%;
	right: 0px;
	font-size:8px;
}

.no-touch .cs-style-7 figure:hover figcaption h3,
.no-touch .cs-style-7 figure:hover figcaption span,
.no-touch .cs-style-7 figure:hover figcaption a,
.cs-style-7 figure.cs-hover figcaption h3,
.cs-style-7 figure.cs-hover figcaption span,
.cs-style-7 figure.cs-hover figcaption a {
	-webkit-transition: opacity 0.3s 0.2s;
	-moz-transition: opacity 0.3s 0.2s;
	transition: opacity 0.3s 0.2s;
	opacity: 1;
}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}
	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
