/* ACS Public Website Theme (industrial / dark) */
:root{
  --bg:#0b0c0f;
  --bg2:#12141a;
  --card:#151821cc;
  --line:#2a2f3a;
  --text:#f3f5f7;
  --muted:#b8c0cc;
  --acs-red:#b11414;
  --acs-red2:#e12222;
  --shadow: 0 14px 40px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, #1b1f28 0%, var(--bg) 55%) fixed;
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1180px; margin:0 auto; padding:0 18px}

.public-topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(9,10,12,.70);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.public-nav{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width:220px;
}
.brand img{
  width:46px; height:46px; object-fit:cover;
  border-radius:12px; background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.brand .name{
  line-height:1.05;
  font-weight:800;
  letter-spacing:.3px;
}
.brand .tag{font-size:12px; color:var(--muted); font-weight:600; margin-top:2px}

.nav-links{
  display:flex; gap:14px; margin-left:auto; flex-wrap:wrap;
}
.nav-links .navlink{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:800;
  border:1px solid transparent;
}
.nav-links .navlink:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.30);
}
.btn-primary{
  background: linear-gradient(180deg, var(--acs-red2), var(--acs-red));
  border-color: rgba(255,255,255,.10);
}
.btn-primary:hover{filter: brightness(1.05)}
.btn-ghost{
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover{background: rgba(255,255,255,.07)}

.hero{
  position:relative;
  min-height: 72vh;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(800px 500px at 25% 20%, rgba(225,34,34,.25), rgba(0,0,0,0) 60%),
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.28) 55%, rgba(0,0,0,.70)),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.15) 50%, rgba(0,0,0,.80));
}

/* Quote page: light overlay + form on top of the photo */
.hero-overlay--light{
  /* Slightly darker overlay so the photo isn't washed out (keeps same layout/boxes) */
  background:
    radial-gradient(800px 500px at 25% 20%, rgba(225,34,34,.10), rgba(0,0,0,0) 60%),
    linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.18) 55%, rgba(255,255,255,.45)),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.15) 55%, rgba(255,255,255,.65));
}
.hero--quote{min-height:82vh;display:flex;align-items:center;padding:48px 0;}
.quote-hero{position:relative; z-index:2; display:grid; grid-template-columns: 1fr 1fr; gap:24px; align-items:start;}
.quote-hero__left h1{color:#111; margin:0 0 8px;}
.quote-hero__left p{color:#222;}
.quote-tip{margin-top:14px; background:rgba(255,255,255,.72); border:1px solid rgba(0,0,0,.12);}
.quote-form{background:rgba(255,255,255,.86); border:1px solid rgba(0,0,0,.12); padding:18px; border-radius:18px; box-shadow: 0 12px 36px rgba(0,0,0,.12);}
.quote-form label{color:#111; font-weight:800;}
.quote-form input,.quote-form select,.quote-form textarea{background:rgba(255,255,255,.95); border:1px solid rgba(0,0,0,.18); color:#111;}
.quote-form input:focus,.quote-form select:focus,.quote-form textarea:focus{outline:none; box-shadow:0 0 0 3px rgba(225,34,34,.18); border-color: rgba(225,34,34,.55);}
.quote-form .btn-primary{background:var(--red); border:none; color:#fff;}

@media (max-width: 980px){
  .quote-hero{grid-template-columns:1fr;}
}
.hero-inner{position:relative; padding:64px 0}
.hero-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-weight:900;
  letter-spacing:.8px;
  font-size:12px;
}
.hero-title{
  margin:14px 0 8px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 950;
  letter-spacing: .2px;
  text-transform: uppercase;
  line-height:1.02;
}
.hero-title span{
  color: rgba(255,255,255,.88);
  font-weight: 850;
}
.hero-subtitle{
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height:1.55;
  margin: 12px 0 22px;
}
.hero-subline{
  display: inline-block;
  margin-top: 6px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
  letter-spacing: .2px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin: 10px 0 26px}
.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  max-width: 880px;
}
.stat{
  padding:14px 14px;
  border-radius: var(--radius);
  background: rgba(10,12,16,.55);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.stat-k{font-weight:950; letter-spacing:.2px; text-transform:uppercase; font-size:13px}
.stat-v{color:var(--muted); margin-top:6px; font-weight:700}

.strip{
  padding: 26px 0 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.strip-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}
.strip-card{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.55);
  box-shadow: var(--shadow);
}
.strip-card img{width:100%; height:170px; object-fit: contain; object-position:center; display:block}
.strip-body{padding:14px}
.strip-body h3{margin:0 0 6px; font-size:16px; text-transform:uppercase; letter-spacing:.3px}
.strip-body p{margin:0; color:var(--muted); font-weight:650; line-height:1.35; font-size:13px}

.section{padding: 52px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px}
.section-head h2{margin:0; font-size:28px; text-transform:uppercase; letter-spacing:.3px}
.section-head p{margin:0; color:var(--muted); font-weight:700}

.steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top: 14px;
}
.step{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.55);
  box-shadow: var(--shadow);
}
.step-num{
  font-weight:950;
  color: rgba(225,34,34,.95);
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.step h3{margin:0 0 6px; text-transform:uppercase; letter-spacing:.3px}
.step p{margin:0; color:var(--muted); font-weight:650; line-height:1.45}

.cta{
  margin-top: 22px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(225,34,34,.18), rgba(10,12,16,.65));
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.cta h3{margin:0 0 4px; text-transform:uppercase; letter-spacing:.3px}
.cta p{margin:0; color:var(--muted); font-weight:650}

.public-footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0 34px;
  color: var(--muted);
}
.public-footer .footer-grid{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  font-weight:700;
}
.small{font-size:12px; opacity:.85}

@media (max-width: 980px){
  .strip-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .steps{grid-template-columns: 1fr}
  .hero-stats{grid-template-columns: 1fr}
}


.page-hero{
  padding: 44px 0 10px;
  background: linear-gradient(180deg, rgba(225,34,34,.14), rgba(0,0,0,0));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.page-hero h1{
  margin:0 0 8px;
  font-size: 34px;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.page-hero p{margin:0; color:var(--muted); font-weight:700; max-width:820px}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.gallery-item{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.55);
  box-shadow: var(--shadow);
}
.gallery-item img{width:100%; height:260px; object-fit:cover; display:block; filter: contrast(1.05) saturate(1.05)}
.gallery-cap{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85));
  font-weight:900;
  letter-spacing:.2px;
  text-transform:uppercase;
  font-size:12px;
}
@media (max-width: 980px){
  .gallery{grid-template-columns: 1fr}
  .gallery-item img{height:240px}
}


.card{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.55);
  box-shadow: var(--shadow);
  padding:18px;
}
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
}
label{display:block; font-weight:900; letter-spacing:.2px; text-transform:uppercase; font-size:12px; color:var(--muted); margin:10px 0 6px}
textarea{min-height:140px; resize:vertical}
.form-row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.help{color:var(--muted); font-weight:650; font-size:13px; line-height:1.45}
.alert{padding:12px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background: rgba(225,34,34,.12); color: rgba(255,255,255,.92); font-weight:800}
@media (max-width: 980px){
  .split{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}


/* Reviews page helpers */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px){ .grid-3 { grid-template-columns: 1fr; } }
.stars { font-size: 18px; letter-spacing: 2px; }
.star { opacity: .25; }
.star.on { opacity: 1; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.meta .name { font-weight: 700; }
.meta .date { font-size: 12px; opacity: .7; }

/* Star rating input */
.rating { display:flex; flex-direction: row-reverse; justify-content:flex-end; gap:6px; margin: 8px 0 14px; }
.rating input { display:none; }
.rating label { cursor:pointer; font-size: 26px; opacity: .25; transition: opacity .15s ease; }
.rating input:checked ~ label { opacity: 1; }
.rating label:hover, .rating label:hover ~ label { opacity: 1; }
.form input, .form textarea { width:100%; }
.form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px){
  .ba-frame{ height: clamp(160px, 55vw, 260px); }
  .ba-handle{ width: 34px; height: 34px; }
  .ba-handle svg{ width: 18px; height: 18px; }
 .form .row { grid-template-columns: 1fr; } }

/* Photo gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 980px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 620px){.gallery-grid{grid-template-columns:1fr}}
.gallery-card{position:relative;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#0e1115}
.gallery-card img{width:100%;height:230px;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.05)}
.gallery-card .cap{position:absolute;left:12px;right:12px;bottom:10px;padding:10px 12px;border-radius:14px;background:rgba(0,0,0,.55);backdrop-filter: blur(6px);border:1px solid rgba(255,255,255,.10);font-weight:700}


.hero--small{min-height:280px}


/* Before/After slider */
.ba-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 900px){
  .ba-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  /* Make the before/after cards easier to scroll past on phones */
  .ba-card{ padding: 12px; border-radius: 16px; }
  .ba-slider{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  /* After image will set --ba-ratio via JS (fallback 16/9) */
  aspect-ratio: var(--ba-ratio, 16 / 9);
  height:auto;
}
  .ba-handle::before{ width: 28px; height: 28px; }
}
.ba-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.ba-title{
  font-weight: 700;
  margin: 2px 2px 10px;
  letter-spacing: .2px;
}
.ba-slider{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  /* After image will set --ba-ratio via JS (fallback 16/9) */
  aspect-ratio: var(--ba-ratio, 16 / 9);
  height:auto;
}
.ba-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain; /* show full image; After defines the frame */
  display:block;
}
.ba-before-wrap{
  position:absolute;
  inset:0;
  width:50%;
  overflow:hidden;
  border-right: 2px solid rgba(255,255,255,0.6);
}
.ba-range{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0;
  -webkit-appearance:none; appearance:none;
  /* Let users scroll past the card on mobile. Dragging is handled on the grab handle. */
  touch-action: pan-y;
  pointer-events:none;
}
.ba-handle{
  position:absolute;
  top:0;
  bottom:0;
  width:44px;
  margin-left:-22px;
  left:50%;
  z-index:4;
  pointer-events:auto;
  cursor: ew-resize;
  touch-action: none;
}
.ba-handle-line{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:0;
  border-left: 2px solid rgba(255,255,255,0.55);
}
.ba-handle:before{
  content:"";
  position:absolute;
  left:-16px;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:999px;
  background: rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.ba-handle:after{
  content:"⇆";
  position:absolute;
  left:-16px;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  opacity:.9;
}
.ba-label{
  position:absolute;
  top:10px;
  z-index:6;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.2);
}
.ba-label-before{ left:10px; }
.ba-label-after{ right:10px; }


/* --- Services cards on Home (CMS editable) --- */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.svc-card{background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.svc-img{width:100%;height:180px;display:block;background:#0b0b0b}
.svc-body{padding:14px 14px 16px}
.svc-body h3{margin:0 0 8px;font-size:1.05rem}
.svc-body p{margin:0;color:var(--muted);line-height:1.35}



/* Reviews carousel */
.carousel{
  position:relative;
  margin-top:16px;
}
.carousel-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:6px 2px 10px;
}
.carousel-track::-webkit-scrollbar{ height:10px; }
.carousel-track::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.12); border-radius:8px; }
.review-card{
  flex:0 0 100%;
  scroll-snap-align:start;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  color:#0f172a;
}
.review-card.blank{
  opacity:.45;
  filter:saturate(.4);
}
.review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.review-name{ font-weight:800; color:#0f172a; }
.review-stars{ white-space:nowrap; font-size:14px; letter-spacing:.5px; color:#0f172a; }
.review-stars .star{ opacity:.25; }
.review-stars .star.on{ opacity:1; }
.review-body{ color:#0f172a; line-height:1.5; min-height:66px; }
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(15,23,42,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
}
.carousel-btn.prev{ left:-10px; }
.carousel-btn.next{ right:-10px; }

@media (min-width: 720px){
  .review-card{ flex-basis: calc(50% - 8px); }
  .carousel-btn.prev{ left:-14px; }
  .carousel-btn.next{ right:-14px; }
}
@media (min-width: 1024px){
  .review-card{ flex-basis: calc(33.333% - 11px); }
}


/* Quote + Reviews: force readable text on light hero images */
.quote-hero .quote-hero__left,
.quote-hero .quote-hero__left *,
.reviews-hero .hero__content,
.reviews-hero .hero__content * {
  color: #111 !important;
}
.quote-hero .hero-overlay--light {
  background: rgba(255,255,255,0.86) !important;
}
.reviews-hero .hero-overlay {
  background: rgba(255,255,255,0.82) !important;
}

/* Improve readability on quote & review hero panels */
.quote-hero .hero__content, .reviews-hero .hero__content{ color: #111; }
.quote-hero .hero__title, .quote-hero .hero__subtitle, .quote-hero .hero__kicker,
.reviews-hero .hero__title, .reviews-hero .hero__subtitle, .reviews-hero .hero__kicker{ color:#111; text-shadow:none; }
.quote-hero .hero__content{ background: rgba(255,255,255,0.65); padding: 14px 16px; border-radius: 14px; }
.reviews-hero .hero__content{ background: rgba(255,255,255,0.65); padding: 14px 16px; border-radius: 14px; }

@media (max-width: 520px){
  .ba-slider{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  /* After image will set --ba-ratio via JS (fallback 16/9) */
  aspect-ratio: var(--ba-ratio, 16 / 9);
  height:auto;
}
  .ba-handle{width:36px;margin-left:-18px;}
  .ba-handle:before,.ba-handle:after{left:-14px;width:28px;height:28px;}
}

.quote-hero h1, .quote-hero h2, .quote-hero p{color:#0b0f15;}
.review-hero h1, .review-hero p, .reviews-hero h1, .reviews-hero p{color:#0b0f15;}

.quote-hero .section-title, .quote-hero .section-subtitle{color:#0b0f15;}


/* Make small heroes (e.g., Reviews) readable on light images */
.hero.hero--small .hero__overlay{background:rgba(255,255,255,.55);}
.hero.hero--small h1, .hero.hero--small p{color:#111; text-shadow:none;}

.quote-hero__title, .quote-hero__subtitle, .quote-hero__lead{background:rgba(255,255,255,.65); display:inline-block; padding:6px 10px; border-radius:10px;}
.quote-hero__lead{margin-top:10px;}

/* --- PATCH v20: Quote page dark boxes + left text black (do not change background photo) --- */
.hero--quote .quote-hero__left h1,
.hero--quote .quote-hero__left p{
  color:#111 !important;
  text-shadow:none !important;
}

.hero--quote .quote-tip{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
}
.hero--quote .quote-tip h3,
.hero--quote .quote-tip p,
.hero--quote .quote-tip *{
  color:#fff !important;
}

.hero--quote .quote-form{
  background: rgba(0,0,0,.60);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 36px rgba(0,0,0,.30);
}
.hero--quote .quote-form label{
  color:#fff;
}
.hero--quote .quote-form input,
.hero--quote .quote-form select,
.hero--quote .quote-form textarea{
  background: rgba(0,0,0,.50);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}
.hero--quote .quote-form input::placeholder,
.hero--quote .quote-form textarea::placeholder{
  color: rgba(255,255,255,.60);
}

/* --- PATCH v20: Before/After cards adapt to AFTER image aspect ratio (no fixed height) --- */
.ba-slider{
  height:auto !important;
  aspect-ratio: var(--ba-ratio, 4 / 3);
}

/* --- PATCH v23: Before/After slider frame matches AFTER image (no cropping / no giant zoom) --- */
/* Make the AFTER image participate in layout so it defines the box height automatically. */
.ba-slider{aspect-ratio:auto !important; max-height:none !important; height:auto !important; overflow:hidden;}
.ba-slider .ba-after{position:relative !important; inset:auto !important; display:block !important; width:100% !important; height:auto !important; object-fit:contain !important;}
/* Keep BEFORE as an overlay that fills the AFTER-defined box */
.ba-slider .ba-before-wrap{position:absolute !important; top:0 !important; left:0 !important; bottom:0 !important; width:100%; overflow:hidden;}
.ba-slider .ba-before{position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; transform: translate(var(--ba-before-x, 0px), var(--ba-before-y, 0px)) scale(var(--ba-before-zoom, 1)); transform-origin:center;}
/* Handle stays full height of the box */
.ba-slider .ba-handle{height:100% !important; top:0 !important;}

/* =========================================================
   BA PATCH v26 — stable reveal + drag-anywhere + no bars
   - Fixes old rules forcing .ba-before-wrap width:100% !important
   - Ensures both images fill the same frame (object-fit: cover)
   - Height follows AFTER image ratio (JS sets --ba-ratio)
   ========================================================= */

.ba-slider{
  position: relative !important;
  width: 100% !important;
  aspect-ratio: var(--ba-ratio, 4 / 3) !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

.ba-slider .ba-after,
.ba-slider .ba-before{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.ba-slider .ba-before-wrap{
  position: absolute !important;
  inset: 0 !important;
  /* Reveal width driven by CSS var so it beats older !important rules */
  width: calc(var(--ba-pos, 50) * 1%) !important;
  overflow: hidden !important;
}

/* Range input stays for accessibility, but doesn't steal touch/mouse events */
.ba-slider .ba-scrub{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ba-slider{
  touch-action: none !important;
  cursor: ew-resize;
}

.ba-slider .ba-handle{
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 44px !important;
  margin-left: -22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important; /* drag handled by slider */
}

.ba-slider .ba-handle-line{
  width: 3px !important;
  height: 84% !important;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 3px !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35) !important;
}
