.dsm_masonry_gallery,
.dsm_masonry_gallery .grid-item {
	border-style: solid;
	line-height: 0;
}

.dsm_masonry_gallery .grid-item a {
	display: inline-block;
	line-height: 0;
}

.dsm_masonry_gallery .grid-item img {
	display: block;
	max-width: 100%;
}

.dsm_masonry_gallery .et_pb_image_wrap {
	display: inline-block;
	position: relative;
	max-width: 100%;
	line-height: 0;
	overflow: hidden;
}

.dsm_masonry_gallery .dsm-overlay:before,
.et-db #et-boc .et-l .dsm_masonry_gallery .dsm-overlay:before {
	content: none;
}

.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-inner {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.dsm_masonry_gallery .grid-item .dsm-overlay,
.et-db #et-boc .et-l .dsm_masonry_gallery .grid-item .dsm-overlay {
	border: 0;
	transition: all .4s;
}

.dsm_masonry_gallery .grid-item a,
.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-title,
.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-caption,
.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-desc {
	color: #ffffff;
}

.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-desc,
.dsm_masonry_gallery .grid-item .dsm-overlay .dsm-overlay-caption {
	line-height: 1.7em;
	padding: 0;
}

.dsm_masonry_gallery .grid-item:hover .dsm-overlay,
.et-db #et-boc .et-l .dsm_masonry_gallery .grid-item:hover .dsm-overlay {
	opacity: 1;
	z-index: 1;
}

.dsm_masonry_zoom_hover .grid-item:hover img {
	transition: transform .4s ease-in-out;
	transform: scale(1.2);
}

.dsm_masonry_zoom_hover .grid-item img {
	transition: transform .4s ease-in-out;
}