/* Portfolio heading hierarchy: only presentation changes, not saved content. */
body:has(.tp-instagram-library, .tp-video-library) h1.wp-block-post-title {
  margin-block: 0 48px;
  color: #181818;
  font: 750 clamp(36px, 4.2vw, 52px)/1.08 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  text-align: center;
}

body:has(.tp-instagram-library, .tp-video-library) h1.wp-block-post-title::before {
  content: "Portfolio";
  display: table;
  margin: 0 auto 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e9f056;
  color: #515822;
  font: 600 11px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tp-instagram-library > h2.wp-block-heading,
.tp-video-library .tp-video-library-section > h2.wp-block-heading {
  color: #181818;
  font: 700 24px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.025em;
  text-align: left;
}

.tp-instagram-library > h2.wp-block-heading::after,
.tp-video-library .tp-video-library-section > h2.wp-block-heading::after {
  display: none;
}

.tp-ig-category .tp-ig-heading h3 {
  color: #55514c;
  font: 600 16px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .tp-instagram-library > h2.wp-block-heading,
  .tp-video-library .tp-video-library-section > h2.wp-block-heading {
    font-size: 22px;
  }
}
