#features {
  padding-top: 90px;
  padding-bottom: 90px;
}

#features .site-heading {
  margin-bottom: 50px;
}

#features .site-title {
  font-size: 45px;
  text-transform: capitalize;
      line-height: 1.5;
}

#features .site-title-tagline {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--title-font-family);
}
#features .site-title-tagline::before {
  content: "";
  position: absolute;
  height: 10px;
  width: 100%;
  background: var(--color-primary);
  opacity: 0.2;
  left: -2px;
  bottom: 0;
}

#features .heading-divider {
  display: inline-block;
  position: relative;
  border: 3px solid var(--color-primary);
  width: 90px;
  height: 10px;
  border-radius: var(--button-radius);
}
#features .heading-divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 7px;
  width: 15px;
  border-radius: var(--button-radius);
  background: var(--color-primary);
  -webkit-animation: heading-move 5s infinite linear;
  animation: heading-move 5s infinite linear;
}
@-webkit-keyframes heading-move {
  0% {
    transform: translateX(-1px);
  }
  50% {
    transform: translateX(72px);
  }
  100% {
    transform: translateX(-1px);
  }
}
@keyframes heading-move {
  0% {
    transform: translateX(-1px);
  }
  50% {
    transform: translateX(72px);
  }
  100% {
    transform: translateX(-1px);
  }
}

#features .heading .divider-center {
  height: 4px;
  width: 70px;
  background: var(--color-primary);
  display: block;
  margin: 10px auto -2px;
}

#features .work-filter {
  display: none;
  margin-bottom: 25px;
}
#features .work-filter li {
  display: inline-block;
  border-radius: 20px;
  margin: 0 5px 8px 0;
  cursor: pointer;
  overflow: hidden;
}

#features .work-filter a {
  display: block;
  padding: 8px 25px;
  color: white;
  font-weight: 500;
  font-family: var(--title-font-family);
  text-transform: uppercase;
  background: #2c2d2e;
}
#features .work-filter a:hover,
#features .work-filter a.active {
  background-color: var(--color-primary);
}

#features .work-item {
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
}
#features .work-item.mix {
  display: none;
}

#features .item-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

#features .item-title a {
  margin-top: 15px;
  line-height: 1.3;
  font-size: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#features .item-container img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  -webkit-transition: all .5sease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5sease;
  overflow: hidden;
}
#features .item-container:hover img {
  opacity: 0.4;
  transform: scale3d(1.1, 1.1, 1);
}

#features .overlay {
  background-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
  position: absolute;
  opacity: 0;
  top: auto;
  left: 0;
  bottom: -100%;
  height: 100%;
  width: 100%;
  color: #fff;
  -webkit-transition: all .3s ease;
}
#features .item-container:hover .overlay {
  opacity: 1;
  bottom: 0;
}
#features .overlay-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  margin: 0;
  text-align: center;
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}
#features .overlay:hover .overlay-inner {
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

#features .overlay-inner a {
  display: block;
  margin-bottom: 20px;
}
#features .overlay-inner i {
  background: #fff;
  color: var(--color-primary);
  font-size: 15px;
  padding: 2px 5px;
  display: inline-block;
  border-radius: 5px;
}
#features .overlay-inner span {
  margin-left: 5px;
  color: #fff;
  font-weight: 700;
}

@media screen and (max-width:1239px) {
  #features .site-title {
    font-size: 40px;
  }
  #features .site-title-tagline {
    font-size: 17px;
  }
  #features .work-filter a {
    font-size: 15px;
  }
}

@media screen and (max-width:991px) {
  #features .site-title {
    font-size: 36px;
  }
  #features .site-title-tagline {
    font-size: 16px;
  }
  #features .work-filter a {
    font-size: 14px;
    padding: 8px 20px;
  }
  #features .gallery .col-1-4 {
    width: 50%;
  }
}

@media screen and (max-width:767px) {
  #features .site-title {
    font-size: 28px;
  }
  #features .site-title-tagline {
    font-size: 15px;
  }
  #features .site-heading {
    margin-bottom: 30px;
  }
  #features .work-filter {
    margin-bottom: 10px;
  }
  #features .work-filter li {
    margin: 0;
  }
  #features .work-filter a {
    padding: 5px 15px;
  }
  #features .work-item {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #features .item-title a {
    font-size: 18px;
    line-height: 1.2;
  }
}