*, *::before, *::after{
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
  
	-webkit-transition: all 0.3s ease-in-out;
      		transition: all 0.3s ease-in-out;
	}

.container{
	width: 1024px;
	max-width: 100%;
	margin: auto;
	display: block;
	text-align: center;
	}

figure{
	width: 300px;
	height: 300px;
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin: 1em;
	}

tfigure{
	width: 300px;
	height: 225px;
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin: 1em;
	}

figcaption{
	position: absolute;
	left: 0; 
	right: 0;
	top: 0; 
	bottom: 0;
	text-align: center;
	font-weight: bold;
	width: 100%;
	height: 100%;
	display: table;
	}

figcaption div{
	display: table-cell;
	vertical-align: middle;
	position: relative;
	top: 20px;
	opacity: 0;
	color: #2c3e50;
	}

figure img{ 
	height: 200px; 
	width: 200px; 
	margin-top: 50px;
	-webkit-transition: all 0.5s ease; 
	-moz-transition: all 0.5s ease; 
	-ms-transition: all 0.5s ease; 
	transition: all 0.5s ease;
	}
	
tfigure img{ 
	height: 150px; 
	width: 200px; 
	margin-top: 50px;
	-webkit-transition: all 0.5s ease; 
	-moz-transition: all 0.5s ease; 
	-ms-transition: all 0.5s ease; 
	transition: all 0.5s ease;
	}


figure:hover figcaption{
	background: rgba(255,255,255,0.3);
	}
	
tfigure:hover figcaption{
	background: rgba(255,255,255,0.3);
	}

figcaption:hover div{
 	opacity: 1;
 	top: 0;
	}

figure:hover img{
	width: 300px; height: 300px; 
	margin-top: 0px;
	opacity: 0.5;
	}
	
tfigure:hover img{
	width: 300px; height: 225px; 
	margin-top: 0px;
	opacity: 0.5;
	}


.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
	}

.modalDialog:target {
	opacity:1;
	pointer-events: auto;
	}

.modalDialog > div {
	width: 700px;
	height: 425px;
	padding: 25px;
	position: relative;
	margin: 10% auto;
	padding: 5px 20px 13px 20px;
	border-radius: 10px;
	}

	.close {
		background: #606061;
		color: #FFFFFF;
		line-height: 25px;
		position: absolute;
		right: -12px;
		text-align: center;
		top: -10px;
		width: 24px;
		text-decoration: none;
		font-weight: bold;
		-webkit-border-radius: 12px;
		-moz-border-radius: 12px;
		border-radius: 12px;
		-moz-box-shadow: 1px 1px 3px #000;
		-webkit-box-shadow: 1px 1px 3px #000;
		box-shadow: 1px 1px 3px #000;
	}

	.close:hover { background: #00d9ff; }



