/* BEGIN b-card-8 */
.b-card-8 {
  display: block;
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 2px 2px 0 rgba(17, 17, 17, 0.14), 0 3px 1px -2px rgba(17, 17, 17, 0.2), 0 1px 5px 0 rgba(17, 17, 17, 0.12);
}
.b-card-8::before, .b-card-8::after {
  content: '';
  color: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  transition: all 0.5s linear;
}
.b-card-8::before {
  width: calc(100% - 2px);
  height: 100%;
  border-left: 1px solid;
  border-right: 1px solid;
  -webkit-transform: scale(1, 0);
  transform: scale(1, 0);
}
.b-card-8::after {
  width: 100%;
  height: calc(100% - 2px);
  border-top: 1px solid;
  border-bottom: 1px solid;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
}
.b-card-8:hover::after, .b-card-8:hover::before {
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
  color: var(--color-main);
}
.b-card-8 .b_thumb {
  border: 5px solid #fafafa;
}
.b-card-8 .b_title {
  background: #ffffffd6;
  font-size: 15px;
  line-height: 1.334em;
  padding: 16px 10px 10px;
  text-align: center;
  text-transform: uppercase;
  width: calc(100% - 2px);
  z-index: 2;
  position: absolute;
  bottom: 1px;
  left: 1px;
  transition: ease-in .5s;
}
.b-card-8 .b_title:hover {
  color: #f60;
}
.b-card-8 .b_desc{
  position: absolute;
  bottom: 8px;
  background: #fff;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  padding: 4px 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  transition: ease .5s;
  line-height: 1.6;
}
.b-card-8:hover .b_desc {
  opacity: 1;
  visibility: visible;
}
.b-card-8:hover .b_title {
  transform: translateY(-56px);
  color: var(--color-main);
  font-weight: bold;
}
/* END b-card-8 */