.dmg-gallery .dmg-gallery-sizer,
.dmg-gallery .dmg_masonry_gallery_item { position: absolute !important;line-height: 0 !important; overflow: hidden; }
.dmg-gallery .dmg_masonry_gallery_item img { width: 100%; height: auto;line-height: 0 !important; }
.dmg-gallery .dmg_masonry_gallery_item:hover .et_overlay { z-index: 3; opacity: 1; }
.dmg-gallery .dmg_masonry_gallery_item:hover .et_overlay::before { top: 50%; }
.dmg_masonry_gallery.et_pb_with_border .dmg_masonry_gallery_item { border: 0 solid #333; }
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	/*background-color: rgba(0, 0, 0, 0.4);*/
	color: white;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 5px;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay-title, .dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay-caption { line-height: 1em; }
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-with-animation {
	transition: ease all 0.35s;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-with-animation > div{
    transition: ease all 0.45s;
    opacity: 0;
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-with-animation > div{
    opacity: 1;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-no-animation {
	opacity: 0;
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-no-animation {
	opacity: 1;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay > div {
	width: 100%;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-fade-in {
	opacity: 0;
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-fade-in {
	opacity: 1;
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-left-enter {
	transform: translateX(-100%);
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-left-enter {
	transform: translateX(0);
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-right-enter {
	transform: translateX(100%);
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-right-enter {
	transform: translateX(0);
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-top-enter {
	transform: translateY(-100%);
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-top-enter {
	transform: translateY(0);
}
.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-bottom-enter {
	transform: translateY(100%);
}
.dmg-gallery .dmg_masonry_gallery_item:hover .dmg-img-overlay.dmg-bottom-enter {
	transform: translateY(0);
}

.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-visible-top {
	bottom: initial; padding-top: 10px; padding-bottom: 10px;
}

.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-visible-top>div { opacity: 1; }

.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-visible-bottom {
	top: initial; padding-top: 10px; padding-bottom: 10px
}

.dmg-gallery .dmg_masonry_gallery_item .dmg-img-overlay.dmg-visible-bottom>div { opacity: 1; } 

.mfp-container.dmg-modal-in-data .mfp-title {
    background-color: rgba(0,0,0,0.4);
    transform: translateY(-100%);
    text-align: center;
    margin-top: -4px;
    padding-bottom: 10px;
    padding-top: 5px;
}

.dmg-gallery-wrapper {}

/*Categories*/

ul.dmg-gallery-filter-categories {
    list-style: none;
    padding: 0;
    text-align: center;
}
li.dmg-gallery-filter {
    color: #fff;
    background-color: #000;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px;
    line-height: normal;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    cursor: pointer;
    border-style: solid;
}

/*Paginación*/
ul.dmg-gallery-pagination {
    list-style: none;
    padding: 0;
    text-align: center;
}
li.dmg-gallery-page-button {
    color: #fff;
    background-color: #000;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px;
    line-height: normal;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    cursor: pointer;
    border-style: solid;
}

li.dmg-gallery-page-button.dmg-gallery-page-button-active {
    color: #000;
    background-color: #fff;
}

li.dmg-gallery-page-button.dmg-page-disabled {
	display: none;
}

.dmg_masonry_gallery_item.dmg-out-page {
	display: none;
}