/* Front end only. In the Elementor editor this file is not loaded, so the
   section shows its static three-column layout. */
/* Smooth-scroll fights ScrollTrigger pins and causes bounce at the pin start/end. */
html { scroll-behavior: auto !important; }
#video-grow { position: relative; overflow: hidden; }
#vg-inner   { position: relative; z-index: 1; }
#vg-media   { position: absolute !important; z-index: 2; margin: 0 !important; max-width: none !important;
              aspect-ratio: auto !important; object-fit: cover; display: block;
              will-change: top, left, width, height; pointer-events: none; }
/* Cards layer shown over the full-screen video; the script creates it and fades it in. */
#vg-cards   { position: absolute; left: 0; right: 0; z-index: 3; box-sizing: border-box;
              padding: 0 44px; opacity: 0; visibility: hidden; }
/* At rest the side columns never shrink below their longest word, so text and video cannot collide. */
@media (min-width: 1025px) {
	#video-grow #vg-left, #video-grow #vg-right { min-width: min-content; }
	#video-grow #vg-center { min-width: 0; }
	#video-grow #vg-frame { max-width: min(637px, 42vw); }
	#video-grow #vg-connector-left, #video-grow #vg-connector-right { min-width: 40px; }
	#video-grow #vg-right { padding-left: 16px; }
}
/* Static layout (tablet, mobile, reduced motion, short screens): the video fills its box. */
#video-grow.vg-static #vg-media { position: static !important; width: 100% !important; height: 100% !important; }
/* Mobile: no empty space under the video block; the cards follow directly, on a plain background. */
@media (max-width: 767px) {
	#video-grow.vg-static { min-height: 0; }
	#video-grow.vg-static #vg-inner { padding-bottom: 24px; }
	#vg-cards-section { min-height: 0; padding-top: 0; padding-bottom: 40px; background-image: none; }
}
/* Keep the Elementor header above the pinned video (only if the header is hidden behind it). */
/* .elementor-location-header { position: relative; z-index: 100; } */
