
.fancybox-box-img {
    border: 1px solid #f3f3f3;
    padding: 15px;
}

#photos{
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex; 
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    justify-content: space-between;

}
 #photos a{margin-bottom: 20px}
   


@media (min-width: 768px){
	 #photos a{
	         -ms-flex: 0 0 23.7%;
    flex: 0 0 23.7%;
	}
}
@media (max-width: 480px){
	 #photos a{
		 -ms-flex: 0 0 100%;
		flex: 0 0 100%;
	}
}
