/* Fixes on top of the original WordPress/Elementor styles (added by tools/sitefixes.py) */

/* Older Elementor video blocks carry no aspect ratio, so the browser gave them its
   default 150px height (tiny thumbnails). Default every video block to 16:9. */
.elementor-widget-video .elementor-wrapper{aspect-ratio:var(--video-aspect-ratio,16/9);height:auto}
.elementor-widget-video .elementor-wrapper iframe{height:100%;width:100%}

/* Videos pasted into text blocks with a fixed width (e.g. width="800") never wider than the screen */
iframe[src*="vimeo.com"]:not(.elementor-video-iframe),
iframe[src*="youtube.com"]:not(.elementor-video-iframe){max-width:100%}

/* ---------- Phones: problems found by scanning every page at 375px ---------- */
@media (max-width:767px){
  /* nothing may push the page sideways */
  html,body{overflow-x:clip}
  iframe[src*="vimeo.com"]:not(.elementor-video-iframe),
  iframe[src*="youtube.com"]:not(.elementor-video-iframe){height:auto;aspect-ratio:16/9}

  /* sections pulled up with a negative margin that cover the content above on phones */
  .elementor-element-o0r72cj,   /* PvF About: video covered the "Let's Connect on Zoom" button */
  .elementor-element-f17865e,   /* PvF Growth Seeker */
  .elementor-element-99db928    /* PvF Finding / Discovering our reason for being */
  {margin-top:20px!important}

  /* text that touched the screen edge (no side padding on phones) */
  .elementor-element-1z3o4mz,   /* PvF About, Jim Narin, Kurt Bruckmann */
  .elementor-element-a09cf2a,   /* PvF Assessment */
  .elementor-element-4ac1db6d,  /* PvF Joe Zdeb */
  .elementor-element-a8071b8,   /* PvF A Lens to the Open World (title) */
  .elementor-element-7bd4771e   /* waltaguilar footer copyright */
  {padding-left:18px!important;padding-right:18px!important;box-sizing:border-box}

  /* PvF Unapologetically Tommy: 50px side margins made the box wider than the screen */
  .elementor-element-287e8aca{margin-left:0!important;margin-right:0!important}

  /* decorative images placed off to the side on desktop: keep them on screen */
  .elementor-element-9a4c999{left:auto!important;right:8px!important;width:130px!important}  /* PvF Dustin Wolf logo */
  .elementor-element-d09cd7c{left:auto!important;right:0!important;max-width:100%!important} /* PvF Walter DBC QR code */
}

/* ---------- Go-live changes requested by Walter (Nov 2026) ---------- */

/* Article header: the featured photo fills the whole box next to the blue title panel
   (wide 16:9 photos used to leave a white gap under them) */
@media (min-width:768px){
  .elementor-widget-wrap:has(> .elementor-widget-theme-post-featured-image:only-child){align-content:stretch;align-items:stretch}
  .elementor-widget-theme-post-featured-image:only-child,
  .elementor-widget-theme-post-featured-image:only-child > .elementor-widget-container{height:100%}
  .elementor-widget-theme-post-featured-image:only-child img{height:100%!important;object-fit:cover;object-position:center}
  /* two very wide photos would lose too much (the "Confidence" sign): keep them whole, centred */
  .postid-735 .elementor-widget-theme-post-featured-image img,
  .postid-737 .elementor-widget-theme-post-featured-image img{height:auto!important}
  .postid-735 .elementor-widget-wrap:has(> .elementor-widget-theme-post-featured-image:only-child),
  .postid-737 .elementor-widget-wrap:has(> .elementor-widget-theme-post-featured-image:only-child){align-content:center;align-items:center}
}

/* "Let's Connect on Zoom" button at the end of every PvF article: solid red, like "CLICK HERE" */
.elementor-element-b89e4fc .elementor-button{background-color:var(--e-global-color-6bc792fd,#CC0000)!important;
  border-color:var(--e-global-color-6bc792fd,#CC0000)!important;color:#fff!important;fill:#fff!important}
.elementor-element-b89e4fc .elementor-button:hover,.elementor-element-b89e4fc .elementor-button:focus{background-color:#a30000!important;border-color:#a30000!important}

/* the line above the "Let's Connect on Zoom" buttons (added by tools/ctafixes.py) */
.wf-cta-note{width:100%;text-align:center;margin:6px 0 4px}
.wf-cta-note .elementor-heading-title{font-family:"Roboto",sans-serif;font-size:18px;font-weight:600;line-height:1.4;color:inherit;margin:0}

@media (max-width:767px){
  /* PvF home: Walter's photo was measured too short, so the quote under it sat on top of the photo */
  .elementor-element-7cf8fa9{width:100%!important}
  .wf-cta-note .elementor-heading-title{font-size:16px}
}

/* waltaguilar home hero: the note sits on the photo, so white like the hero titles */
.elementor-element-eb05e96 .wf-cta-note .elementor-heading-title{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.45);max-width:420px;margin:0 auto}
