`.grid {
	margin: 0 auto;
	list-style: none;
	text-align: left;
	padding-top: 15px;
}

.grid li {
	display: inline-block;
	min-width: 215px;
	margin: 0;
	text-align: left;
	position: relative;
	font-size: 1em;
}

.grid .pan {
	top: -20px;
}

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure .myImg {
	max-width: 100%;
	width: 230px;
	height: 150px;
	display: block;
	position: relative;
}

.grid figure .myImg2 {
	max-width: 100%;
	width: 230px;
	height: 150px;
	display: block;
	position: relative;
}

.grid figure .panorama {
	max-width: 100%;
	width: 230px;
	height: 150px;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px;
	background: rgb(128, 202, 207);;
	color: #fff;
}

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

.grid figcaption a {
	font-size: 0.7em;
	text-align: center;
	padding: 5px 10px;
	border-radius: 0px;
	display: inline-block;
	background: rgb(10, 57, 93);
	color: #fff;
}

.grid figcaption span, .grid figcaption div {

	text-shadow: 1px 1px #73a1bb;
}

/* Individual Caption Styles */

/* Caption Style 2 */
.cs-style-2 li {
margin-top: 60px;
}

.cs-style-2 figure .myImg2, .cs-style-2 figure figcaption, .cs-style-2 figure a {
	-webkit-transition: -webkit-transform 0.6s;
	-moz-transition: -moz-transform 0.6s;
	transition: transform 0.6s;
}

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

.no-touch .cs-style-2 figure:hover figcaption,
.cs-style-2 figure.cs-hover figcaption {
	-webkit-transition: height 0.5s;
	-moz-transition: height 0.5s;
	transition: height 0.5s;

	height: 120px;
}


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

	opacity:1;
	animation-name: opacity1;
	animation-duration:0.5s;
}

.no-touch .cs-style-2 figure a,
.cs-style-2 figure a {
	-webkit-transform: translateY(5px);
	-moz-transform: translateY(5px);
	-ms-transform: translateY(5px);
	transform: translateY(5px);
	opacity: 0;


}


.cs-style-2 figcaption {
	z-index: 10;
	padding: 15px 10px;
	height: 75px;
	width: 100%;
	top: auto;
	bottom: 0;

	-webkit-transition: height 0.5s;
	-moz-transition: height 0.5s;
	transition: height 0.5s;

}

.cs-style-2 figcaption a {
	position: absolute;
	right: 13px;
	bottom: 8px;
}

@keyframes opacity1 {
	from {opacity:0}
	to {opacity:1}
}

/* 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 .myImg {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}
.cs-style-4 figure .myImg2 {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

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

.cs-style-4 figcaption {
	height: 100%;
	width: 55%;
	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;
}

.hovered 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: 10px;
	right: 10px;
}

.no-touch .cs-style-2 figure:hover figcaption .albumInfo_Title, .hovered figcaption .albumInfo_Title {
	width: auto;
	white-space: normal;
	overflow: auto;
	text-overflow: clip;
}

.albumInfo_Title {
	width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media screen and (max-width: 800px) {
	.grid {
		padding: 10px 10px 100px 10px;
		text-align: left;

	}
	.grid li {
		width: 49%;
		height: 100%;
		min-width: 0;
	}

	.grid .album {
		width: 100%;
		height: 100%;
		min-width: 0;
		font-size: 0.7em;
	}

	.grid .album figure figcaption {
		width: 50%;
	}

	.grid li .myImg {
		min-width: 0;
		width: 100%;
		height: 23vw;
		min-height: 100px;
		max-height: 170px;
	}

	.grid li .myImg2 {
		min-width: 0;
		height: 0;
		padding-top: 40%;
		width: 50%;
		margin-left: 50%;
	}

	.grid .pan {
		top: 0;
	}

	.grid figure .panorama {
		min-width: 280px;
		height: 196px;
	}
}
