/* Shared guide-page layout for PuertoVallarta.net What to do / Qué hacer.
   Christmas page widths are the standard. Not live; preview only for now.
   Body class: pv-guide-layout
   Shell 1100px, text column 800px, wide cards 1080px, gutter 16px.
   Does not change tours or transfers. */

body.pv-guide-layout{
  --pv-col-shell:1100px;
  --pv-col-article:800px;
  --pv-col-wide:1080px;
  --pv-gutter:16px;
  overflow-x:hidden;
}

/* Article shell, same as live .pv-shell on the Christmas guide.
   Do not also shrink #page on Christmas (.pv-scope): the visible article
   already lives in .pv-shell, and #page is a wider leftover wrapper. */
body.pv-guide-layout .pv-shell{
  width:calc(100% - 2*var(--pv-gutter));
  max-width:var(--pv-col-shell);
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}
body.pv-guide-layout:not(.pv-scope) #page.site.grid-container{
  width:calc(100% - 2*var(--pv-gutter));
  max-width:var(--pv-col-shell);
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}
body.pv-guide-layout:not(.pv-scope) .site-content,
body.pv-guide-layout:not(.pv-scope) .content-area,
body.pv-guide-layout:not(.pv-scope) .inside-article,
body.pv-guide-layout:not(.pv-scope) article.dynamic-content-template{
  max-width:none;
  width:100%;
  padding-left:0;
  padding-right:0;
  margin-left:0;
  margin-right:0;
}

/* Text column: 800px, matching live .pv-article.
   Do not cap .dynamic-entry-content: on Christmas it wraps .pv-shell. */
body.pv-guide-layout .pv-article,
body.pv-guide-layout:not(.pv-scope) .gb-container-fcae982c,
body.pv-guide-layout .guad-post{
  max-width:var(--pv-col-article);
  width:100%;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
body.pv-guide-layout .pv-shell .pv-article{
  padding-left:0;
  padding-right:0;
}

/* Remove the older Guadalupanas 700px cap so body text can reach 800px */
body.pv-guide-layout .guad-post>.wp-block-group__inner-container>*,
body.pv-guide-layout .guad-post>:not(.wp-block-group__inner-container){
  max-width:var(--pv-col-article)!important;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

/* Wide cards, tables, facts, toc, maps, figures: 1080px inside the 1100px shell */
@media(min-width:900px){
  body.pv-guide-layout .pv-article>:is(.pv-wide,.pv-summary,.pv-facts,.pv-toc,.pv-table-wrap,.pv-schedule,.pv-offer,.pv-event,.pv-stack,.pv-band,.pv-tcard,.pv-signup--cover,.pv-figure),
  body.pv-guide-layout .guad-post .guad-facts,
  body.pv-guide-layout .guad-post .guad-toc,
  body.pv-guide-layout .guad-post .guad-cards,
  body.pv-guide-layout .guad-post .guad-mapbox,
  body.pv-guide-layout .guad-post .guad-video,
  body.pv-guide-layout .guad-post .guad-tl,
  body.pv-guide-layout .guad-post .guad-sched,
  body.pv-guide-layout .guad-post .guad-hours,
  body.pv-guide-layout .guad-post .guad-faq,
  body.pv-guide-layout .guad-post .wp-block-image,
  body.pv-guide-layout .guad-post figure.wp-block-image,
  body.pv-guide-layout .guad-post .wp-block-embed,
  body.pv-guide-layout .gb-container-fcae982c .guad-facts,
  body.pv-guide-layout .gb-container-fcae982c .guad-toc,
  body.pv-guide-layout .gb-container-fcae982c .guad-cards,
  body.pv-guide-layout .gb-container-fcae982c .guad-mapbox,
  body.pv-guide-layout .gb-container-fcae982c .guad-video,
  body.pv-guide-layout .gb-container-fcae982c .guad-tl,
  body.pv-guide-layout .gb-container-fcae982c .guad-sched,
  body.pv-guide-layout .gb-container-fcae982c .guad-hours,
  body.pv-guide-layout .gb-container-fcae982c .guad-faq,
  body.pv-guide-layout .gb-container-fcae982c .wp-block-image,
  body.pv-guide-layout .gb-container-fcae982c figure.wp-block-image,
  body.pv-guide-layout .gb-container-fcae982c .wp-block-embed{
    --pv-breakout-w:min(var(--pv-col-wide),var(--pv-col-shell),calc(100vw - 2*var(--pv-gutter)));
    width:var(--pv-breakout-w)!important;
    max-width:var(--pv-breakout-w)!important;
    margin-left:calc((var(--pv-col-article) - var(--pv-breakout-w))/2)!important;
    margin-right:calc((var(--pv-col-article) - var(--pv-breakout-w))/2)!important;
  }
}

/* Desktop header stays full-bleed (Guadalupanas style). Do not fold it into the shell. */
@media(min-width:768px){
  body.pv-guide-layout #masthead ~ .gb-container-e634d9fb,
  body.pv-guide-layout > .pv-hero.pv-hero--article{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
}

@media(max-width:767px){
  body.pv-guide-layout img,
  body.pv-guide-layout iframe,
  body.pv-guide-layout table,
  body.pv-guide-layout .guad-mapbox,
  body.pv-guide-layout .guad-video,
  body.pv-guide-layout .wp-block-embed{
    max-width:100%!important;
  }
}
