/* Styles for 4DIVI Masonry Custom Post module*/
.mgp_pos_box.left, .mgp_pos_box.right  {
	width: 40%;
}
.mgpcol1 .mgp_pos_box.left, .mgpcol1 .mgp_pos_box.right  {
	width: 25%;
}
.mgp_pos_box.left {
	float: left;
	margin-right: 1em;
}
.mgp_pos_box.right {
    float: right;
	margin-left: 1em;
}
.mgp_pos_box.left .et_pb_image_container, .et_pb_blog_grid .mgp_pos_box.left .et_main_video_container, .et_pb_blog_grid .mgp_pos_box.left .et_audio_content, 
.et_pb_blog_grid .et_pb_post .mgp_pos_box.left .et_pb_slider {
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-right: 1em;
}
.mgp_pos_box.right .et_pb_image_container, .et_pb_blog_grid .mgp_pos_box.right .et_main_video_container, .et_pb_blog_grid .mgp_pos_box.right .et_audio_content, 
.et_pb_blog_grid .et_pb_post .mgp_pos_box.right .et_pb_slider {
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 1em;
}
.mgp_pos_box .et_pb_image_container, 
.mgp_pos_box .et_pb_blog_grid .et_main_video_container, 
.mgp_pos_box .et_pb_blog_grid .et_audio_content, 
.mgp_pos_box .et_pb_blog_grid .et_pb_post .et_pb_slider {
	margin: 0px 0px 0px;
	position: relative;
}
.mgp_pos_box {
	position: relative;
}
/* Category over image */
ul.post-meta.over {
	list-style-type: none;
}
.mgp_pos_box ul.post-meta.over {
	position: absolute;
	top: 0;
	left: 0;
	color: #FFFFFF;
	margin: 0;
	padding: 0;
	z-index: 3;
}
.mgp_pos_box ul.post-meta.over li {
	display: block;
	padding: 0.3em 1em;
	background-color: rgba(0,0,0,0.85);
	color: #FFFFFF;
	float: left;
	clear: both;
	margin-bottom: 1px;
}
/* Date over image */
.mgp_pos_box .metadate {
	position: absolute;
	top: 0;
	right: 0;
	color: #FFFFFF;
	margin: 0;
	padding: 0;
	z-index: 3;
/*		width: 75px;*/
	text-align: center;
	background-color: #2ea3f2;
	float: right;
}
.mgp_pos_box .metadate .mydate {
	padding: 0.35em 0.5em 0.35em 0.5em;
	font-size: 1.8em;
	display: block;
	letter-spacing: -2px;
}
.mgp_pos_box .metadate .mydate .day,
.mgp_pos_box .metadate .mydate .month {
	display: inline-block;
}
.mgp_pos_box .metadate .mydate .day {
	padding-right: 0.2em;
	margin-right: 0.2em;
	border-right-color: #FFFFFF;
	border-right-width: 1px;
	border-style: solid;
}
.mgp_pos_box .metadate .myday {
	font-size: 1.8em;
	display: block;
	letter-spacing: -2px;
}
.mgp_pos_box .metadate .mymonth {
	font-size: 1.2em;
	display: block;
}
.mgp_pos_box .metadate .myear {
	font-size: 0.9em;
	display: block;
	background-color: rgba(0,0,0,0.55);
	letter-spacing: 4px;
}
.mgp_pos_box .post-meta.over a, .mgp_pos_box .post-meta.over a:hover {
	color: #FFFFFF;
}
.mgp_pos_box a.entry-featured-image-url {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
}
/* Dark layout */
.mgp_blog_grid.dark,
.mgp_blog_grid.dark h2, .mgp_blog_grid.dark h2.entry-title,
.mgp_blog_grid.dark p {
	color: #FFFFFF;
}
.et_pb_row_cbg article::after {
	content:"";
	display: block;
	clear: both;
	float: none;
	height: 0px;
	width: 100%;
}
.et_pb_row_fullwidth .et_pb_row.et_pb_row_cbg {
width: 100%;
max-width: 100%;
}
.et_pb_row.et_pb_row_cbg {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
}
.et_pb_row.et_pb_row_cbg .et_pb_image_container {
    margin: 0px 0px 10px;
}
/*** Masonry style ***/
.grid-item-mgp {
  float: left;
  height: auto;
}
/* fluid 1 columns */
.mgpcol1 .mgp-sizer,
.mgpcol1 .grid-item-mgp { width: 100%; }
.mgpcol1 .grid-item-mgp-width2 { width: 100%; }
/* fluid 2 columns symetric */
.mgpcol2 .mgp-sizer,
.mgpcol2 .grid-item-mgp { width: 50%; }
.mgpcol2 .grid-item-mgp-width2 { width: 50%; }
/* fluid 3 columns */
.mgpcol3 .mgp-sizer,
.mgpcol3 .grid-item-mgp { width: 33.333%; }
.mgpcol3 .grid-item-mgp-width2 { width: 33.333%; }
/* fluid 3 columns symetric */
.mgpcol4 .mgp-sizer,
.mgpcol4 .grid-item-mgp { width: 25%; }
.mgpcol4 .grid-item-mgp-width2 { width: 25%; }
/* fluid 4 columns */
.mgpcol5 .mgp-sizer,
.mgpcol5 .grid-item-mgp { width: 20%; }
.mgpcol5 .grid-item-mgp-width2 { width: 20%; }
/* fluid 4 columns symetric */
.mgpcol6 .mgp-sizer,
.mgpcol6 .grid-item-mgp { width: 16.666%; }
.mgpcol6 .grid-item-mgp-width2 { width: 16.666%; }
/* fluid 5 columns */
.mgpcol7 .mgp-sizer,
.mgpcol7 .grid-item-mgp { width: 12.5%; }
.mgpcol7 .grid-item-mgp-width2 { width: 25%; }
/* fluid 5 columns symetric */
.mgpcol8 .mgp-sizer,
.mgpcol8 .grid-item-mgp { width: 20%; }
.mgpcol8 .grid-item-mgp-width2 { width: 20%; }
/* Columns Responsivity  */
@media screen and (max-width: 980px) {
.respoff .mgp-sizer,
.respoff .grid-item-mgp { width: 33.333%; }
.respoff.mgpcol1 .mgp-sizer,
.respoff.mgpcol1 .grid-item-mgp { width: 100%; }
.mgpcol1 .mgp_pos_box.left, .mgpcol1 .mgp_pos_box.right  {
	width: 33.333%;
}
}
@media screen and (max-width: 768px) {
.respoff .mgp-sizer,
.respoff .grid-item-mgp { width: 50%; }
.respoff.mgpcol1 .mgp-sizer,
.respoff.mgpcol1 .grid-item-mgp { width: 100%; }
.mgpcol1 .mgp_pos_box.left, .mgpcol1 .mgp_pos_box.right  {
	width: 50%;
}
}
@media screen and (max-width: 480px) {
.respoff .mgp-sizer,
.respoff .grid-item-mgp { width: 100%; }
.mgpcol1 .mgp_pos_box.left, .mgpcol1 .mgp_pos_box.right  {
	width: 100%;
}
}
.grid-item-mgp .et_pb_image_container img { width: 100% !important; height: auto !important; }
.grid-item-mgp-width2 .et_pb_image_container img { width: 100% !important; height: auto !important;  }
/* Transition effect for images */
.mgp_pos_box, .mgp_pos_box .et_pb_image_container {
overflow: hidden;
}
.mgp_pos_box img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.mgp_pos_box:hover img {
	-webkit-transform: scale(1.3);
	transform: scale(1.3);
}
.mgp_pos_box a {
	overflow: hidden!important;
}
/*** Filter masonry grif blog ***/
.et_pb_mgp_filters {
    clear: both;
    margin: 0 0 20px 0;
}
.et_pb_mgp_filters ul {
    list-style-type: none !important;
}
.et_pb_mgp_filters li {
    float: left;
    font-size: 14px;
    line-height: 1em;
}
.et_pb_mgp_filters li a {
    display: block;
    overflow: hidden;
    height: auto;
    margin: -1px -1px 0 0;
    padding: 10px 20px;
    border: 1px solid #e2e2e2;
    color: #666;
    background-color: #fff;
}
.et_pb_mgp_filters li a.active {
    color: #82c0c7;
    background-color: #f9f9f9;
}
.et_pb_mgp_filters li:first-child a {
    -webkit-border-radius: 3px 0 0 3px;
    -moz-border-radius: 3px 0 0 3px;
    border-radius: 3px 0 0 3px;
}
/* Dark layout */
.mgp_blog_grid.dark .et_pb_mgp_filters li a {
	border: 1px solid #333;
	color: #ccc;
	background-color: rgba(0,0,0,0.85);
}
.mgp_blog_grid.dark .et_pb_mgp_filters li a.active {
	color: #82c0c7;
	background-color: rgba(51,51,51,1);
}
/*** Default padding for grid item ***/
.grid-item-mgp article {
    padding: 20px;
}
/*** Show moduke in frontend visual builder ***/
/* Hide content */
.et-fb .et_pb_mgp_blog_grid {
	/*	display: none!important;*/
	visibility: hidden!important;
	height: 80px!important;
	overflow: hidden;
}
.et-fb .et_pb_mgp_blog_grid::before {
	content: "4DIVI Masonry Custom Post module";
	display: block!important;
	color: #FFFFFF;
	font-size: 18px;
	visibility: visible!important;
	background-color: #663366;
	text-align: center;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	padding-top: 1em;
	padding-bottom: 1em;
}
