/* nwgacustomcabinets client overrides. Written by 00-admin/client-fixes.py on every run: edit it there. */

/* Hero Vimeo background (home + Spanish home). Elementor's runtime sized the player to
   cover the band; container units reproduce that at every width without JS. */
.elementor-background-video-container:has(> .ym-bg-vimeo) {
  container-type: size;
}
.elementor-background-video-container > .ym-bg-vimeo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  max-width: none;
  border: 0;
  pointer-events: none;
}

/* Blog shim (08-blog-migration/build-blog-widget.py): status line in the list grid, and
   the post shell stays blank until the post has been filled in. */
.ym-blog-msg {
  padding: 2rem;
  text-align: center;
  font-family: inherit;
}
body.blog-loading #blog-post-title,
body.blog-loading .elementor-widget-theme-post-content {
  visibility: hidden;
}
