button.cws_download {
	background: url(download-12-16.png) 0 0 no-repeat;
	background-color: white;
	background-size: 16px 16px;
	width: 10px !important;
	height: 10px;
	opacity: 1;
	text-decoration: none;

	position: absolute;
	left: 10px;
	bottom: 7px;
	margin: 10px;
	padding: 10px;

	border: 5px solid white;
}

div.download.details {
	/* min-height: 32px; */
	min-height: 50px;
	position: absolute;
	bottom: 0;
	left: 0;
	/* width: 32px; */
	width: 50px;
}

div.download.details a{
	border-bottom: none;
}

#mygallery .details ul {
	margin-bottom: 0;
	text-align: left;
}

.grid {
	position: relative;
	margin: 0 auto;
/*	padding: 1em 0 4em;
*/	max-width: 1000px;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure{
	position: relative;
	/*position: absolute;*/ /* changed this due to msv incognito bug */
	float: left;
/*	overflow: hidden;
*/

	/* Removed the overflow hidden above as was making drid results none visible!!! */

	xmargin: 10px 1%;
	xmin-width: 320px;
	xmax-width: 480px;
	xmax-height: 360px;
	xwidth: 48%;
	xbackground: #3085a3;
	xtext-align: center;
	cursor: pointer;

	margin-bottom: 20px; /* to help with positioning of download icon */
}

.listview.grid figure {
	float: none;
}

.listview .grid figure {
	width: 99%;
}

.listview .grid {
	text-align: left;
}

.grid figure img {
	position: relative;
	display: block;
	/* min-height: 100%; */
	max-width: 100%;
	/* opacity: 0.8; */
}

.grid figure figcaption {
/*	padding: 1em;
*/	padding: 0.5em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h6 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.grid figure h6 span {
	font-weight: 800;
}

.grid figure h6,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}




/*---------------*/
/***** Sadie *****/
/*---------------*/

figure.effect-sadie figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: -webkit-linear-gradient(top, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
	background: linear-gradient(to bottom, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
	content: '';
	opacity: 0;
	-webkit-transform: translate3d(0,50%,0);
	transform: translate3d(0,50%,0);
}

figure.effect-sadie h6 {
	position: absolute;
	top: 50%;
	xleft: 0.5em;
	/*width: 100%;*/
	width: 90%;
	xcolor: #484c61;
	color: #f7f7f7;
	    xmargin-right: -1em;

text-shadow: 1px 1px 1px #484c61;	
	-webkit-transition: -webkit-transform 0.35s, color 0.35s;
	transition: transform 0.35s, color 0.35s;
	-webkit-transform: translate3d(0,-50%,0);
	transform: translate3d(0,-50%,0);
}

figure.effect-sadie figcaption::before,
figure.effect-sadie p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-sadie p {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1em;
	width: 100%;
	opacity: 0;
	-webkit-transform: translate3d(0,10px,0);
	transform: translate3d(0,10px,0);
color: #fff;
	font-size: 0.65em;
}

figure.effect-sadie:hover h6 {
	color: #fff;
	-webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
	transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
}

figure.effect-sadie:hover figcaption::before ,
figure.effect-sadie:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}


/*---------------*/
/***** Lily *****/
/*---------------*/

figure.effect-lily img {
	max-width: none;
	width: -webkit-calc(100% + 50px);
	width: calc(100% + 50px);
	
	opacity: 0.7;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-40px,0, 0);
	transform: translate3d(-40px,0,0);
}

figure.effect-lily figcaption {
	text-align: left;
}

figure.effect-lily figcaption > div {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 2em;
	width: 100%;
	height: 50%;
}

figure.effect-lily h6,
figure.effect-lily p {
	-webkit-transform: translate3d(0,40px,0);
	transform: translate3d(0,40px,0);
}

figure.effect-lily h6 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;

text-shadow: 1px 1px 1px #484c61;	

}

figure.effect-lily p {
	color: rgba(255,255,255,0.8);
	opacity: 0;
	-webkit-transition: opacity 0.2s, -webkit-transform 0.35s;
	transition: opacity 0.2s, transform 0.35s;

	text-shadow: 1px 1px 1px #484c61;	

}

figure.effect-lily:hover img,
figure.effect-lily:hover p {
	opacity: 1;
}

figure.effect-lily:hover img,
figure.effect-lily:hover h6,
figure.effect-lily:hover p {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-lily:hover h6 {
	text-shadow: 1px 1px 1px #484c61;	
}

figure.effect-lily:hover p {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
	-webkit-transition-duration: 0.35s;
	transition-duration: 0.35s;
}

/*---------------*/
/***** Layla *****/
/*---------------*/

figure.effect-layla {
	xbackground: #18a367;
}

figure.effect-layla img {
	xheight: 390px;
}

figure.effect-layla figcaption {
	xpadding: 3em;
}

/*figure.effect-layla figcaption::before,
figure.effect-layla figcaption::after {
	position: absolute;
	content: '';
	opacity: 0;
}

figure.effect-layla figcaption::before {
	top: 10px;
	right: 30px;
	bottom: 10px;
	left: 30px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: scale(0,1);
	transform: scale(0,1);
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
}

figure.effect-layla figcaption::after {
	top: 30px;
	right: 10px;
	bottom: 30px;
	left: 10px;
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	-webkit-transform: scale(1,0);
	transform: scale(1,0);
	-webkit-transform-origin: 100% 0;
	transform-origin: 100% 0;
}*/

figure.effect-layla h6 {
	padding-top: 5%;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;

text-shadow: 1px 1px 1px #484c61;	

}

figure.effect-layla p {
	xpadding: 0.5em 2em;
	text-transform: none;
	opacity: 0;
	-webkit-transform: translate3d(0,-10px,0);
	transform: translate3d(0,-10px,0);

text-shadow: 1px 1px 1px #484c61;	

}

/*figure.effect-layla img,
figure.effect-layla h6 {
	-webkit-transform: translate3d(0,-30px,0);
	transform: translate3d(0,-10px,0);
}
*/
figure.effect-layla img,
figure.effect-layla figcaption::before,
figure.effect-layla figcaption::after,
figure.effect-layla p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-layla:hover img {
	opacity: 0.7;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-layla:hover figcaption::before,
figure.effect-layla:hover figcaption::after {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effect-layla:hover h6,
figure.effect-layla:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-layla:hover figcaption::after,
figure.effect-layla:hover h6,
figure.effect-layla:hover p,
figure.effect-layla:hover img {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
}

/*---------------*/
/***** Sarah *****/
/*---------------*/

figure.effect-sarah {
/*	background: #42b078;
*/}

figure.effect-sarah img {
	max-width: none;
	width: -webkit-calc(100% + 20px);
	width: calc(100% + 20px);
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-10px,0,0);
	transform: translate3d(-10px,0,0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-sarah:hover img {
	xopacity: 0.4;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-sarah figcaption {
	text-align: left;
}

figure.effect-sarah h6 {
	position: relative;
	overflow: hidden;
	padding: 0.5em 0;

text-shadow: 1px 1px 1px #484c61;	

}

figure.effect-sarah h6::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #fff;
	content: '';
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(-100%,0,0);
	transform: translate3d(-100%,0,0);
}

figure.effect-sarah:hover h6::after {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-sarah p {
	padding: 1em 0;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(100%,0,0);
	transform: translate3d(100%,0,0);

text-shadow: 1px 1px 1px #484c61;	
	
}

figure.effect-sarah:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);

	text-shadow: 1px 1px 1px #484c61;	

}
