<style>
*{
margin: 0;
padding: 0;
}
body{
font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans', 'Helvetica Neue', Arial, sans-serif;
font-size: 13px;
font-weight: 300;
background-color: #E5E5E5;
}

/* GALLERY */

.gallery {
width: 800px;
margin: 0 auto;
overflow: hidden;
display: -webkit-flex;
display: flex;

-webkit-flex-flow: row wrap;
  flex-flow: row wrap;
}
.gallery li{
position: relative;
width: 33.333%;
float: center;
padding: 0.625rem;

display: -webkit-flex;
display: flex;

-webkit-box-sizing: border-box;
box-sizing: border-box;

-webkit-transition: width 0.3s ease-out;
transition: width 0.3s ease-out;
}
.gallery li .box {
position:relative;
padding: 6px 6px 6px 6px;
background-color: #fff;
overflow: hidden;
}
.gallery li figure{
display: block;
width: 100%;
margin-bottom: 6px;
}
.gallery li img{
width: 100%;
height: auto;
float:auto;
}
.gallery li h3{
margin-bottom: 6px;
font-size: 17px;
font-weight: bold;
line-height: 100%;
text-transform: justify;
color: #000;
}
.gallery li time{
position:absolute;
bottom:0;
left:0;
width: 100%;
padding: 6px;
font-weight: 400;
text-align: justify;

-webkit-box-sizing: border-box;
box-sizing: border-box;
}

.gallery li:nth-child(even) .box {
background: #eee;
}

/* MEDIA QUERIES */

@media screen and (max-width:992px) {

.gallery {
width: auto;
}

}

@media screen and (max-width:768px) {

.gallery li {
width: 50%;
}

}

@media screen and (max-width:468px) {

.gallery li {
width: 100%;
}
.gallery :hover img {
-webkit-transform:scale(1.25);
-moz-transform:scale(1.25);
-ms-transform:scale(1.25);
-o-transform:scale(1.25);
transform:scale(1.25);

}
}

 section{
 width:100%;
 margin:0 auto;
            }

            /*Para que el contenedor muestre elementos aunque estos sean flotantes*/
            #container2:after {
                content: " ";
                display: block;
                height: 0;
                clear: both;
            }

          

            /*Estructura de cada componente de la galeria (imagen + descripcion)*/
            #container2 div{
                position: relative;
                height: auto;
                display:inline;
                float:left;
      
                z-index:1;
                transition: width 1s, width 1s, top 1s;
                -webkit-transition: -webkit-transform 1s, width 1s, top 1s;
            }

            /*Se rota ligeramente al posicionarnos encima del componente de la galeria (imagen + descripcion)*/

#container2 img {
-webkit-transition:all .9s ease; /* Safari y Chrome */
-moz-transition:all .9s ease; /* Firefox */
-o-transition:all .9s ease; /* IE 9 */
-ms-transition:all .9s ease; /* Opera */
width:100%;
}
#container2:hover img {
-webkit-transform:scale(1.25);
-moz-transform:scale(1.25);
-ms-transform:scale(1.25);
-o-transform:scale(1.25);
transform:scale(1.25);
}
#container2 {/*Ancho y altura son modificables al requerimiento de cada uno*/

height: auto;
overflow:hidden;
}
         

            #container2 div.select{
                
                position: fixed;
                width: 100%;
                height: 100%;
                top: 0;
                left:0;
                z-index:5;
                background:rgba(0,0,0,0.5);
              
            }

            #container2 div.select img{
                width: 56%;
                height: auto;
                box-shadow: 0 0 20px #DDD;
                border: 5px solid #FFF;
                position: fixed;
                top: 20%;
                left:10%;
            }

            #container2 div.select + div{
                margin: 5px 3% 5px 31%;
            }
