@import url("https://file.myfontastic.com/2YvVddaRxeTgMt7WvdAMGe/icons.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic");


.grid{
	position: relative;
	flex-wrap:wrap;
	display:flex;
	margin-bottom: 30px;
	padding-bottom: 4vh;
}


@media screen and (max-width: 980px) {
	.grid{
		position: relative;
		margin-bottom: 30px;
    padding-bottom: 4vh;

	}
}

/* Common style */
.grid figure {
	position: relative;
	overflow: hidden;
	text-align: center;
	cursor: crosshair;
}

.grid figure img {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	display: block;
	overflow: hidden;
	/*max-width : auto;
	min-width: 60%;
	width: auto;
	height: auto;*/
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 1em;
	color: #FFF;
	text-transform: none;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 0px;
	border: 1px #CCC solid;
}

.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 h2 {
	word-spacing: -0.15em;
	font-weight: 600;
	font-size: 1.6em;
}

.grid figure h2 span {
	font-weight: 100;
	font-size: 0.6em;
}

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

.grid figure p {
	letter-spacing: 1px;
	font-size: 0.5em;
}

.grid2 {
	position: relative;
	margin: 0 auto;
	list-style: none;
	flex-wrap: wrap;
	display: flex;
	text-align: center;
	justify-content:center;
	width: 70vw;
	height:auto;
}

@media screen and (max-width: 480px) {
	.grid2{
		position: relative;
		font-size: 0.8em;
	}
}

/* Common style*/
.grid2 figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 10px 1%;
	/*width: 25vw;*/
	background-color: rgba(158,158,158,0.1);

	text-align: center;
	cursor: pointer;
}

.grid2 figure img {
	position: relative;
	display: block;
	opacity: 0.8;
}

.grid2 figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: none;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

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

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

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

.grid2 figure h2 {
	word-spacing: -0.15em;
	font-weight: lighter;
}

.grid2 figure h2 span {
	font-weight: lighter;
}

.grid2 figure h2,
.grid2 figure p {
	margin: 0;
}

.grid2 figure p {

	letter-spacing: 1px;
	font-size: 68.5%;
}

/* Individual effects */

/*---------------*/
/***** Julia *****/
/*---------------*/

figure.effect-julia {
	background: rgba(255,255,255,0); /*#2f3238*/
	margin:1em;
}

figure.effect-julia img {
	position: relative;
	/*max-width: 40vw;*/
	height: 30vh;
	min-height: 230px;
	min-width: 230px;
	-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
	transition-property: height,width;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;

}

figure.effect-julia figcaption {
	text-align: left;
	font-size: 0.9em;
	transition-property: height;

}

figure.effect-julia h2 {
	position: relative;
	padding: 0.5em 0;
}

figure.effect-julia p {
	display: inline-block;
	margin: 0 0 0.25em;
	padding: 0.4em 1em;
	background: rgba(196,4,82,0.9);
	color: #FFF;
	text-transform: none;
	font-weight: 300;
	font-size: 0.85em;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-360px,0,0);
	transform: translate3d(-360px,0,0);
}

figure.effect-julia p:first-child {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
	border-radius: 0px;
}

figure.effect-julia p:nth-of-type(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
		border-radius: 0px;
}

figure.effect-julia p:nth-of-type(3) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
		border-radius: 0px;
}
figure.effect-julia p:nth-of-type(4) {
	-webkit-transition-delay: 0.01s;
	transition-delay: 0.01s;
		border-radius: 0px;
}

figure.effect-julia:hover p:first-child {
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
		border-radius: 0px;
}

figure.effect-julia:hover p:nth-of-type(2) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
		border-radius: 0px;
}

figure.effect-julia:hover p:nth-of-type(3) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
		border-radius: 0px;
}

figure.effect-julia:hover p:nth-of-type(4) {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
		border-radius: 0px;
}

figure.effect-julia:hover  {
	background-color:rgba(0,0,0,0.1);
}

figure.effect-julia:hover img {
	opacity: 0.4;
	background: rgba(0,0,0,0.1);
	-webkit-transform: scale3d(1.05,1.05,1.05);
	transform: scale3d(1.05,1.05,1.05);
	transition-property: size;
	transition: transform 0.35s, opacity 0.4s;

}

figure.effect-julia:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	border-radius: 4px;
}


figure2.effect-julia {
	background: rgba(255,255,255,0); <!-- #2f3238 -->
}

figure2.effect-julia img {
	max-width: none;
	height: 400px;
	-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 0px;
}

figure2.effect-julia figcaption {
	text-align: left;
}

figure2.effect-julia h2 {
	position: relative;
	padding: 0.5em 0;
}

figure2.effect-julia p {
	display: inline-block;
	margin: 0 0 0.25em;
	padding: 0.4em 1em;
	background: rgba(255,255,255,0.9);
	color: #2f3238;
	text-transform: none;
	font-weight: 500;
	font-size: 0.75em;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-360px,0,0);
	transform: translate3d(-360px,0,0);
	border-radius: 0px;
}

figure2.effect-julia p:first-child {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
	border-radius: 4px;
}

figure2.effect-julia p:nth-of-type(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
		border-radius: 4px;
}

figure2.effect-julia p:nth-of-type(3) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
		border-radius: 4px;
}
figure2.effect-julia p:nth-of-type(4) {
	-webkit-transition-delay: 0.01s;
	transition-delay: 0.01s;
		border-radius: 0px;
}

figure2.effect-julia:hover p:first-child {
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
		border-radius: 4px;
}

figure2.effect-julia:hover p:nth-of-type(2) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
		border-radius: 4px;
}

figure2.effect-julia:hover p:nth-of-type(3) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
		border-radius: 4px;
}

figure2.effect-julia:hover img {
	opacity: 0.4;
	-webkit-transform: scale3d(1.1,1.1,1);
	transform: scale3d(1.1,1.1,1);
		border-radius: 4px;
}

figure2.effect-julia:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
		border-radius: 4px;
}
