.portfolio-filters li.filter:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 16px;
    left: 20px;
    right: 20px;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

.portfolio-filters li.filter:before {
    bottom: -2px;
    left: 0px;
    right: 0px;
}

.portfolio-filters li.filter:hover:before{
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);

}

.filter-wrapper {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.filter-wrapper.blog {
    margin-top: 0;
}

#portfolio-wrapper {
    margin: 3em 0;
}

.filters-inside {
    position: relative;
    display: inline-block;
}

.open .filters-inside {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio-filters {
    display: inline-block;
    padding-right: 2.5rem;
    text-align: right;
}

.open .portfolio-filters {
    opacity: 1;
}


.portfolio-filters li {
    position: relative;
    display: inline-block;
    margin: 0 1em;
    padding-top: 10px;
    line-height: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0, 0, 0, 0.0)
}

.portfolio-filters li.current {
    border-bottom: 2px solid;
}

.filters-inside .label {
    position: absolute;
    line-height: 18px;
    right: 100%;
    padding-right: 1.5em;
}

.filters-inside .label {
    padding-top: 10px;
    display: inline-block;
    font-weight: 700;
}



.label span::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: -1.5em;
    bottom: 3px;
}

.portfolio-filters li a {
    text-transform: uppercase;
    font-weight: 700;
}

.filter-menu {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 10px;
    text-align: right;
    line-height: 3rem;
    cursor: pointer;
    font-size: 1.5em;
}

.filter-wrapper.open .filter-menu::before {
    font-family: fontAwesome;
    content: "\f00d";
    padding-right: 5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.filter-wrapper .filter-menu::before {
    font-family: fontAwesome;
    content: "\f03a";
    padding-right: 5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#portfolio-gallery {
    font-size: 0;
    overflow: initial!important;
    margin-right: -75px;
}
.gal-item {
    display: inline-block;
    width: calc(50% - 75px);
    margin-right: 75px;
    margin-bottom: 75px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    vertical-align: top;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 1px 3px 10px 0px rgba(0, 0, 0, 0.31);
}

.gal-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gal-item::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0;
  border-radius: 5px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease-in-out;
}

.gal-item:hover::after {
  opacity: 1;
}

.gal-item.square::before {
    content: "";
    display: block;
    padding-top: 100%;  /* initial ratio of 1:1*/
}

.gal-item.mozaic::before {
    content: "";
    display: block;
    padding-top: 75%;   /* initial ratio of 4:3*/
}

.gal-item img {
    vertical-align: top;
    border-radius: 4px;
}

.hover-descr-container  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 4px;
    transition: opacity 300ms ease-out;
}


.gal-item:hover .hover-descr-container,
.gal-item.hover .hover-descr-container {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;

}
.gal-item .button {
    display: block;
    margin: 10px auto;
    padding: 0 10px!important;
    min-width: 80px;
    border-radius: 3px;
    color: #fff!important;
    transition: background-color .5s;
    background: transparent;
    text-transform: uppercase;
    border: 2px solid #ffffff!important;
    width: 220px;
    line-height: 3em!important;
    font-size: 14px!important;
    height: auto;
    font-weight: 400;
    text-align: center;
}

.gal-item .button.edd-submit {
    background-color: #ff3284!important;
    box-shadow: none!important;
}

.gal-item .button:hover {
    color: #404040!important;
    background-color: #fff!important;
}

.gal-item .et_pb_button:after {
    content:none;
}

.gal-item .et_pb_button:hover,
.gal-item .et_pb_module .et_pb_button:hover {
    padding: 0 10px;
}

.content-area .edd-submit.button {
    border-radius: 0!important;
    background: #2a81c1!important;
    color: white;
}

.content-area .edd-submit.button:hover {
    background: #125586!important;
}

.content-area .edd-submit i {
    padding-right: 4px;
}


.content-area .buy {
    background: none;
}

.content-area button i {
    padding-right: 5px;
}

.edd_purchase_submit_wrapper {
    text-align: center;
}

/*.gal-item .edd-submit.button.active, .gal-item .edd-submit.button:not(.buy):not(.more):focus, .gal-item .edd-submit.button:not(.buy):not(.more):hover {
    color: inherit;
    background: none!important;
    border-color: transparent!important;
}*/


a.edd-add-to-cart .edd-add-to-cart-label {
    padding-left: 5px;
    transition: opacity 0.3s, -webkit-transform 0.3s!important;
    transition: transform 0.3s, opacity 0.3s!important;
    transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s!important;
}

.hover-content {
    position: absolute;
    top: 50%;
    width: 100%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    z-index: 1;
}


.gal-item h3 {
    font-size: 1.5em;
    text-align: center;
    font-size: 1.3em;
    text-align: center;
    margin-top: 0em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0;
    font-weight: 700;
}

.gal-item h3,
.gal-item p {
    position: relative;
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    transition: opacity 600ms, -webkit-transform 0.5s;
    transition: transform 0.5s, opacity 600ms;
    transition: transform 0.5s, opacity 600ms, -webkit-transform 0.5s;
}

.button-container {
    opacity: 0;
    -webkit-transform: translate3d(0, 30px, 0);
    transform: translate3d(0, 30px, 0);
    transition: opacity 600ms, -webkit-transform 0.5s;
    transition: transform 0.5s, opacity 600ms;
    transition: transform 0.5s, opacity 600ms, -webkit-transform 0.5s;
}

.gal-item:hover h3,
.gal-item:hover p,
.gal-item:hover .button-container {
    -webkit-transform: translate3d(0, 0%, 0);
    transform: translate3d(0, 0%, 0);
    opacity: 1;
}
.hover-descr {
    color: white;
    text-align: center;
    margin-top: 0;
}

.bw .gal-item {
    -webkit-filter: grayscale(1);
    -o-filter: grayscale(1);
    filter: grayscale(1);
}

.view {
    display: inline-block;
    border-radius: 50%;
    border: 3px solid;
    width: 4em;
    height: 4em;
    line-height: 4em;
    font-size: 1.5em;
    background: transparent;
}


.hover-effect {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 500ms;
}

.gal-item:hover .hover-effect {
    opacity: 1;
}


.hover-effect a {
    color: #ffffff;
}

.hover-effect h3 {
    font-weight: 400;   
    font-size: 1.3em;
    line-height: 1.3em;
}



.hover-effect figcaption {
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: 0;
    right: 0;
    text-align: center;
}



.hover-effect h3 {
    font-weight: 400;   
    font-size: 1em;
    padding-left: 1em;
    line-height: 1em
}


.project-like,
.add-to-cart {
    position: absolute;
    top: 0em;
    right: 1.5em;
    line-height: 48px;
    color: #fff;
}

@media only screen and (max-width : 1366px) {
    #portfolio-gallery {margin-right: -30px;}
    .gal-item {
        width: calc(50% - 30px);
        margin-right: 30px;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width : 1024px) {
    #portfolio-gallery {margin-right: 0;}
    .gal-item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

