#projects {
  display: none;

  .grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 1rem;
  }

  article {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-in-out;
    position: relative;
    overflow: hidden;

    &:hover {
      transform: rotate(2deg);
    }

    p {
      line-height: 1rem;
    }
  }

  #filter {
    display: flex;
    gap: 0.5rem;
    max-width: 90vw;
    overflow: auto;

    .item {
      background-color: var(--lighter);
      cursor: pointer;
      padding: 0.1rem 0.75rem;
      border: 2px solid rgba(0, 0, 0, 0.1);
      border-radius: 25px;
      text-align: center;
      font-size: 0.9rem;
    }

    .item.active {
      border-color: steelblue;
      color: steelblue;
    }
  }

  img {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  a {
    color: inherit;
    font-weight: 800;
    font-size: 1.4rem;
  }

  .tags {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;

    span {
      background-color: steelblue;
      padding: 0.1rem 0.5rem;
      border-radius: 6px;
      font-size: 0.8rem;
      letter-spacing: 1px;
      color: rgba(255, 255, 255, 0.9);
    }
  }

  .strip {
    text-align: center;
    position: absolute;
    width: 200px;
    color: white;
    rotate: 40deg;
    right: -2.5rem;
    top: 1.5rem;
    z-index: 2;
  }
}

body.dark #projects img {
  filter: brightness(0.7);
}

@media screen and (max-width: 500px) {
  #projects .grid {
    grid-template-columns: 1fr;
  }
}
