.er-terms-masonary-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.er-term-item-grid img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: all 0.4s ease;
}

.er-term-item-grid:hover img {
  transform: scale(1.1);
}

.er-term-item-grid:nth-child(1) {
  grid-row-start: 1;
  grid-row-end: 3;
}

.er-term-item-grid:nth-child(3) {
  grid-row: span 2;
}

.er-term-item-grid {
  border-radius: 4px;
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 150px;
}

.er-term-item-grid {
  border-radius: 5px;
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0px 0px 8px 0px rgb(0 0 0 / 5%);
}

.er-term-meta-abs {
  position: absolute;
  left: 10px;
  bottom: 25px;
  padding: 0px 15px;
  color: white;
  width: 100%;
  z-index: 12;
}

.er-term-overlay {
  background: linear-gradient(
    180deg,
    rgba(22, 42, 77, 0) 0%,
    rgba(22, 42, 77, 0.9) 100%
  );
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;

  z-index: 5;
}

a.er-cate-term-title {
  font-size: 32px;
  color: #ffff;
  font-weight: 600;
}

.er-cat-count-meta {
  font-size: 18px;
  font-weight: 400;
}

@media screen and (max-width: 400px) {
  .er-terms-masonary-wrapper {
    grid-template-columns: 1fr;
  }

  .er-term-item-grid {
    min-height: 250px;
  }
}

@media screen and (min-width: 401px) and (max-width: 800px) {
  .er-terms-masonary-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .er-term-item-grid:nth-child(1) {
    grid-row-start: 1;
    grid-row-end: 1;
  }

  .er-term-item-grid:nth-child(3) {
    grid-row: span 1;
  }
}

@media screen and (min-width: 801px) and (max-width: 1000px) {
  .er-terms-masonary-wrapper {
    grid-template-columns: 1fr 1fr 1fr 1fr;

    .er-term-item-grid:nth-child(1) {
      grid-row-start: 1;
      grid-row-end: 1;
    }

    .er-term-item-grid:nth-child(3) {
      grid-row: span 1;
    }
  }
}
