/* Nuclear fix — targets all images in any strip/row section */
* img {
  filter: none !important;
}

/* Or more targeted — any image inside a div after the stories section */
.wp-block-query + div img,
.wp-block-query ~ div img,
section + div img {
  filter: brightness(1) saturate(1) !important;
}

/* Hide Jetpack sharing and like buttons on pages */
.sharedaddy,
.sd-sharing,
.jp-relatedposts,
.sd-like-enabled,
.wp-block-jetpack-like,
.jetpack-likes-widget-wrapper,
.sharedaddy.sd-sharing-enabled {
  display: none !important;
}

/* Fix page title display */
.page-hdr h1 {
  text-transform: none !important;
}

/* Hide the default WordPress page title 
   since the theme builds its own header */
.page-id-travel-diaries .entry-title,
.page-id-travel-diaries .wp-block-post-title {
  display: none !important;
}

/* Make gallery images clickable with cursor pointer */
.gallery-item img,
.gallery-grid img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover,
.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Force lightbox to detect gallery group */
.gallery-grid a {
  position: relative;
}
.gallery-grid a::before {
  content: '';
  display: block;
}

/* Justified alignment for all post body paragraphs */
.entry-content p,
.post-content p,
article p,
.single-post .entry-content p,
.page-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Don't justify image captions or short text blocks */
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content blockquote p {
  text-align: left !important;
}

/* Don't justify list items */
.entry-content ul li,
.entry-content ol li {
  text-align: left !important;
}

/* Force consistent paragraph size across all posts */
.entry-content p,
.post-content p,
article p,
.single-post p,
.page-content p {
  font-size: 17px !important;
  line-height: 1.85 !important;
  margin-bottom: 1.4em !important;
}

/* Mobile — slightly smaller for readability */
@media (max-width: 768px) {
  .entry-content p,
  .post-content p,
  article p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
}

/* Reset any inline styles that override sizes */
.entry-content p[style],
.post-content p[style] {
  font-size: 17px !important;
}

/* ─── 13. PAGE LAYOUT — FORCE WIDER CONTENT ─── */

/* Target ALL possible page wrappers */
body.page main,
body.page #main,
body.page #content,
body.page .site-content,
body.page #primary,
body.page .content-area,
body.page-template main,
body.page-template-default main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

body.page main > article,
body.page #main > article,
body.page article,
body.page-template article {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force the entry-content (and all variations) to be wider */
body.page .entry-content,
body.page .post-content,
body.page article .entry-content,
body.page article > div,
body.page .wp-block-post-content,
body.page-template-default .entry-content,
body.page-template .entry-content,
.page article .entry-content,
.page-template-default article .entry-content {
  max-width: 880px !important;
  width: calc(100% - 60px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

/* Force ALL paragraphs and lists in pages to use full container width */
body.page .entry-content > *,
body.page .post-content > *,
body.page article > div > * {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Page paragraphs styling */
/* removed: incomplete rule that broke later selectors */
.x-noop {}


/* ============================================================
   CLAUDE FIX 2026-05-03 — Page width + sitewide justify text
   Targets the actual theme selectors: .page-hdr & .single-content
   ============================================================ */

/* 1. Make body content match the title bar's full width */
.single-content {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
}

/* 2. Justify ALL body text on pages and posts sitewide */
.single-content p,
.single-content li,
.single-content blockquote,
article .entry-content p,
article .entry-content li,
article .entry-content blockquote,
.wp-block-post-content p,
.wp-block-post-content li {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto;
}

/* 3. Don't justify headings, captions, code, or buttons */
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6,
.single-content figcaption,
.single-content pre,
.single-content code,
.single-content .wp-block-button,
.single-content .wp-block-buttons {
  text-align: inherit !important;
}

/* 4. Mobile: drop justify (looks ugly on narrow screens) */
@media (max-width: 600px) {
  .single-content,
  article .entry-content,
  .wp-block-post-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .single-content p,
  .single-content li,
  .single-content blockquote,
  article .entry-content p,
  article .entry-content li,
  .wp-block-post-content p,
  .wp-block-post-content li {
    text-align: left !important;
    hyphens: manual;
  }
}
/* ============================================================
   END CLAUDE FIX
   ============================================================ */


/* old version removed */


/* Re-enable jp-relatedposts in single-post sidebar only */
body.single-post .single-content > .jp-relatedposts {
  display: block !important;
}


/* Fix overlap: ensure About box doesn't visually merge with Related */

body.single-post .single-content > .jp-relatedposts {
  position: static !important;
  margin-top: 24px !important;
}


/* v3 removed */


/* v4 removed */


/* old version removed */


/* old version removed */


/* old version removed */


/* ============================================================
   CLAUDE FIX 2026-05-03 v8 — Absolute sidebar (no row push)
   .single-content uses block flow (no grid) with right padding
   reserved for sidebar. Sidebar items absolutely positioned.
   Left content fills full width minus sidebar reserve.
   ============================================================ */
@media (min-width: 1024px) {
  body.single-post .single-content {
    display: block !important;
    position: relative !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 48px !important;
    padding-right: calc(48px + 320px + 48px) !important;
    box-sizing: border-box !important;
  }
  /* Constrain images & blocks to remain comfortable for reading */
  body.single-post .single-content > * {
    max-width: 100% !important;
  }
  /* About card - top right of single-content */
  body.single-post .single-content::before {
    content: "About the author\A\A I'm Priyavrat Tripathi - supply chain by day, slow traveler by weekend. HimalayanFeet is where I share stories from the mountains, highways, and hidden trails of India - all with muddy boots, a curious heart, and a camera never too far." !important;
    position: absolute !important;
    top: 0 !important;
    right: 48px !important;
    width: 320px !important;
    white-space: pre-line !important;
    display: block !important;
    padding: 22px 24px !important;
    background: rgba(249, 115, 22, 0.08) !important;
    border-left: 3px solid #f97316 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    margin: 0 !important;
  }
  /* Related card - below About (absolute, fixed offset) */
  body.single-post .single-content > .jp-relatedposts {
    position: absolute !important;
    top: 270px !important;
    right: 48px !important;
    width: 320px !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: rgb(15, 15, 15) !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    box-sizing: border-box !important;
    display: block !important;
    max-width: none !important;
  }
  body.single-post .single-content > .jp-relatedposts h3 {
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #f97316 !important;
    margin: 0 0 14px 0 !important;
    border-bottom: 1px solid rgba(249, 115, 22, 0.3) !important;
    padding-bottom: 10px !important;
  }
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-items,
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-items-visual {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post-img,
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post-thumbs {
    margin-bottom: 8px !important;
  }
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post-context,
  body.single-post .single-content > .jp-relatedposts .jp-relatedposts-post-date {
    font-size: 11.5px !important;
    opacity: 0.7;
  }
  /* Gallery teaser removed */
}
@media (max-width: 1023px) {
  body.single-post .single-content {
    display: block !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.single-post .single-content::before,
  body.single-post .single-content > .jp-relatedposts {
    position: static !important;
    margin: 24px 0 !important;
    width: auto !important;
  }
  
}
/* ============================================================
   END CLAUDE FIX v8
   ============================================================ */


/* Hide gallery teaser */
body.single-post .single-content::after { content: none !important; display: none !important; }
