.gallery-error {
    padding: 30px;
}
/* GALLERY */
.gallery_container {
    display: flex;
    flex-flow: wrap;
    gap: 15px;
}
.gallery_container .gallery-item {
    position: relative;
    height: 352px;
    background: linear-gradient( 270deg, #ddd, #eee, #ddd, #eee);
    background-size: 800% 800%;
    animation: loading 1s linear infinite;
    box-shadow: 0 0 48px -24px #0009;
    cursor: pointer;
    overflow: hidden;
}
.gallery-item.hide {
    display: none;
}
.gallery-item.large {
    width: calc(67.6% - 15px)
}
.gallery-item.square {
    width: 32.4%;
}
.gallery_container .gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all .3s ease-in-out;
}
.gallery_item_thumbnail {
    min-width: 100%;
    height: 100%;
}
.gallery_item_thumbnail i {
    position: absolute;
    top: 1em;
    right: 1em;
    color: #fff;
    filter: drop-shadow(2px 2px 8px #000);
    z-index: 8;
}
.gallery_item_thumbnail::after {
    content: '\f00e';
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    font-family: "Font Awesome 5 Free";
    font-size: 30px;
    font-weight: 600;
    background-color: #fff3;
    color: #DDD5C3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
    cursor: pointer;
    z-index: 9;
}
.gallery_item_thumbnail::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(144 76 64 / 82%);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
    cursor: pointer;
    z-index: 9;
}
.gallery_item_thumbnail:hover::before {
    opacity: 1;
    visibility: visible;
}
.gallery_item_thumbnail:hover::after {
    width: 70px;
    height: 70px;
    font-size: 36px;
    opacity: 1;
    visibility: visible;
}
.gallery_item_thumbnail:hover>img {
    transform: scale(1.1);
}
@keyframes loading {
    0% { background-position: 0% 50%; }
    100% { background-position: 75% 50%; }
}

/* MODAL */

.full_modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0009;
}
body.admin-bar .full_modal {
    padding-top: 32px;
}
.full_modal.open {
    opacity: 1;
    visibility: visible;
}
.close-gallery-modal {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 25px;
    z-index: 99999;
    color: #fff9;
    filter: drop-shadow(0px 0px 8px #0009);
}
body.admin-bar .close-gallery-modal {
    top: calc(8px + 32px);
}
.et_builder_inner_content.on_modal {
    z-index: 99999;
}
.modal_media_container {
    display: inline-flex;
    width: 85%;
    box-shadow: 0 0 10px -5px #000;
}
.modal_media_container video {
    width: 100%;
    height: auto;
}
.full_modal .modal_media_container img {
    opacity: 0;
    transition: all .3s ease-in-out;
}
.full_modal.open .modal_media_container img {
    opacity: 1;
}

/* FILTER */

.gallery_filter ul {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: center;
    padding: 0 0 60px;
}
.gallery_filter ul li:not([data-category=all]) {
    min-width: 180px;
}
@media (max-width: 980px) {
    .gallery-item.large {
        width: calc(57.6% - 15px);
    }
    .gallery-item.square {
        width: 42.4%;
    }
}
@media (max-width: 767px) {
    .gallery_container {
        gap: 12px;
    }
    .gallery_container .gallery-item {
        width: calc(50% - 6px);
        height: 12em;
    }
    .gallery_filter ul {
        justify-content: flex-start;
    }
    .gallery .gallery_filter ul li {
        min-width: unset;
        margin: unset;
        margin-inline-end: 10px;
        margin-block-end: 10px;
    }
}

