/* Visionary Studios: structural fixes layered on the frozen Wix Studio styles.
   Rule: fix layout robustness without changing the established look. */

/* 1. Page sections stack in normal document order at every width.
   Wix set fixed grid row sizes per breakpoint; above 1600px it collapsed one row to 0px, which made
   the testimonial and Visionary Insights sections overlap. Rows now size to their content. */
div:has(> main[id^="PAGE_SECTIONS"]){grid-template-rows:none!important;grid-auto-rows:auto!important}

img,video,iframe{max-width:100%}

/* 2. Behind-the-scenes strip: half the original height, and its section hugs the strip (no empty band). */
.vs-bts-sec{min-height:0!important;height:auto!important}
.vs-bts-sec [id^="comp-"],.vs-bts-sec [id^="gallery-wrapper"],.vs-bts-sec [id^="bgLayers"]{min-height:0!important}
.vs-bts-gal>div{height:auto!important;min-height:0!important}
.vs-bts-sec [class$="-container"],.vs-bts-sec .max-width-container,.vs-bts-gal{grid-template-rows:auto!important}
.vs-bts-gal{height:auto!important;min-height:0!important;margin-top:var(--vs-bts-gap,calc(var(--sec-pad,0px)))!important}
.vs-marquee{height:18.333vw!important;max-height:470px}
@media (max-width:750px){.vs-marquee{height:28.6vw!important}}
.vs-mq-item img{filter:grayscale(1)}

/* 3. Footer: one semantic footer, full width (background and content edge to edge). */
.vs-footer{background:#c1b798;color:#fff;width:100%;box-sizing:border-box;padding:clamp(40px,4.7vw,90px) clamp(24px,6.25vw,120px);margin-top:clamp(24px,3vw,48px)}
.vs-footer *{box-sizing:border-box}
.vs-footer-grid{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(140px,.9fr) minmax(220px,1.4fr) minmax(140px,1fr);gap:clamp(24px,3vw,56px);align-items:start}
.vs-footer h2{font-family:"VS Medium","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;font-size:clamp(20px,1.48vw,28px);line-height:1.4;margin:0 0 .9em;color:#fff;letter-spacing:normal}
.vs-footer ul{list-style:none;margin:0;padding:0}
.vs-footer li,.vs-footer address{font-family:"VS Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;font-size:20px;line-height:1.6;font-style:normal;color:#fff}
.vs-footer a{color:#fff;text-decoration:none}
.vs-footer a:hover{text-decoration:underline}
.vs-footer .vs-legal{margin:clamp(28px,3vw,56px) 0 0;font-family:"VS Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;opacity:.85}
@media (max-width:1000px){.vs-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.vs-footer-grid{grid-template-columns:1fr}.vs-footer{padding:40px 24px}}
/* the Wix site footer placeholder is empty: no extra space */
footer#comp-kbgakxmn{display:none!important}

/* 4. Royal Enfield film: native player with controls */
video.vs-film{width:100%;height:100%;object-fit:contain;background:#000;display:block}

/* 5. Visually hidden helper (for an accessible page h1 where the design shows the title as an image) */
.vs-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 6. Recent-posts carousel (mobile post pages): the Wix slider was frozen at a fixed 390px width.
   It now fits any phone width and swipes natively (scroll snap), with no horizontal page scroll. */
.slick-slider{max-width:100%}
.slick-list{overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.slick-list::-webkit-scrollbar{display:none}
.slick-track{transform:none!important;width:max-content!important;display:flex!important}
.slick-cloned{display:none!important}
.slick-slide{width:calc(100vw - 60px)!important;max-width:330px;scroll-snap-align:center;flex:none}

/* 7. Blog feeds (home "Visionary Insights" and the blog index) were absolutely positioned at one fixed width
   by the Wix gallery script. They are now real CSS grids that reflow at every width, at the live site's sizes. */
.pro-gallery.inline-styles:has(> .vs-feed),.pro-gallery.inline-styles:has(> .vs-feedsq){height:auto!important}
.vs-feed,.vs-feedsq{width:100%!important;height:auto!important;display:grid!important;gap:32px;zoom:1!important}
.vs-feed{grid-template-columns:repeat(3,minmax(0,1fr))}
.vs-m .vs-feed{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.vs-feedsq{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1100px){.vs-feedsq{grid-template-columns:repeat(2,minmax(0,1fr))}}
.vs-feed .gallery-item-container,.vs-feedsq .gallery-item-container{position:relative!important;inset:auto!important;width:auto!important;height:auto!important}
.vs-feed .gallery-item-wrapper{width:auto!important;height:auto!important;aspect-ratio:440/329.25}
.vs-m .vs-feed .gallery-item-wrapper{aspect-ratio:4/3}
.vs-feedsq .gallery-item-wrapper{width:100%!important;height:auto!important;aspect-ratio:1}
.vs-feed .gallery-item-content,.vs-feedsq .gallery-item-content,.vs-feedsq .item-hover-flex-container,.vs-feedsq .gallery-item-hover{width:100%!important;height:100%!important}
.vs-feed img.gallery-item,.vs-feedsq img.gallery-item{width:100%!important;height:100%!important;object-fit:cover}

/* 8. Phone-only layout parity. Desktop is unchanged. */
@media (max-width:750px){
  /* Contact form: Wix laid first/last and email/phone as two columns. The frozen 12-col grid
     had computed 5.25px tracks, so every field stacked. Restore a 12-column flex grid. */
  .vs-m form .htcADB, form .htcADB.GLWhGq{grid-template-columns:repeat(12,minmax(0,1fr))!important;width:100%!important}
  /* Blog index (mobile list): live is a compact one-column feed, not a tall card per post. */
  .vs-m [data-hook="post-list-item"] h2,
  .vs-m [data-hook="post-list-item"] [data-hook="post-title"],
  .vs-m [data-hook="post-list-item"] .blog-post-title-font{font-size:20px!important;line-height:1.3!important}
  .vs-m [data-hook="post-list-item"] [data-hook*="description"],
  .vs-m [data-hook="post-list-item"] .blog-post-description,
  .vs-m [data-hook="post-list-item"] .blog-post-homepage-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .vs-m [data-hook="post-list-item"] img,
  .vs-m [data-hook="post-list-item"] wow-image{max-height:220px;width:100%;object-fit:cover}
}
@media (max-width:560px){
  /* Keep a 2-column footer on phones so it is not much taller than the live site, still full width, no skyline. */
  .vs-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .vs-footer{padding:32px 20px}
  .vs-footer .vs-legal{grid-column:1/-1;margin-top:8px}
}

/* 9. Blog index on phones: use the same square text-on-image cards as live (one column), not the tall card list.
   The desktop widget copy (.vs-d) holds the square grid; swap it in below 750px for the blog index only. */
@media (max-width:750px){
  .vs-d:has(.vs-feedsq){display:block!important}
  div:has(> .vs-d .vs-feedsq) > .vs-m{display:none!important}
  .vs-feedsq{grid-template-columns:minmax(0,1fr)!important;gap:32px}
  .vs-feedsq .vs-late{display:none!important}
}

/* 10. Header profile icon: portal account menu. Keeps the existing 26px icon and 55x40 hit area.
   The menu is position:fixed on body so the page's overflow:clip wrapper cannot hide it. */
.vs-acct{position:relative;display:block;width:100%;height:100%;min-height:40px}
.vs-acct .wixui-login-social-bar{width:100%;height:100%}
.vs-acct-btn{cursor:pointer}
.vs-acct-menu{position:fixed;z-index:10000;min-width:220px;padding:10px 0;background:#fff;color:#1a1a1a;border:1px solid rgba(0,0,0,.12);box-shadow:0 8px 24px rgba(0,0,0,.12);font-family:"VS Light","VS Medium",Arial,sans-serif;font-size:16px;line-height:1.4;text-align:left;white-space:nowrap}
.vs-acct-menu[hidden]{display:none!important}
.vs-acct-label{padding:6px 16px 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6e6e6e}
.vs-acct-link,.vs-acct-logout-btn{display:block;width:100%;box-sizing:border-box;padding:8px 16px;color:#1a1a1a;text-decoration:none;background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}
.vs-acct-link:hover,.vs-acct-link:focus,.vs-acct-logout-btn:hover,.vs-acct-logout-btn:focus{background:#f3f0e8;color:#1a1a1a;outline:none}
.vs-acct-link:focus-visible,.vs-acct-logout-btn:focus-visible{outline:2px solid #c3ba9f;outline-offset:-2px}
.vs-acct-logout{margin:0;padding:0;border:0}
.vs-acct-logout-btn{border-top:1px solid rgba(0,0,0,.08);margin-top:6px;padding-top:10px}
@media (max-width:750px){
  .vs-acct-menu{min-width:200px;font-size:16px}
}

.vs-acct-btn{position:relative;}
.vs-acct-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;pointer-events:none;}

/* 11. Home hero video: Wix left the player and poster at opacity:0, and the
   mobile/tablet copy had no src, which is why the first screen was often white.
   Keep a still frame visible and the video covering the same crop. */
#comp-m5muqtpu video,
#comp-m80osdg8 video,
#comp-m5muqtpu .X9nqm0,
#comp-m80osdg8 .X9nqm0{
  opacity:1!important;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  background:#1a1a1a;
  position:absolute;
  inset:0;
  display:block;
}
/* Hide the separate Wix poster <img>, which is frozen at a 1440px SSR size
   and otherwise layers over the full-width video on wide desktops (~56% left).
   The <video poster> attribute fills the player box until the first frame. */
#comp-m5muqtpu_img,
#comp-m80osdg8_img,
#comp-m5muqtpu .bgVideoposter,
#comp-m80osdg8 .bgVideoposter{
  display:none!important;
  opacity:0!important;
  visibility:hidden;
  pointer-events:none;
}
#comp-m80oe2rk video{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
  display:block;
}

/* 12. YouTube facade: thumbnail + play button until click. Matches the dark film frame. */
.vs-yt{position:relative;display:block;width:100%;height:100%;min-height:120px;background:#111;overflow:hidden;cursor:pointer}
.vs-yt button{all:unset;box-sizing:border-box;display:block;width:100%;height:100%;cursor:pointer;position:absolute;inset:0}
.vs-yt img{width:100%;height:100%;object-fit:cover;display:block}
.vs-yt-play{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;background:#1a1a1a;border-radius:12px;opacity:.92;pointer-events:none}
.vs-yt-play::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);border-style:solid;border-width:10px 0 10px 18px;border-color:transparent transparent transparent #fff}
.vs-yt:hover .vs-yt-play,.vs-yt button:focus-visible .vs-yt-play{background:#c1b798}
.vs-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
