body.page-id-1552 {
background-image: url("https://somethinggraphic.net/wp-content/uploads/2025/05/centred-w3-lines.png");
background-position: https://somethinggraphic.net/wp-content/uploads/2025/05/NEW-LINES.pngcenter center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}

body.page-id-231551 {
background-image: url("https://somethinggraphic.net/wp-content/uploads/2025/05/centred-w3-lines.png");
background-position: https://somethinggraphic.net/wp-content/uploads/2025/05/NEW-LINES.pngcenter center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}

body.page-id-233232 {
background-image: url("https://somethinggraphic.net/wp-content/uploads/2025/05/centred-w3-lines.png");
background-position: https://somethinggraphic.net/wp-content/uploads/2025/05/NEW-LINES.pngcenter center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}

body.page-id-232416 {
background-image: url("https://somethinggraphic.net/wp-content/uploads/2025/05/centred-w3-lines.png");
background-position: https://somethinggraphic.net/wp-content/uploads/2025/05/NEW-LINES.pngcenter center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}

body.page-id-225554 {
background-image: url("https://somethinggraphic.net/wp-content/uploads/2025/05/Blog-home-lines-v-1.png");
background-position: https://somethinggraphic.net/wp-content/uploads/2025/05/NEW-LINES.pngcenter center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
/* Hide next previous on portfolio single posts */
body.is-portfolio-post .nd-post-nav {
  display: none !important;
}

/* Hide Back to Portfolio everywhere by default */
body:not(.is-portfolio-post) .back-to-portfolio {
  display: none !important;
}

/* Post navigation wrapper */
.ppn{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:24px auto 0;
  padding-top:16px;
  max-width:42rem;          /* KEY: stops edge-to-edge stretch */
}

/* Buttons */
.ppn-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid currentColor;
  border-radius:999px;
  text-decoration:none;
  font-size:1rem;
  line-height:1;
  white-space:nowrap;
}

/* Mobile: keep them tidy, not full width */
@media (max-width: 600px){
  .ppn{
    justify-content:center; /* no harsh left/right */
    flex-wrap:wrap;
  }
}

/* Make Gutenberg preset text sizes calmer on mobile */
@media (max-width: 768px) {

  /* Default body text */
  body {
    font-size: 0.95rem;
  }

  /* Medium + normal paragraphs */
  .has-medium-font-size,
  .wp-site-blocks p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* Large body text (but not headings) */
  .has-large-font-size {
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

/* Tablet spacing fix for archive / query loop */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Space between each post in the loop */
  .wp-block-post {
    margin-bottom: 3rem;
  }

  /* Space image → text */
  .wp-block-post-featured-image {
    margin-bottom: 1.25rem;
  }

  /* Space title → excerpt */
  .wp-block-post-title {
    margin-bottom: 0.75rem;
  }

  /* Space excerpt → next content */
  .wp-block-post-excerpt {
    margin-bottom: 1rem;
  }

}