.cases_home {
  position: relative;

  &:hover {
    .cases_home__info {
      opacity: 1;
      bottom: 12px;
    }

    .cases_home__overlay {
      opacity: 1;
    }

    .cases_home_img {
      filter: grayscale(0);
    }
  }
}

.cases_home__xl {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cases_home__info {
  position: absolute;
  z-index: 1;
  opacity: 0;
  left: 12px;
  bottom: 0;
  transition:
    bottom ease-in-out 150ms,
    opacity ease-in-out 150ms;
  padding: 12px;
  background-color: #fcf8f1;
}

.cases_home__info p {
  color: var(--body);
  font-size: 12px;
}

.cases_home__info p.h5 {
  font-size: 16px;
}

@media (max-width: 991px) {
  .cases_home__info {
    opacity: 1;
    bottom: 12px;
  }
  .cases_home__xl {
    position: relative;
  }
}
