#portfolio {
  background-color: #f6f6f6;
  padding-bottom: 0;
}

#filters {
  padding-top: 50px !important;
  padding: 0;
  margin: 0 auto;
  padding-top: 0px;
  padding-bottom: 5px;
  float: none;
  list-style: none;
  text-align: center;
}

#filters li {
  display: inline-block;
  margin: 5px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  padding: 2px 20px;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  transition: 0.5s;
}

#filters li:hover,
#filters li.active {
}

#portfolio-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 50px auto 50px auto;
}

#portfolio-grid:before,
#portfolio-grid:after {
  content: " ";
  display: table;
}

#portfolio-grid:after {
  clear: both;
}

#portfolio-grid li {
  width: 25%;
  float: left;
  display: none;
  opacity: 0;
  /* position: relative;*/
  overflow: hidden;
  cursor: pointer;
  line-height: 0;

  position: relative !important;
  margin: 5px;
  color: #333 !important;
  list-style: inherit !important;
}
.three_half #portfolio-grid li {
  width: 33%;
}
.two_half #portfolio-grid li {
  width: 50%;
}
.one_half #portfolio-grid li {
  width: 20%;
}
#portfolio-grid li:hover .project-overlay {
  opacity: 1;
}

#portfolio-grid li img {
  width: 100%;
  transition: 0.8s ease;
}
#portfolio-grid li:hover img {
  transition: 0.8s ease;
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -ms-transform: scale(1.25);
  -o-transform: scale(1.25);
  transform: scale(1.25);
  transition: 0.8s ease;
}
.project-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  opacity: 0;
  transition: 1s ease;
  padding: 28% 20px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  text-transform: capitalize;
  font-weight: 300;
  line-height: 23px;
  letter-spacing: 0.02em;
  font-style: normal;
}
#portfolio-grid li:hover .project-overlay {
  cursor: pointer;
}
.project-overlay h3 {
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  font-weight: 400;
  text-decoration: none;
  font-size: 22px;
  text-transform: capitalize;
  padding-bottom: 8px;
  margin: 0;
}

#filters li:hover,
#filters li.active,
#filters li .current {
  background: #5f0b1e !important;
  color: #fdf4d4 !important;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  transition: 0.2s;
}

/* =Media queries
-------------------------------------------------------------- */

/* gallery section */
#portfolio-grid li:hover .gallery-overlay {
  cursor: pointer;
}
#portfolio-grid li:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  opacity: 0;
  transition: 0.2s ease;
  background: rgba(0, 0, 0, 0) url(../../images/link.png) center no-repeat;
}
#portfolio-grid li:hover .gallery-overlay {
  display: block;
}

/* // gallery section */

.imageoverlay {
  display: none;
  opacity: 0;
}
.overlayshow {
  overflow: hidden;
  z-index: 99;

  display: flex !important;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px;
  width: 92vmin;

  background-color: #fdf4d4;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.opacity {
  opacity: 1;
}
.overlayinner {
  margin: auto;
  width: 100%;
  height: auto;
}
.overlayinner img {
  width: 100%;
  height: auto;
}
.overlaybottom {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.imagetitle {
  font-size: 12px;
  color: #5f0b1e;
}
.imagetitle {
  padding-left: 10px;
}
.closebutton {
  padding-right: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}
@media (max-width: 991px) {
  #portfolio-grid li {
    width: 40%;
  }
}

@media (max-width: 479px) {
  #portfolio-grid li {
    width: 100%;
  }
  .mix {
    cursor: none;
    pointer-events: none;
  }
}
