.grid-list {
  .grid-item {
    text-align: center;
    margin-bottom: 40px;

    @include media-breakpoint-down(sm) {
      &:nth-child(odd) {
        border-right: 1px solid $gray;
      }

      &:last-of-type {
        border-right: 0;
      }
    }

    @include media-breakpoint-up(md) {
      &:not(:nth-child(3n)) {
        border-right: 1px solid $gray;
      }

      &:last-of-type {
        border-right: 0;
      }
    }

    img {
      max-width: 100%;
    }

    a {
      display: block;
    }

    &__title {
      font-weight: 700;
      font-size: 1rem;
      line-height: 24px;
      margin-bottom: 8px;
    }

    &__content {
      margin-top: 10px;
    }
  }
}
