/*--------------------------------------------------------------
# Gallery2 vers.2  / ex Portfolio
--------------------------------------------------------------*/
.gallery #gallery-flters {
  padding: 0;
  margin: 0 auto 15px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
}

.gallery #gallery-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.gallery #gallery-flters li:hover, .gallery #gallery-flters li.filter-active {
  color: var(--maincol1); /* #106eea ?= light blue */
}

.gallery #gallery-flters li:last-child {
  margin-right: 0;
}

.gallery .gallery-item {
  margin-bottom: 30px;
}

.gallery .gallery-item .gallery-info {
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  /* background: rgba(255, 255, 255, 0.9); */
  background: rgba(var(--maincol1rgb), 0.9);
  padding: 15px;
}

.gallery .gallery-item .gallery-info h4 {
  font-size: 12px; /* 18 w/no font */
  color: #fff;
  font-weight: 600;
  /* color: #222222; */
  color: #ffffff;
  font-family: "Poppins", sans-serif;
}

/* the link to other page */
.gallery .gallery-item .gallery-info p {
  color: #fff; /* #555555 gris */
  font-size: 14px;
  margin-bottom: 0;
}

.gallery .gallery-item .gallery-info .preview-link, .gallery .gallery-item .gallery-info .details-link {
  position: absolute;
  right: 40px;
  font-size: 24px;
  top: calc(50% - 18px);
  color: #fff; /* #3c3c3c ?= gris */
}

.gallery .gallery-item .gallery-info .preview-link:hover, .gallery .gallery-item .gallery-info .details-link:hover {
  /* color: var(--maincol1);  #106eea ?= light blue */
  font-size: 28px;
  transition: all ease-in-out 0.3s;
}

.gallery .gallery-item .gallery-info .details-link {
  right: 10px;
}

.gallery .gallery-item .gallery-links {
  opacity: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
}

.gallery .gallery-item .gallery-links a {
  color: #fff; /* #888 ??*/
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.gallery .gallery-item .gallery-links a:hover {
  color: #fff; /* #6ba7f5 ??*/

}

.gallery .gallery-item:hover .gallery-info {
  opacity: 1;
  bottom: 20px;
}
