/* 2026-11-08 iPad/phone rail repair: start at the first visible project,
   size each card independently, and let both touch axes remain native.
   Centering an overflowing 100%-wide flex rail made the beginning unreachable. */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@500;600&display=swap');
/* Editorial Gallery Hero — isolated to bilingual Website for Your Business landing.
   Real demo assets. Keep pricing, checkout and the remaining sections untouched. */
.tle-universal .hero.hero-gallery {
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  min-height:0; padding:clamp(32px,4vw,56px) 0 10px; overflow:hidden;
  background:#FAF8F3; isolation:isolate; color:#191919;
}
.tle-universal .hero.hero-gallery::after{display:none}
.tle-universal .hero-gallery .hero-gallery-copy{
  width:min(100% - 36px,940px); max-width:940px; padding:0;
  margin:0 auto; color:#191919; text-align:center; z-index:2;
}
.tle-universal .hero-gallery .hero-gallery-kicker{
  margin:0 0 13px; font-family:'DM Sans',Arial,sans-serif; font-weight:800; text-transform:uppercase;
  letter-spacing:.19em; font-size:11px; color:#525e66;
}
.tle-universal .hero-gallery h1{
  font-family:'Prompt','DM Sans',Arial,sans-serif; font-size:clamp(42px,5.8vw,82px);
  font-weight:600; letter-spacing:-.062em; line-height:1.06; margin:0 auto 16px;
  max-width:870px; text-wrap:balance; color:#191919;
}
.tle-universal .hero-gallery h1 em{font-style:normal; box-shadow:inset 0 -.14em 0 #F2D85B}
.tle-universal .hero-gallery .hero-gallery-copy>p[data-key=heroText]{
  font-family:'DM Sans',Arial,sans-serif; max-width:640px; margin:0 auto 20px;
  font-size:clamp(14px,1.32vw,17px); line-height:1.55; color:#3e484c;
}
.tle-universal .hero-gallery .hero-gallery-copy .btn{
  font-family:'DM Sans',Arial,sans-serif; min-height:49px; font-size:14px;
  padding:13px 27px; background:#191919; color:#fff; border-radius:40px;
  position:relative; z-index:5;
}
.tle-universal .hero-gallery-stage{
  width:min(100%,1500px); margin:clamp(22px,3.5vw,48px) auto 0;
  min-height:295px; position:relative; perspective:1100px; overflow:hidden;
}
.tle-universal .hero-gallery-rail{
  display:flex; justify-content:center; align-items:center;
  gap:clamp(6px,.8vw,14px); width:100%; padding:26px 10px 45px;
  perspective:1250px; transform-style:preserve-3d;
}
.tle-universal .hero-gallery-card{
  margin:0; position:relative; flex:0 1 13.2%; min-width:0;
  height:clamp(164px,19.5vw,270px); overflow:hidden; border-radius:13px;
  background:#e6e8e7; border:1px solid rgba(25,25,25,.14);
  box-shadow:0 12px 28px rgba(25,25,25,.12); isolation:isolate;
  transform:rotateY(var(--gallery-turn,0deg)) translateY(var(--gallery-y,0px)) scale(var(--gallery-scale,1));
  animation:tle-gallery-enter .62s cubic-bezier(.2,.85,.25,1) backwards;
  animation-delay:calc(var(--gallery-i,0) * 85ms);
}
.tle-universal .hero-gallery-card img{
  width:100%; height:100%; display:block; object-fit:cover;
  object-position:var(--gallery-pos,center); background:#f1f0ed;
}
.tle-universal .hero-gallery-card::after{
  position:absolute;content:'';inset:46% 0 0;pointer-events:none;
  background:linear-gradient(0deg,rgba(15,18,19,.74),transparent);
}
.tle-universal .hero-gallery-card figcaption{
  position:absolute;left:11px;bottom:13px;right:8px;z-index:1;
  color:white;font-family:'DM Sans',Arial,sans-serif;font-size:clamp(10px,.88vw,12px);
  line-height:1.3;font-weight:800;letter-spacing:.02em;text-shadow:0 1px 2px #0003;
}
.tle-universal .hero-gallery-card:nth-child(1){--gallery-turn:20deg;--gallery-y:9px;--gallery-scale:1.09}
.tle-universal .hero-gallery-card:nth-child(2){--gallery-turn:14deg;--gallery-y:4px;--gallery-scale:1.02}
.tle-universal .hero-gallery-card:nth-child(3){--gallery-turn:7deg;--gallery-y:0px;--gallery-scale:.96}
.tle-universal .hero-gallery-card:nth-child(4){--gallery-turn:0deg;--gallery-y:-4px;--gallery-scale:.94}
.tle-universal .hero-gallery-card:nth-child(5){--gallery-turn:-7deg;--gallery-y:0px;--gallery-scale:.96}
.tle-universal .hero-gallery-card:nth-child(6){--gallery-turn:-14deg;--gallery-y:4px;--gallery-scale:1.02}
.tle-universal .hero-gallery-card:nth-child(7){--gallery-turn:-20deg;--gallery-y:9px;--gallery-scale:1.09}
.tle-universal .hero-gallery-note{
  margin:0 auto 0; padding:0 22px 22px; text-align:center; max-width:850px;
  font:600 10px/1.5 'DM Sans',Arial,sans-serif; letter-spacing:.14em;
  text-transform:uppercase; color:#606d73;
}
@keyframes tle-gallery-enter{
  from{opacity:0; transform:translateY(24px) rotateY(0deg) scale(.9)}
  to{opacity:1; transform:rotateY(var(--gallery-turn,0deg)) translateY(var(--gallery-y,0px)) scale(var(--gallery-scale,1))}
}
@media(max-width:820px){
 .tle-universal .hero-gallery-stage{min-height:245px}
 .tle-universal .hero-gallery-rail{gap:6px;padding:18px 7px 35px}
 .tle-universal .hero-gallery-card{height:clamp(145px,25vw,210px);border-radius:10px}
 .tle-universal .hero-gallery-card figcaption{left:7px;bottom:8px;font-size:9px}
}
@media(max-width:600px){
 .tle-universal .hero.hero-gallery{padding:32px 0 10px;overflow:visible}
 .tle-universal .hero-gallery .hero-gallery-copy{width:calc(100% - 36px)}
 .tle-universal .hero-gallery .hero-gallery-kicker{font-size:9px;letter-spacing:.12em;margin-bottom:12px}
 .tle-universal .hero-gallery h1{font-size:clamp(37px,10vw,50px);line-height:1.04;letter-spacing:-.055em;margin:0 auto 15px}
 .tle-universal .hero-gallery .hero-gallery-copy>p[data-key=heroText]{font-size:14px;line-height:1.52;margin-bottom:19px}
 .tle-universal .hero-gallery .hero-gallery-copy .btn{min-height:52px;font-size:14px;padding:14px 24px}
 .tle-universal .hero-gallery-stage{min-height:262px;max-width:100%;margin:25px auto 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:auto;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-snap-type:x proximity;scroll-padding-inline:18px;perspective:none}
 .tle-universal .hero-gallery-rail{width:max-content;min-width:100%;justify-content:flex-start;padding:8px 18px 24px;gap:12px;transform-style:flat;perspective:none}
 .tle-universal .hero-gallery-card,
 .tle-universal .hero-gallery-card:nth-child(n){flex:0 0 min(72vw,292px);height:245px;transform:none;animation:tle-gallery-mobile-enter .48s ease-out backwards;box-shadow:0 7px 16px #19191922;border-radius:12px;scroll-snap-align:center}
 .tle-universal .hero-gallery-card figcaption{font-size:11px;left:12px;bottom:11px}
 .tle-universal .hero-gallery-note{font-size:9px;letter-spacing:.07em;padding:0 25px 26px}
}
@keyframes tle-gallery-mobile-enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){
 .tle-universal .hero-gallery-card,
 .tle-universal .hero-gallery-card:nth-child(n){animation:none!important}
 .tle-universal .hero-gallery-stage{scroll-behavior:auto}
}


/* The photo itself is a large accessible tap target for its exact demo. */
.tle-universal .hero-gallery-card .hero-gallery-hit{
  display:block;position:absolute;inset:0;z-index:1;border-radius:inherit;
  overflow:hidden;text-decoration:none;color:inherit;cursor:pointer
}
.tle-universal .hero-gallery-card .hero-gallery-hit img{
  display:block;width:100%;height:100%;object-fit:cover;
  object-position:var(--gallery-pos,center)
}
.tle-universal .hero-gallery-card figcaption{z-index:2;pointer-events:none}
.tle-universal .hero-gallery-card:focus-within{outline:3px solid #191919;outline-offset:4px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .tle-universal .hero-gallery-card .hero-gallery-hit img{transition:transform .35s ease}
 .tle-universal .hero-gallery-card:hover .hero-gallery-hit img{transform:scale(1.035)}
}
/* Consistent edge-to-edge photography: all projects receive the same crop rule. */
.tle-universal .hero-gallery-card .hero-gallery-hit img{
  object-fit:cover;object-position:var(--gallery-pos,center);
}


/* Desktop editorial direction (2026-11-07).
   Real project hero photos form one large portrait + six interactive previews.
   Preserve image links, 3-D entrance animation, hover scaling, mobile rail, prices. */
@media(min-width:1100px){
 .tle-universal .hero.hero-gallery{
   display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);
   grid-template-rows:minmax(0,1fr) auto;
   align-items:center;column-gap:clamp(26px,4vw,68px);
   padding:clamp(50px,5.7vw,92px) clamp(32px,5.3vw,104px) clamp(36px,4.6vw,74px);
   min-height:clamp(650px,53vw,790px);
   max-width:1800px;margin:0 auto;
 }
 .tle-universal .hero.hero-gallery .hero-gallery-copy{
   grid-column:1;grid-row:1/3;align-self:center;
   width:100%;max-width:540px;margin:0;text-align:left;padding:0;
 }
 .tle-universal .hero.hero-gallery .hero-gallery-kicker{text-align:left}
 .tle-universal .hero.hero-gallery h1{
   font-size:clamp(57px,5vw,94px);line-height:1.015;
   max-width:9ch;margin:18px 0 24px;text-align:left;text-wrap:balance;
 }
 .tle-universal .hero.hero-gallery .hero-gallery-copy>p[data-key=heroText]{
   margin:0 0 27px;max-width:38ch;font-size:clamp(16px,1.18vw,19px);
   line-height:1.65;text-align:left
 }
 .tle-universal .hero-gallery-stage{
   grid-column:2;grid-row:1;width:100%;max-width:920px;
   min-height:560px;height:clamp(545px,42vw,680px);
   margin:0;overflow:visible;
 }
 .tle-universal .hero-gallery-rail{
   display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,.62fr) minmax(0,.62fr);
   grid-template-rows:repeat(3,minmax(0,1fr));
   width:100%;height:100%;
   gap:clamp(8px,1vw,16px);padding:12px;
   align-items:stretch;justify-content:stretch;
 }
 .tle-universal .hero-gallery-card{
   height:100%;min-height:0;width:100%;min-width:0;flex:none;
   border-radius:clamp(15px,1.5vw,25px);
 }
 .tle-universal .hero-gallery-card:first-child{
   grid-column:1;grid-row:1/4;--gallery-turn:0deg;--gallery-y:0px;--gallery-scale:1;
 }
 .tle-universal .hero-gallery-card:not(:first-child) figcaption{
   left:8px;bottom:8px;right:6px;font-size:clamp(9px,.75vw,11px)
 }
 .tle-universal .hero-gallery-card:first-child figcaption{
   left:22px;bottom:22px;font-size:15px
 }
 .tle-universal .hero-gallery-note{
   grid-column:2;grid-row:2;margin:8px 0 0;
   text-align:left;padding:0 12px;color:#606d73;
 }
}


/* 2026-11-08: readable project names over light and dark photos, mobile included. */
.tle-universal .hero-gallery-card figcaption{
  display:block;width:max-content;max-width:calc(100% - 16px);
  padding:7px 10px;border-radius:8px;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:rgba(25,25,25,.92);box-shadow:0 2px 9px rgba(0,0,0,.22);
  text-shadow:none;line-height:1.3;overflow-wrap:anywhere;
}
@media(max-width:600px){
 .tle-universal .hero-gallery-card figcaption{
  max-width:calc(100% - 22px);padding:8px 11px;font-size:11px;
 }
}


/* 2026-11-08 iPad/tablet: visible demo count is curated at runtime.
   The original 13.2% flex basis assumed seven cards; after hiding three
   approved demos it left four tiny thumbnails occupying half the rail.
   Let only visible cards fill the available width, with swipe overflow
   if the owner chooses more projects. Desktop editorial grid and
   phone swipe gallery remain untouched. */
@media (min-width:601px) and (max-width:1099px){
  .tle-universal .hero.hero-gallery{
    padding-top:clamp(39px,5vw,65px);
  }
  .tle-universal .hero-gallery h1{
    font-size:clamp(47px,6.2vw,72px);
    line-height:1.055;
  }
  .tle-universal .hero-gallery .hero-gallery-copy>p[data-key=heroText]{
    max-width:760px;
    font-size:clamp(16px,1.7vw,19px);
    line-height:1.6;
  }
  .tle-universal .hero-gallery-stage{
    width:100%;
    min-height:0;
    margin-top:clamp(30px,4vw,52px);
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:auto;
    touch-action:pan-x pan-y;
    scroll-padding-inline:clamp(20px,3vw,40px);
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scroll-snap-type:x proximity;
  }
  .tle-universal .hero-gallery-rail{
    width:max-content;
    min-width:100%;
    justify-content:flex-start;
    align-items:stretch;
    gap:clamp(10px,1.4vw,17px);
    padding:clamp(22px,2.8vw,30px) clamp(20px,3vw,40px) 42px;
    min-height:0;
  }
  .tle-universal .hero-gallery-card{
    flex:0 0 clamp(235px,27vw,295px);
    max-width:none;
    min-width:0;
    height:clamp(280px,37vw,408px);
    border-radius:16px;
    scroll-snap-align:center;
  }
  /* Original seven-card perspective shrank the third/fourth curated
     thumbnails even after reflow. Use equal visual scale for tablet taps. */
  .tle-universal .hero-gallery-card:nth-child(n){
    --gallery-turn:0deg;
    --gallery-y:0px;
    --gallery-scale:1;
  }
  .tle-universal .hero-gallery-card figcaption{
    left:12px;
    right:10px;
    bottom:13px;
    font-size:clamp(11px,1.2vw,13px);
  }
  .tle-universal .hero-gallery-note{
    padding-bottom:27px;
    font-size:11px;
    letter-spacing:.105em;
  }
}


/* Extended portfolio rail: keep eleven real branded photos accessible and
   readable instead of forcing cards 8–11 into nonexistent desktop grid rows.
   The 7-card editorial grid is preserved when Studio curates <=7 visible. */
@media(min-width:1100px){
 .tle-universal .hero-gallery-stage[data-gallery-layout="extended"]{
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:auto;
  touch-action:pan-x pan-y;
  scroll-padding-inline:17px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#aaa195 #faf8f3;
 }
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"]{
  display:flex;
  width:max-content;
  min-width:100%;
  height:100%;
  grid-template-columns:none;
  grid-template-rows:none;
  align-items:stretch;
  justify-content:flex-start;
  gap:clamp(11px,1.2vw,17px);
  padding:14px 17px 32px;
 }
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"] .hero-gallery-card,
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"] .hero-gallery-card:first-child{
  grid-column:auto;
  grid-row:auto;
  flex:0 0 clamp(208px,19.5vw,275px);
  min-width:0;
  width:auto;
  height:100%;
  --gallery-turn:0deg;
  --gallery-y:0px;
  --gallery-scale:1;
  scroll-snap-align:start;
  border-radius:clamp(15px,1.4vw,21px);
 }
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"] .hero-gallery-card:first-child{
  flex-basis:clamp(250px,23vw,315px);
 }
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"] .hero-gallery-card figcaption{
  font-size:clamp(11px,.9vw,14px);
  left:13px;
  bottom:13px;
 }
}
/* Embedded original motion only replaces its matching real first-frame photo
   after the browser has played the first frame; links stay fully clickable. */
.tle-universal .hero-gallery-card .hero-gallery-motion{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 display:block;
 object-fit:cover;
 object-position:center;
 opacity:0;
 z-index:1;
 pointer-events:none;
 transition:opacity .28s ease;
 background:transparent;
}
.tle-universal .hero-gallery-card .hero-gallery-motion.is-playing{opacity:1}
@media(prefers-reduced-motion:reduce){
 .tle-universal .hero-gallery-card .hero-gallery-motion{display:none!important}
}

/* Jaramillo / SOVA: respect approved photo proportions in the mobile and
   tablet portfolio rail. The original fashion video is vertical (512 × 682);
   object-fit:cover used to crop faces inside landscape phone thumbnails. */
.tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"] .hero-gallery-hit{
 background:#e9ded8;
 isolation:isolate;
}
.tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"] .hero-gallery-hit::before{
 content:"";
 position:absolute;
 inset:-12px;
 z-index:0;
 pointer-events:none;
 background:#e9ded8 url("https://thelaunchera.github.io/demo-booking-landing-/jaramillo-boutique/assets/noche.webp") center / cover no-repeat;
 filter:blur(16px);
 opacity:.28;
}
.tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"] .hero-gallery-hit>img{
 position:relative;
 z-index:1;
 object-fit:contain!important;
 object-position:center center!important;
 background:transparent!important;
}
.tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"] .hero-gallery-hit>.hero-gallery-motion{
 object-fit:contain!important;
 object-position:center center!important;
 background:transparent!important;
 z-index:2;
}
.tle-universal .hero-gallery-card[data-demo="sova"] .hero-gallery-hit{
 background:#071f58;
}
.tle-universal .hero-gallery-card[data-demo="sova"] .hero-gallery-hit>img{
 object-fit:contain!important;
 object-position:center center!important;
 background:#071f58!important;
}
@media (hover:hover){
 .tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"]:hover .hero-gallery-hit>img,
 .tle-universal .hero-gallery-card[data-demo="sova"]:hover .hero-gallery-hit>img{
  transform:none!important;
 }
}
@media (max-width:600px){
 .tle-universal .hero-gallery-card[data-demo="jaramillo-boutique"] .hero-gallery-hit,
 .tle-universal .hero-gallery-card[data-demo="sova"] .hero-gallery-hit{
  border-radius:inherit;
 }
}


/* Keep an expanded (8–11 projects) iPad rail large enough to appreciate
   portrait faces. Four-project curated rails retain their existing fill. */
@media (min-width:601px) and (max-width:1099px){
 .tle-universal .hero-gallery-rail[data-gallery-layout="extended"] .hero-gallery-card{
  flex:0 0 clamp(195px,26vw,300px);
  min-width:195px;
  max-width:300px;
 }
}

/* Experience Cleaning: display the original portrait motion without cropping the cleaner. */
.tle-universal .hero-gallery-card[data-demo="experience-cleaning"] .hero-gallery-hit{background:#edeae3}
.tle-universal .hero-gallery-card[data-demo="experience-cleaning"] .hero-gallery-hit>img,
.tle-universal .hero-gallery-card[data-demo="experience-cleaning"] .hero-gallery-hit>.hero-gallery-motion{
 object-fit:contain!important;object-position:center!important;background:transparent!important;
}
@media(hover:hover){
 .tle-universal .hero-gallery-card[data-demo="experience-cleaning"]:hover .hero-gallery-hit>img{transform:none!important}
}

/* Featured Sneekiefs and FRESKA: preserve original full campaign artwork across phones and desktops. */
.tle-universal .hero-gallery-card[data-demo="sneekiefs"] .hero-gallery-hit{background:#168DD2}
.tle-universal .hero-gallery-card[data-demo="freska"] .hero-gallery-hit{background:#2445E8}
.tle-universal .hero-gallery-card[data-demo="sneekiefs"] .hero-gallery-hit>img,
.tle-universal .hero-gallery-card[data-demo="freska"] .hero-gallery-hit>img{
 object-fit:contain!important;object-position:center center!important;background:transparent!important;
}
@media(hover:hover){
 .tle-universal .hero-gallery-card[data-demo="sneekiefs"]:hover .hero-gallery-hit>img,
 .tle-universal .hero-gallery-card[data-demo="freska"]:hover .hero-gallery-hit>img{transform:none!important}
}
