.project-page {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.project-intro {
  margin: 20px 0 0;
}

.project-intro h1 {
  margin: 0 0 34px;
}

.project-cover {
  display: block;
  width: 800px;
  height: 600px;
  object-fit: cover;
  margin: 75px auto 0;
}

.project-intro p {
  position: relative;
  top: -8px;
  max-width: 600px;
  margin: 0 auto;
}

.project-copy {
  width: 500px;
  height: auto;
  margin: 40px auto 0;
}

.project-copy p {
  margin: 0 0 28px;
}

.project-copy p {
  margin-bottom: 40px;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

.inline-four-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 800px;
  margin: 40px auto 0;
}

.inline-four-images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.additional-copy, .third-copy {
  top: auto;
}

.project-gallery {
  width: 1002px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 480px);
  gap: 40px 42px;
}

.project-gallery img {
  display: block;
  width: 480px;
  height: 360px;
  object-fit: cover;
}

.project-gallery img:nth-child(n+9) {
  display: none;
}

.final-image {
  width: 800px;
  margin: 40px auto 0;
}

.final-image img {
  display: block;
  width: 100%;
  height: auto;
}

.mailbox-strip {
  display: flex;
  width: 800px;
  gap: 32px;
  justify-content: center;
  margin: 40px auto 0;
}

.mailbox-strip img {
  display: block;
  width: calc((100% - 96px) / 4);
  height: auto;
}

.project-ending {
  width: 500px;
  margin: 40px auto 0;
}

footer {
  margin-top: 240px;
}

@media (max-width: 980px) {
  .project-page {
    width: auto;
    height: auto;
    margin: 0 20px;
  }

  .project-intro {
    margin: 25px 0 55px;
  }

  .project-intro, .project-copy, .project-gallery, .project-ending, .mailbox-strip {
    position: static;
    transform: none;
  }

  .project-cover {
    margin-top: 38px;
  }

  .project-intro p {
    max-width: 600px;
  }

  .project-copy, .project-ending {
    width: auto;
    margin: 0 0 45px;
  }

  .inline-four-images {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 18px;
    margin: 40px 0;
  }

  .project-gallery {
    display: block;
    height: auto;
  }

  .project-gallery img {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
  }

  .project-gallery img {
    margin-bottom: 18px;
  }

  .mailbox-strip {
    width: 100%;
    gap: 32px;
    justify-content: flex-start;
    overflow-x: auto;
    margin-top: 40px;
  }

  .mailbox-strip img {
    flex: 0 0 100px;
  }

  footer {
    margin-top: 80px;
  }
}
