
/* GP Single Post Design Studio: scoped to selected styles only. */
.gp-single-layout:not(.gp-single-default) .gp-single-title-heading{margin-bottom:14px}
.gp-single-layout:not(.gp-single-default) .post-title{font-size:clamp(24px,2.35vw,34px);line-height:1.25}
.gp-single-sidebar-compact .post-title,.gp-single-full-compact .post-title{font-size:clamp(20px,1.8vw,26px)}
.gp-single-sidebar-centered .gp-single-title-heading,.gp-single-full-centered .gp-single-title-heading{text-align:center;justify-content:center}
.gp-single-sidebar-centered .post-title,.gp-single-full-centered .post-title{font-size:clamp(30px,3vw,44px)}
.gp-single-sidebar-centered .gp-single-meta,.gp-single-full-centered .gp-single-meta{text-align:center}
.gp-single-full-title-top .post,.gp-single-full-title-bottom .post,.gp-single-full-centered .post,.gp-single-full-compact .post,.gp-single-full-editorial .post{max-width:100%;margin-inline:auto}
.gp-single-full-title-top .post-content,.gp-single-full-title-bottom .post-content,.gp-single-full-centered .post-content,.gp-single-full-compact .post-content{max-width:850px;margin-inline:auto}
.gp-single-full-title-top .post-thumb,.gp-single-full-title-bottom .post-thumb,.gp-single-full-centered .post-thumb,.gp-single-full-compact .post-thumb{max-width:1050px;margin-inline:auto}
.gp-single-full-editorial .post{max-width:930px;margin-inline:auto}
.gp-single-full-editorial .post-content{max-width:720px;margin-inline:auto}
.gp-single-full-editorial .post-title{font-family:Georgia,serif;font-size:clamp(32px,3.5vw,50px);text-align:center}
.gp-single-full-editorial .gp-single-title-heading{justify-content:center}
.gp-single-full-editorial .gp-single-meta{text-align:center}
.gp-single-layout:not(.gp-single-default) .post-thumb img{max-width:100%;height:auto}
@media(max-width:991px){.gp-single-layout:not(.gp-single-default) .row>[class*="col-lg-"]{width:100%;max-width:100%;min-width:0}.gp-single-layout:not(.gp-single-default) .post-title{overflow-wrap:anywhere}}
@media(max-width:600px){.gp-single-layout:not(.gp-single-default) .post-title{font-size:clamp(22px,6vw,30px)}.gp-single-layout:not(.gp-single-default) .post{min-width:0}}

/* v1.1: repair non-default single-post layouts without changing Default. */
body .single-post-page.gp-single-layout:not(.gp-single-default){padding-top:12px!important;overflow-x:clip}
body .single-post-page.gp-single-layout:not(.gp-single-default) > .container{box-sizing:border-box;width:100%!important;max-width:var(--gp-layout-max,1150px)!important;margin-inline:auto!important;padding-inline:12px!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) > .container > .row{display:flex!important;flex-wrap:wrap!important;gap:16px!important;width:100%!important;margin:0!important;align-items:flex-start!important;--bs-gutter-x:0!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) > .container > .row > [class*="col-lg-"]{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;padding:0!important}
/* Full-width variants must override old global .col-lg-8 and layout rules. */
body .single-post-page.gp-single-full-title-top > .container > .row > .col-lg-12,
body .single-post-page.gp-single-full-title-bottom > .container > .row > .col-lg-12,
body .single-post-page.gp-single-full-centered > .container > .row > .col-lg-12,
body .single-post-page.gp-single-full-compact > .container > .row > .col-lg-12,
body .single-post-page.gp-single-full-editorial > .container > .row > .col-lg-12{flex:0 0 100%!important;width:100%!important;max-width:100%!important;margin:0!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) .post{box-sizing:border-box;width:100%!important;min-width:0!important;margin:0!important;padding:20px 24px!important;background:#fff}
body .single-post-page.gp-single-layout:not(.gp-single-default) .post-thumb{margin:16px 0 20px!important;width:100%!important;max-width:none!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) .post-thumb img{display:block;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain}
body .single-post-page.gp-single-layout:not(.gp-single-default) .gp-single-title-heading{margin:0 0 12px!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) .gp-single-meta{margin:0 0 16px!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) .post-content{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;overflow-wrap:break-word}
body .single-post-page.gp-single-layout:not(.gp-single-default) .post-content > *{max-width:100%}
body .single-post-page.gp-single-layout:not(.gp-single-default) .gp-related-inline{width:100%!important;max-width:none!important;margin-top:16px!important}
@media(min-width:992px){
body .single-post-page.gp-single-sidebar-title-top > .container > .row > .col-lg-8,
body .single-post-page.gp-single-sidebar-title-bottom > .container > .row > .col-lg-8,
body .single-post-page.gp-single-sidebar-centered > .container > .row > .col-lg-8,
body .single-post-page.gp-single-sidebar-compact > .container > .row > .col-lg-8{flex:0 0 calc(69% - 8px)!important;width:calc(69% - 8px)!important}
body .single-post-page.gp-single-layout:not(.gp-single-default) > .container > .row > .col-lg-4{flex:1 1 0!important;width:auto!important}
}
@media(max-width:991px){body .single-post-page.gp-single-layout:not(.gp-single-default) > .container > .row > [class*="col-lg-"]{flex:0 0 100%!important;width:100%!important}body .single-post-page.gp-single-layout:not(.gp-single-default) .post{padding:18px!important}}
@media(max-width:600px){body .single-post-page.gp-single-layout:not(.gp-single-default) > .container{padding-inline:10px!important}body .single-post-page.gp-single-layout:not(.gp-single-default) .post{padding:14px!important}body .single-post-page.gp-single-layout:not(.gp-single-default) .post-thumb{margin:12px 0 16px!important}}

/* v1.2: edge-to-edge featured image inside the article card, softly rounded.
   Applies to the two image-first single-post designs; preserves Default. */
body .single-post-page.gp-single-sidebar-title-bottom .post-thumb,
body .single-post-page.gp-single-full-title-bottom .post-thumb{
  width:100%!important;
  max-width:100%!important;
  margin:0 0 18px!important;
  padding:0!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
body .single-post-page.gp-single-sidebar-title-bottom .post-thumb img,
body .single-post-page.gp-single-full-title-bottom .post-thumb img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  border-radius:12px!important;
}
/* Remove the empty top strip within image-first article cards. */
body .single-post-page.gp-single-sidebar-title-bottom .post,
body .single-post-page.gp-single-full-title-bottom .post{
  padding-top:0!important;
}

/* v1.3: image-first layouts: image flush against card top and both sides;
   round top corners only, square bottom corners. */
body .single-post-page.gp-single-sidebar-title-bottom .post,
body .single-post-page.gp-single-full-title-bottom .post {
  overflow:hidden!important;
}
body .single-post-page.gp-single-sidebar-title-bottom .post > .post-thumb,
body .single-post-page.gp-single-full-title-bottom .post > .post-thumb {
  box-sizing:border-box!important;
  width:calc(100% + 48px)!important;
  max-width:none!important;
  margin:-0px -24px 18px!important;
  padding:0!important;
  border-radius:12px 12px 0 0!important;
  overflow:hidden!important;
}
body .single-post-page.gp-single-sidebar-title-bottom .post > .post-thumb img,
body .single-post-page.gp-single-full-title-bottom .post > .post-thumb img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  border-radius:12px 12px 0 0!important;
}
@media(max-width:991px){
 body .single-post-page.gp-single-sidebar-title-bottom .post > .post-thumb,
 body .single-post-page.gp-single-full-title-bottom .post > .post-thumb{
   width:calc(100% + 36px)!important;
   margin-left:-18px!important;
   margin-right:-18px!important;
 }
}
@media(max-width:600px){
 body .single-post-page.gp-single-sidebar-title-bottom .post > .post-thumb,
 body .single-post-page.gp-single-full-title-bottom .post > .post-thumb{
   width:calc(100% + 28px)!important;
   margin-left:-14px!important;
   margin-right:-14px!important;
   margin-top:0!important;
 }
}

/* v1.4: remove the final top inset on image-first single-post cards.
   Keep article text padding and the original default layout unchanged. */
body main.single-post-page.gp-single-sidebar-title-bottom article.post,
body main.single-post-page.gp-single-full-title-bottom article.post {
  padding-top:0!important;
  border-radius:12px 12px 0 0;
  overflow:hidden!important;
}
body main.single-post-page.gp-single-sidebar-title-bottom article.post > .post-thumb,
body main.single-post-page.gp-single-full-title-bottom article.post > .post-thumb {
  margin-top:0!important;
  margin-bottom:18px!important;
  border-radius:12px 12px 0 0!important;
  overflow:hidden!important;
}
body main.single-post-page.gp-single-sidebar-title-bottom article.post > .post-thumb img,
body main.single-post-page.gp-single-full-title-bottom article.post > .post-thumb img {
  border-radius:12px 12px 0 0!important;
}

/* v1.5: definitive flush image-first card layout.
   The card itself has zero padding; text children receive their own inset.
   This avoids margin-collapse and conflicting article padding rules. */
body main.single-post-page.gp-single-sidebar-title-bottom .row article.post,
body main.single-post-page.gp-single-full-title-bottom .row article.post {
  padding:0 0 24px!important;
  border-radius:12px 12px 0 0!important;
  overflow:hidden!important;
}
body main.single-post-page.gp-single-sidebar-title-bottom .row article.post > .post-thumb,
body main.single-post-page.gp-single-full-title-bottom .row article.post > .post-thumb {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px 12px 0 0!important;
  overflow:hidden!important;
}
body main.single-post-page.gp-single-sidebar-title-bottom .row article.post > .post-thumb img,
body main.single-post-page.gp-single-full-title-bottom .row article.post > .post-thumb img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  border-radius:12px 12px 0 0!important;
}
body main.single-post-page.gp-single-sidebar-title-bottom .row article.post > :not(.post-thumb),
body main.single-post-page.gp-single-full-title-bottom .row article.post > :not(.post-thumb) {
  box-sizing:border-box;
  margin-left:24px!important;
  margin-right:24px!important;
}
@media(max-width:991px){
  body main.single-post-page.gp-single-sidebar-title-bottom .row article.post > :not(.post-thumb),
  body main.single-post-page.gp-single-full-title-bottom .row article.post > :not(.post-thumb){margin-left:18px!important;margin-right:18px!important}
}
@media(max-width:600px){
  body main.single-post-page.gp-single-sidebar-title-bottom .row article.post > :not(.post-thumb),
  body main.single-post-page.gp-single-full-title-bottom .row article.post > :not(.post-thumb){margin-left:14px!important;margin-right:14px!important}
}
