.projects * {
  font-family: "Montserrat", sans-serif;
}
.projects {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-accent);

  .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .projects-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
  }
  .written p {
    line-height: max(1.3rem, min(3vw, 4rem));
    font-size: max(1rem, 1.5vw);
    padding: max(1rem, 1vw) 0;
  }

  .project-card {
    border-bottom: 1px solid var(--border-accent);
    width: 100%;
  }

  .project-card:last-child {
    border-bottom: none;
  }
  .source-link:hover {
    scale: 1.1;
  }
  .dots {
    font-size: 1.5rem;
    display: inline;
  }
  .continue-reading-link {
    padding: 1rem 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    display: inline;
  }

  .continue-reading-link:hover {
    scale: 1.1;
  }

  .image-container a {
    background: white;
    border: solid 2px transparent;
    border-radius: var(--border-radius);
    color: black;
    padding: 1rem 2rem;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    box-shadow: 2px 4px 4px 0px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
  }

  .source-link {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    width: fit-content;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
  }

  @media only screen and (min-width: 768px) {
    .image-container {
      width: 40vw;
      height: 40vw;
      border-radius: 3rem;
      filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.25));
      position: relative;
    }

    .written {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      max-width: 45vw;
    }

    .source-link p {
      color: var(--accent);
    }

    .source-link {
      flex-direction: row;
    }
    .source-link svg {
      width: 4rem;
      height: 4rem;
      fill: var(--accent);
    }
    .project-card {
      display: flex;
      gap: 5rem;
      margin: 2rem 0;
      padding: 2rem 5rem 5rem 5rem;
    }
    .project-card:nth-child(2n) {
      flex-direction: row-reverse;
    }
    .image-container:hover a {
      scale: 1.2;
    }
  }

  @media only screen and (max-width: 768px) {
    .image-container {
      width: 70vw;
      height: 70vw;
      border-radius: 3rem;
      filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.25));
      position: relative;
      margin: 0 auto;
    }

    .source-link {
      background: var(--accent-gradient);
      border-radius: 15px;
      width: 100%;
      text-decoration: none;
      margin: 1rem 0;
      padding: 0.5rem 1rem;
      transition: all var(--transition-speed) ease;
    }
    .source-link svg {
      width: 3rem;
      height: 3rem;
      fill: var(--text-primary);
    }
    .project-card {
      display: flex;
      flex-direction: column;
      gap: 5rem;
      margin: 2rem 0;
      padding: 2rem;
    }
  }
}

.project-page {
  .image-container {
    width: 70vw;
    height: 70vw;
    border-radius: 3rem;
    filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.25));
    position: relative;
    margin: 0 auto;
  }

  .image-container {
    max-width: 800px;
    max-height: 800px;
  }
  .source-link {
    width: fit-content;
    text-decoration: none;
    margin: 1rem 0;
    padding: 1rem 1rem;
    transition: all var(--transition-speed) ease;
  }
  .source-link svg {
    width: 3rem;
    height: 3rem;
    fill: var(--accent);
  }

  @media only screen and (min-width: 768px) {
    .written {
      max-width: 90vw;
    }
  }
  @media only screen and (max-width: 768px) {
    .source-link {
      width: 100%;
    }

    .written {
      max-width: 90vw;
    }
    .source-link svg {
      fill: var(--text-primary);
    }
  }
  .project-card {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin: 2rem 0;
  }
}
