.certificates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  margin-top: 3rem;

  .certificate-item {
    position: relative;
    background-color: var(--color-fg-8);
    border-radius: 5px;
    box-shadow: 1px 1px 20px rgba(0, 0, 0, .1);
    transition: all .4s ease-in-out;

    &:hover {
      box-shadow: 1px 1px 20px rgba(0, 0, 0, .3);
      transform: translateY(-5px);
      transition: all .4s ease-in-out;

      img {
        filter: grayscale(0);
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
      }
    }

    img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      filter: grayscale(100%);
      transition: all .4s ease-in-out;
    }

    .certificate-name {
      margin-top: -7px;
      padding: 1.1rem;
      border-top: 8px solid var(--color-fg);

      h4 {
        font-size: 1.5rem;
        margin-bottom: .7rem;
        transition: all .4s ease-in-out;
        cursor: pointer;

        &:hover {
          color: var(--color-fg);
        }
      }

      p {
        color: var(--color-fg-2);
        line-height: 2rem;
        padding-bottom: 1rem;
      }
    }
  }
}


@media screen and (max-width: 1250px) {
  .certificates {
    grid-template-columns: repeat(1, 1fr);
    /*margin-top: 5rem;*/
    /*margin-bottom: 5rem;*/
  }

  /*#certificates {*/
  /*  margin-top: 5rem;*/
  /*  margin-bottom: 5rem;*/
  /*}*/
}


