/*-----Flex Layout-----*/

.flex-gallery { /* Masonry container */
    column-count: 4;
	margin: 1.5em 0;
    padding: 0;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
  
}

 .flex_gallery_item {
	 display: inline-block !important;
    margin: 0 0 1em !important;
    width: 100% !important;
}



/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 480px) {
	    .flex-gallery {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
} 

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 480px) {
	    .flex-gallery {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	    .flex-gallery {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	    .flex-gallery {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	    .flex-gallery {
        -moz-column-count: 5;
        -webkit-column-count: 5;
        column-count: 5;
    }
}




.flex-gallery .show_shadow {
		box-shadow: 0px 40px 40px 0px #d6dee4;
}

.flex-gallery .hide_shadow {
		box-shadow: none;
}

 
.show_rounded_corners {
    border-radius: 10px !important;
    border: none;
}

.show_rounded_corners .et_pb_gallery_image img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
 .show_rounded_corners .et_pb_gallery_image .et_overlay {
	border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
  
  