﻿html, body{
margin:0;
padding:0;
height:100%;

}

.blog{
position:absolute;
top:5px;
left:5px;
width:150px;
height:16px;
font-family: "Trebuchet MS";
font-size:14px;
color:#333;
display:inline-block;
border:none;
overflow:hidden;
}

:focus{
outline:none;
}

.gallery{
margin:0px;


position:relative;
}




a img{
display:block;
width:100%;
height:100%;
-webkit-transition-property:width, height, top, bottom, left, right, z-index;
-webkit-transition-duration:2s;
-moz-transition-property:width, height, top, bottom, left, right, z-index;
-moz-transition-duration:2s;
-o-transition-property:width, height, top, bottom, left, right, z-index;
-o-transition-duration:2s;
transition-property:width, height, top, bottom, left, right, z-index;
transition-duration:2s;
position:absolute;
z-index:1;
top:0px;
left:0px;
cursor:pointer;
-moz-user-select: none;
-khtml-user-select: none;
user-select: none;    
}


.closed{
position:absolute;
top:85px;
right:195px;
display:none;
text-align:center;
font-weight:bold;
font-size:70px;
color:#555;
width:20px;
height:20px;
-webkit-text-shadow:0px 0px 5px #fff;
-moz-text-shadow:0px 0px 5px #222;
text-shadow:0px 0px 5px #fff;
-moz-transform:rotate(45deg);
-o-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
cursor:pointer;
z-index:30;
}

.closed-layer{
display:none;
position:absolute;
top:140px;
;
width:660px;
height:352px;
background:transparent;
z-index:30;
cursor:pointer;
}

a:focus~.closed, a:focus~.closed-layer{
display:block;
}


a:focus{
border:none;
}

a:focus img{
width:250%;
height:250%;
position:absolute;
box-shadow:0 0 15px 2px #000;
-moz-box-shadow:0 0 15px 2px #000;
-webkit-box-shadow:0 0 15px 2px #000;
-webkit-transition-property:width, height, top, bottom, left, right, z-index;
-webkit-transition-duration:2s;
-moz-transition-property:width, height, top, bottom, left, right, z-index;
-moz-transition-duration:2s;
-o-transition-property:width, height, top, bottom, left, right, z-index;
-o-transition-duration:2s;
transition-property:width, height, top, bottom, left, right, z-index;
transition-duration:2s;
cursor:default;
z-index:25;
}



a:focus:nth-child(4n+1) img{
left:-200px;
}

a:focus:nth-child(4n+2) img{
left:-100px;
}

a:focus:nth-child(4n+3) img{
left:-100px;
}

a:focus:nth-child(4n+4) img{
left:-100px;
}

a:focus:nth-child(-n+4) img{
top:100px;
}

a:focus:nth-child(n+9) img{
top:-100px;
}

a:focus:nth-child(n+13) img{
top:-105px;
}