/* ===========================================
   RESPONSIVE BREAKPOINTS
   - 750px: Major breakpoint - header stacks, padding reduces
   - 500px: Small mobile refinements
   - 340px: Extra small screens
   =========================================== */

@media screen and (max-width: 800px) {
  .thumb .caption b {
    font-size: 18px;
    line-height: 22px;
    margin: 0 40px;
  }

  .extras {
    margin: 0 -10px;
  }

  .extras>* {
    margin: 10px;
  }

  .extras .caption {
    margin-top: 0;
  }
}


/* ===========================================
   MAJOR BREAKPOINT: Header stacks + padding reduces
   This is THE breakpoint where header layout changes.
   Above 750px: always one row
   Below 750px: always stacked and centered
   =========================================== */
@media screen and (max-width: 750px) {
  body {
    padding: 0 40px;
  }

  header {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  /* Stack header items and center them */
  .header-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .header-logo-link {
    margin: 0 auto;
  }

  header ul {
    text-align: center;
    align-self: center;
    margin-top: 0;
  }

  header ul li {
    margin: 0 10px;
  }

  header p {
    text-align: center;
    margin: 20px auto 0;
  }

  .project {
    padding-top: 40px;
    text-align: center;
  }

  .video,
  .illustration {
    margin-top: 20px;
  }

  h1,
  h2 {
    line-height: 34px;
  }

  .thumb .caption b {
    font-size: 16px;
    line-height: 20px;
    margin: 0 30px;
  }

  .extras {
    margin: 0 -5px;
  }

  .extras>* {
    margin: 5px;
  }

  /* INFO */
  .info {
    flex-direction: column;
  }

  .info .img {
    margin: 0 auto 40px;
  }

  .info .txt {
    text-align: center;
  }
}


/* ===========================================
   SMALL MOBILE
   =========================================== */
@media screen and (max-width: 500px) {
  body {
    padding: 0 20px;
  }

  header {
    padding-top: 20px;
  }

  header::after {
    display: none;
  }

  .project {
    padding-top: 20px;
  }

  .thumb .caption b {
    margin: 0 20px;
    font-size: 14px;
    line-height: 18px;
  }
}


/* ===========================================
   EXTRA SMALL SCREENS
   =========================================== */
@media screen and (max-width: 340px) {
  body {
    padding: 0 10px;
  }

  .thumb.x1 {
    width: 50%;
  }

  .thumb.x2 {
    width: 50%;
  }

  .thumb.x2 img {
    max-width: 200%;
    margin-left: -50%;
  }
}