/* Our Works: docs/design/Works.dc.html and Mobile-Works.dc.html. */

.projects { background: #FFFFFF; }
.projects__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; display: flex; flex-direction: column; gap: 24px; }
.project { background: var(--paper); border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; }
.project__media { flex: 1 1 520px; min-width: 0; min-height: 420px; background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; }
.project-shot, .project-placeholder { width: 100%; max-width: 520px; aspect-ratio: 16 / 10; border-radius: 20px; }
/* The transparent border keeps an uploaded screenshot the same size as the placeholder. */
.project-shot { border: 2px solid transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-shot img { width: 100%; height: 100%; object-fit: contain; }
.project-placeholder { background: #FFFFFF; border: 2px dashed #E3B54C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8A6A1F; font-size: 15px; }
.project__body { flex: 1 1 400px; min-width: 0; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.project__tagline { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.4; }
.project__text { font-size: 17px; line-height: 1.6; color: var(--text); }
.project__link { font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.next-project { border: 2px dashed var(--line-input); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.next-project__copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 400px; min-width: 0; }
.next-project h3 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.next-project p { font-size: 16px; line-height: 1.6; color: var(--text); }
.next-project .btn { align-self: flex-start; }

@media (max-width: 1024px) {
  .projects__inner { padding-bottom: 64px; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .project__media { flex-basis: 340px; }
}

@media (max-width: 699px) {
  .projects__inner { padding: 0 16px 40px; gap: 16px; }
  .project { border-radius: 24px; flex-direction: column; flex-wrap: nowrap; }
  .project__media { flex: none; display: block; min-height: 0; padding: 20px; }
  .project-shot, .project-placeholder { width: auto; max-width: none; border-radius: 16px; }
  .project-placeholder { gap: 8px; font-size: 14px; }
  .project-placeholder .icon { width: 28px; height: 28px; }
  .project__body { flex: none; padding: 24px 20px; gap: 12px; }
  .project__tagline { font-size: 17px; }
  .project__text { font-size: 15px; }
  .project__link { font-size: 15px; }
  .next-project { border-radius: 24px; padding: 24px 20px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .next-project__copy { display: contents; }
  .next-project h3 { font-size: 20px; line-height: 1.3; }
  .next-project p { font-size: 15px; }
  .next-project .btn { align-self: stretch; justify-content: center; height: 52px; box-sizing: border-box; padding: 0; }
}
