/* .et-db #et-boc .et-fb-modules-list ul>li.ds_masonry_gallery {
    background-color: #2c3d49 !important;
    color: white !important;
    overflow: visible !important;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.et-db #et-boc .et-fb-modules-list ul>li.ds_masonry_gallery span {
    font-size: 10px !important;
} */

.ds_masonry_gallery,
.ds_masonry_gallery .grid-item {
    overflow: hidden !important;
    border-style: solid;
}

.ds_masonry_gallery .grid-item.hidden {
    display: none;
}

.ds_masonry_gallery .ds-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    padding: 12px;
}

.ds_masonry_gallery .ds-pagination.long-mobile {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    mask-image: linear-gradient(to right, rgb(0, 0, 0) 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, rgb(0, 0, 0) 86%, transparent 100%);
}

.ds_masonry_gallery .ds-pagination .ds-pagination-btn {
    font-weight: bold;
    cursor: pointer;
    border-style: solid;
    padding: 5px 12px;
    flex-shrink: 0;
}

.ds_masonry_gallery .ds-pagination .ds-pagination-btn.active {
    border-style: solid;
    background: #ff4200;
    color: #ffffff;
}

.ds_masonry_gallery .ds-loadmore-btn {
    cursor: pointer;
    border-style: solid;
    padding: 5px 12px;
}

.watch_end_of_grid {
    min-height: 10px;
    margin: 0;
}

@media(max-width: 980px) and (min-width: 768px) {
    .ds_masonry_gallery .grid-item.tablet_show {
        display: block;
    }

    .ds_masonry_gallery .grid-item.tablet_hidden {
        display: none;
    }
}

@media(max-width: 767px) {
    .ds_masonry_gallery .grid-item.phone_show {
        display: block;
    }

    .ds_masonry_gallery .grid-item.phone_hidden {
        display: none;
    }
}

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

.ds_masonry_gallery_overlay {
    /* z-index: -1; */
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.ds_masonry_gallery_overlay.background {
    /* background: rgba(21,2,42,0.3); */
    -webkit-transition: all .6s;
    opacity: 1;
    transition: all .6s;
}

.ds_masonry_gallery_overlay.background-hover {
    /* background: rgba(21,2,42,0.3); */
    -webkit-transition: all .6s;
    opacity: 0;
    transition: all .6s;
}

.ds_masonry_gallery_overlay.content {
    background: transparent;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.et_pb_gallery_image:hover .ds_masonry_gallery_overlay.background {
    opacity: 0;
}

.et_pb_gallery_image:hover .ds_masonry_gallery_overlay.background-hover,
.et_pb_gallery_image:hover .ds_masonry_gallery_overlay.content {
    opacity: 1;
    z-index: 3;
}

.ds-mansonry-gallery-icon-circle {
    padding: 15px;
    border-radius: 100%;
}

.ds_masonry_gallery .ds-mansonry-gallery-icon-circle-border,
.ds_masonry_gallery.et_pb_with_border .ds-mansonry-gallery-icon-circle-border {
    border: 2px solid;
}

.ds_masonry_gallery .grid.hide_lightbox .grid-item>.img-container {
    cursor: auto;
}

.ds_masonry_gallery .grid.show_lightbox .grid-item>.img-container {
    cursor: pointer;
}

.ds-mansonry-gallery-icon {
    margin-bottom: 20px;
}

.ds_masonry_gallery .grid.show_overlay .ds_masonry_gallery_overlay {
    display: flex;
}

.ds_masonry_gallery .grid.hide_overlay .ds_masonry_gallery_overlay {
    display: none;
}

@media (max-width: 980px) {
    .ds_masonry_gallery .grid.show_overlay_tablet .ds_masonry_gallery_overlay {
        display: flex;
    }

    .ds_masonry_gallery .grid.hide_overlay_tablet .ds_masonry_gallery_overlay {
        display: none;
    }

    .ds_masonry_gallery .grid.hide_lightbox_tablet .grid-item>.img-container {
        cursor: auto;
    }

    .ds_masonry_gallery .grid.show_lightbox_tablet .grid-item>.img-container {
        cursor: pointer;
    }
}

@media (max-width: 767px) {
    .ds_masonry_gallery .grid.show_overlay_phone .ds_masonry_gallery_overlay {
        display: flex;
    }

    .ds_masonry_gallery .grid.hide_overlay_phone .ds_masonry_gallery_overlay {
        display: none;
    }

    .ds_masonry_gallery .grid.hide_lightbox_phone .grid-item>.img-container {
        cursor: auto;
    }

    .ds_masonry_gallery .grid.show_lightbox_phone .grid-item>.img-container {
        cursor: pointer;
    }
}

body.noscroll {
    overflow: hidden;
}

.img-container.ds-mg-animation img {
    transition: all ease-in-out;
    transition-duration: .5s;
}

.img-container.ds-mg-animation.ds-mg-zoom-in:hover img {
    transform: scale(1.05);
}

.img-container.ds-mg-animation.ds-mg-zoom-out img {
    transform: scale(1.05);
}

.img-container.ds-mg-animation.ds-mg-zoom-out:hover img {
    transform: scale(1);
}

.img-container.ds-mg-animation.ds-mg-move-up img {
    transform: scale(1.1);
}

.img-container.ds-mg-animation.ds-mg-move-up:hover img {
    transform: scale(1.1) translateY(-10px);
}

.img-container.ds-mg-animation.ds-mg-move-down img {
    transform: scale(1.1);
}

.img-container.ds-mg-animation.ds-mg-move-down:hover img {
    transform: scale(1.1) translateY(10px);
}

.img-container.ds-mg-animation.ds-mg-move-right img {
    transform: scale(1.1);
}

.img-container.ds-mg-animation.ds-mg-move-right:hover img {
    transform: scale(1.1) translateX(10px);
}

.img-container.ds-mg-animation.ds-mg-move-left img {
    transform: scale(1.1);
}

.img-container.ds-mg-animation.ds-mg-move-left:hover img {
    transform: scale(1.1) translateX(-10px);
}

.img-container.ds-mg-animation.ds-mg-rotate img {
    transform: scale(1.1);
}

.img-container.ds-mg-animation.ds-mg-rotate:hover img {
    transform: scale(1.2) rotate(5deg);
}
