.elegantgallery-item, .elegantgallery-item-size {
    width: 25%;
}

.elegantgallery-item-thumb {
    margin: 0 auto;
    border-style: solid;
    opacity: 1 !important;
}

.elegantgallery-filter-wrapper span {
    background-color: #222;
    color: #fff;
    padding: 0.5em 1em;
    margin: 10px;
    display: inline-block;
    cursor: pointer;
}

span.elegantgallery-filter-active {
    cursor: not-allowed;
}

.elegantgallery-filter-wrapper {
    display: inline-block;
    text-align: center;
    width: 100%;
    clear: both;
    margin-bottom: 50px;
}

span.elegantgallery-filter-button {
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    border-style: solid;
}

.elegantgallery-popup .mfp-figure:after {
    background-color: transparent;
    box-shadow: none;
}


.elegantgallery-popup .mfp-title {
    
    background-color: rgba(0,0,0,.5);
}

.elegantgallery-popup .mfp-title {
    padding-right: 0;
}

.elegantgallery-popup .mfp-title-inner {
    padding: 20px;
}

.elegantgallery-popup .mfp-img {
    padding: 20px;
}

.mfp-elegantgallery-popup-content {
    position: absolute;
    top: auto;
    left: 20px;
    width: calc(100% - 40px);
    bottom: 20px;
}

.elegantgallery-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
.elegantgallery-none-overlay figcaption {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.elegantgallery-item-popup {
    cursor: pointer;
}

.elegantgallery-item-icon {
    font-family: 'ETmodules';
    padding: 0.2em;
}

.elegantgallery-item figure {
    display: block;
    float: left;
}
/*
.elegantgallery-item figure, .elegantgallery-item figure:before, .elegantgallery-item figcaption,  .elegantgallery-item:hover figcaption:before, 
 .elegantgallery-item:hover figcaption:after, .elegantgallery-item:hover figure:after {
    background-color: transparent;
}
*/

.elegantgallery-item [class^='imghvr-'],
.elegantgallery-item [class*=' imghvr-'],
.elegantgallery-item [class*=' imghvr-'] figcaption:after, 
.elegantgallery-item [class*=' imghvr-'] figcaption:before, 
.elegantgallery-item [class*=' imghvr-']:after, 
.elegantgallery-item [class*=' imghvr-']:before, 
.elegantgallery-item [class^=imghvr-] figcaption:after, 
.elegantgallery-item [class^=imghvr-] figcaption:before, 
.elegantgallery-item [class^=imghvr-]:after, 
.elegantgallery-item [class^=imghvr-]:before,
.elegantgallery-item [class*=' imghvr-'] figcaption, 
.elegantgallery-item [class^=imghvr-] figcaption,
.elegantgallery-item [class*=' imghvr-']:before, 
.elegantgallery-item [class^=imghvr-]:before
{
    background-color: transparent;
}