.contenedor{
	margin: auto;
}

.contenedor nav{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

nav .items{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

nav .items .item{
	margin: 0 2px;
	padding: 5px 13px;
	font-size: 14px;
	font-weight: 500;
	color: #979797;
	border: 1px solid #a5a5a5;
	border-radius: 10px;
	cursor: pointer;
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

nav .items .active,
nav .items .item:hover{
	color:#ffffff;
	background: #a5a5a5;
}

.galeria-f{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	margin-top: 20px;
}
.galeria-f .image{
	padding: 5px;
	width: calc(95% /5);
}

.galeria-f .image.hide{
	display: none;
}

.galeria-f .image.show{
	-webkit-animation: animate .4s ease;
	        animation: animate .4s ease;
}

@-webkit-keyframes animate{
	0%{
		-webkit-transform: scale(.5);
		        transform: scale(.5);
	}
	100%{
		-webkit-transform: scale(1);
		        transform: scale(1);
	}
}

@keyframes animate{
	0%{
		-webkit-transform: scale(.5);
		        transform: scale(.5);
	}
	100%{
		-webkit-transform: scale(1);
		        transform: scale(1);
	}
}

.galeria-f .image span{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
	overflow: hidden;
}
.galeria-f .image img{
	width: 100%;
	vertical-align: middle;
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

.galeria-f .image:hover img{
	-webkit-transform: scale(1.1);
	    -ms-transform: scale(1.1);
	        transform: scale(1.1);
}

/*LIGHTBOX*/
.preview-box{
	position: fixed;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%,-50%) scale(.9);
	    -ms-transform: translate(-50%,-50%) scale(.9);
	        transform: translate(-50%,-50%) scale(.9);
	background: #ffffff;
	max-width: 850px;
	width: 100%;
	z-index: 5;
	opacity: 0;
	pointer-events: none;
	border-radius: 4px;
	padding: 0 5px 5px 5px;
	-webkit-box-shadow: 0 0 15px rgba(0,0,0,.2);
	        box-shadow: 0 0 15px rgba(0,0,0,.2);
}

.preview-box.show{
	opacity: 1;
	pointer-events: auto;
	-webkit-transform: translate(-50%,-50%) scale(1);
	    -ms-transform: translate(-50%,-50%) scale(1);
	        transform: translate(-50%,-50%) scale(1);
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

.preview-box .detalles{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding: 13px 15px 13px 10px;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}

.preview-box .detalles .titulo{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-weight: 300;
	font-size: 18px;
	color: #a5a5a5;
}

.detalles .titulo .cat{
	margin-left: 5px;
	font-weight: 300;
	text-transform:capitalize;
}

.detalles .titulo .esp{
	margin-left: 5px;
	font-weight: 900;
}

.detalles .bx{
	font-size: 28px;
	cursor: pointer;
	color: #a5a5a5;
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

.detalles .bx:hover{
	color:#f18a48;
}

.preview-box .image-box{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
}

.image-box img{
	width: 100%;
	border-radius: 4px;
}

.image-box .slide{
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	    -ms-transform: translateY(-50%);
	        transform: translateY(-50%);
	font-size: 30px;
	cursor: pointer;
	color: #FFFFFF;
	width: 60px;
	height: 50px;
	line-height: 50px;
	text-align: center;
}

.image-box .slide.prev{
	left:0;
}

.image-box .slide.next{
	right:0;
}

.sombra{
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: none;
	background: rgba(0,0,0,.8);
}

.sombra.show{
	display: block;
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

@media (max-width:1000px){
	.galeria-f .image{
	width: calc(100% /3);
	}
}

@media (max-width:800px){
	.galeria-f .image{
	width: calc(100% /2);
	}
}

@media (max-width:700px){
	nav .items{
		max-width: 600px;
	}
	nav .items .item{
	padding: 5px 10px;
	}	
}

@media (max-width:600px){
	.galeria-f .image{
	width: calc(100%);
	}
	nav .items{
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
		-webkit-box-pack: center;
		    -ms-flex-pack: center;
		        justify-content: center;
	}
	nav .items .item{
	margin: 5px;
	}	
}