.block-14 {
  width: 100%;
  padding: 30px 0;
}
.block-14-grid {
  display: flex;
  flex-direction: column;
  grid-gap: 30px;
}
.block-14-grid .grid__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}
@media (max-width: 992px) {
  .block-14-grid .grid__top {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
  }
}
@media (max-width: 480px) {
  .block-14-grid .grid__top {
    grid-template-columns: repeat(1, 1fr);
  }
}
.block-14-grid .grid__top .grid__card {
  display: flex;
  flex-direction: column;
  grid-gap: 10px;
  position: relative;
  overflow: hidden;
}
.block-14-grid .grid__top .grid__card:hover .card__img a img {
  transform: scale(1.2);
}
.block-14-grid .grid__top .grid__card .card__img {
  width: 100%;
  height: 400px;
  position: relative;
}
@media (max-width: 992px) {
  .block-14-grid .grid__top .grid__card .card__img {
    height: 250px;
  }
}
.block-14-grid .grid__top .grid__card .card__img a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.block-14-grid .grid__top .grid__card .card__img a img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: scale(1.01);
  transition: all 1s ease-in-out;
}
.block-14-grid .grid__top .grid__card .card__details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 10;
}
@media (max-width: 575px) {
  .block-14-grid .grid__top .grid__card .card__details {
    padding: 15px;
  }
}
.block-14-grid .grid__top .grid__card .card__details .card__title {
  margin-bottom: 0;
  color: white;
  font-size: 22px;
  font-weight: 500;
  transition: all 300ms ease-in-out;
  position: relative;
}
@media (max-width: 767px) {
  .block-14-grid .grid__top .grid__card .card__details .card__title {
    font-size: 20px;
  }
}
@media (max-width: 575px) {
  .block-14-grid .grid__top .grid__card .card__details .card__title {
    font-size: 18px;
  }
}
.block-14-grid .grid__top .grid__card .card__details .card__title::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100px;
  height: 4px;
  background: #ccc;
  transition: all 300ms ease-in-out;
}
@media (max-width: 575px) {
  .block-14-grid .grid__top .grid__card .card__details .card__title::before {
    height: 3px;
    top: -15px;
  }
}
.block-14-grid .grid__top .grid__card .card__details .card__title:hover {
  opacity: 0.7;
}
.block-14-grid .grid__top .grid__card .card__details .card__title:hover::before {
  width: 150px;
}
.block-14-grid .grid__top .grid__card .card__details .card__title a {
  color: inherit;
  line-height: 1.2;
}
