/* Hide .pz-injected-hero when ANY editorial hero is present —
   .pz-post-hero (guides) or .pz-month-hero (month pages) */
body.pz-clean-post:has(.pz-post-hero) .pz-injected-hero,
body.pz-clean-post:has(.pz-month-hero) .pz-injected-hero,
body:has(.pz-post-hero) .pz-injected-hero,
body:has(.pz-month-hero) .pz-injected-hero {
  display: none !important;
}

/* Same with body class fallback for older browsers */
body.pz-has-editorial-hero .pz-injected-hero {
  display: none !important;
}

/* Style .pz-month-hero properly */
.pz-month-hero {
  max-width: 1100px;
  margin: 0 auto 2.4rem;
  display: block;
}

.pz-month-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  filter: saturate(0.97) contrast(1.04);
  opacity: 1 !important;
}


/* ============================================================
   Legacy stacked-image posts: ski / USA / Jericoacoara
   These have multiple .wp-block-image figures stacked above
   the first H2. Keep the first; hide the rest.
   ============================================================ */

/* Use :has() with sibling-of-figure approach: hide every
   .wp-block-image that's the 2nd+ such figure inside .entry-content */

body .entry-content > figure.wp-block-image ~ figure.wp-block-image:not(.pz-figure):not(.pz-month-hero):not(.pz-post-hero):not(.pz-injected-hero) {
  /* Note: this rule applies on legacy posts AND on .pz-clean-post
     posts where it's desired. For now keep visible — only target
     specifically legacy patterns below. */
}

/* Hide specific patterns of stock-image filenames that indicate
   stacked legacy decoration */
.entry-content figure.wp-block-image:has(img[src*="pexels-"]):not(:first-of-type) {
  display: none !important;
}

.entry-content figure.wp-block-image:has(img[src*="north-carolina-best-ski-resorts-"]):not(:first-of-type),
.entry-content figure.wp-block-image:has(img[src*="cheap-ski-holidays-"]):not(:first-of-type),
.entry-content figure.wp-block-image:has(img[src*="-cheap-ski-"]):not(:first-of-type) {
  display: none !important;
}