.spalux-auto-slider{position:relative;width:100%;max-width:100%;--spalux-slider-fade:rgba(253,253,240,1)}
.spalux-auto-slider::after{content:"";position:absolute;z-index:4;top:0;right:-1px;bottom:50px;width:clamp(42px,5vw,68px);background:linear-gradient(90deg,rgba(253,253,240,0) 0%,rgba(253,253,240,.72) 62%,var(--spalux-slider-fade) 100%);pointer-events:none;opacity:0;transition:opacity .2s ease}
.spalux-auto-slider.is-ready.has-overflow:not(.is-at-end)::after{opacity:1}
.spalux-auto-slider__viewport{overflow:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;outline:none}
.spalux-auto-slider__viewport::-webkit-scrollbar{display:none}
.spalux-auto-slider__viewport.is-dragging{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none;user-select:none}
.spalux-auto-slider__track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/3);gap:16px}
.spalux-auto-card{position:relative;display:block;min-width:0;aspect-ratio:3/4;border-radius:8px;overflow:hidden;text-decoration:none;background:#28301E;scroll-snap-align:start;isolation:isolate}
.spalux-auto-card img{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:inherit!important;transition:transform .35s ease;pointer-events:none;user-select:none}
.spalux-auto-card:hover img{transform:scale(1.025)}
.spalux-auto-card__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.74) 100%);z-index:1}
.spalux-auto-card__copy{position:absolute;z-index:2;left:16px;right:16px;bottom:16px;display:flex;flex-direction:column;gap:5px;color:white}
.spalux-auto-card__copy strong{font-size:14px;line-height:1.25;color:#fff}
.spalux-auto-card__copy span{font-size:12px;line-height:1.35;color:#FAFD87}
.spalux-auto-slider__nav{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.spalux-auto-slider__nav button{appearance:none;border:0;width:38px;height:38px;padding:0;border-radius:8px;background:#39442B;color:white;display:grid;place-items:center;cursor:pointer;transition:.2s ease}
.spalux-auto-slider__nav button:hover{background:#28301E}
.spalux-auto-slider__nav button:disabled{opacity:.35;cursor:default}
.spalux-auto-slider__arrow{display:block;width:11px;height:11px;fill:currentColor}
.spalux-auto-slider__arrow--left{transform:rotate(180deg)}
.spalux-auto-slider__viewport:focus-visible{outline:2px solid #39442B;outline-offset:4px}
.spalux-realizacje-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(hover:hover) and (pointer:fine){.spalux-auto-slider__viewport{cursor:grab}}
@media(max-width:1024px){.spalux-auto-slider__track{grid-auto-columns:calc((100% - 16px)/2)}.spalux-realizacje-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
  /*
   * Flex na telefonie usuwa błąd obliczania wysokości CSS Grid, który występuje
   * przy procentowej szerokości kolumny i kafelkach z aspect-ratio. Bez tego
   * Elementor potrafił nadać torowi wysokość jedynie widocznego fragmentu zdjęcia.
   */
  .elementor-widget-shortcode:has(.spalux-auto-slider),
  .elementor-widget-shortcode:has(.spalux-auto-slider)>.elementor-widget-container,
  .elementor-widget-shortcode:has(.spalux-auto-slider) .elementor-shortcode{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .spalux-auto-slider{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .spalux-auto-slider::after{
    bottom:48px;
    width:42px;
  }
  .spalux-auto-slider__viewport{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
  .spalux-auto-slider__track{
    display:flex!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    gap:12px!important;
  }
  .spalux-auto-card{
    flex:0 0 82%!important;
    width:82%!important;
    max-width:82%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:4/5!important;
  }
  .spalux-auto-card__copy{left:14px;right:14px;bottom:14px}
  .spalux-auto-slider__nav{margin-top:10px}
  .spalux-realizacje-grid{grid-template-columns:1fr;gap:12px}
}

/*
 * Single realizacji: odporność głównego zdjęcia na globalne style Elementora,
 * WP Rocket/Perfmatters oraz błędną wysokość kontenera na telefonie.
 */
@media(max-width:767px){
  body.single-realizacja .spalux-sync-gallery--main,
  body.single-realizacje .spalux-sync-gallery--main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.single-realizacja .spalux-gallery__main-viewport,
  body.single-realizacje .spalux-gallery__main-viewport{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:4/5!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    opacity:1!important;
    visibility:visible!important;
    isolation:isolate!important;
  }
  body.single-realizacja .spalux-gallery__main-track,
  body.single-realizacje .spalux-gallery__main-track{
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
  }
  body.single-realizacja .spalux-gallery__main-slide,
  body.single-realizacje .spalux-gallery__main-slide{
    position:relative!important;
    display:block!important;
    flex:0 0 100%!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.single-realizacja img.spalux-gallery__main-image,
  body.single-realizacje img.spalux-gallery__main-image{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none;
  }
}

/* =========================================================
   SPA-LUX — pełnoekranowa dynamiczna galeria realizacji
   Shortcode: [spalux_realizacje_showcase]
   v1.0.3: full-bleed + poprawiony responsive
   ========================================================= */
html:has(.spalux-showcase),
body:has(.spalux-showcase),
html.spalux-showcase-present,
body.spalux-showcase-present{
  overflow-x:clip!important;
}

/* Elementor nie może przycinać shortcodu do szerokości boxed container. */
.elementor-widget-shortcode:has(.spalux-showcase),
.elementor-widget-shortcode:has(.spalux-showcase) > .elementor-widget-container,
.spalux-showcase-host{
  overflow:visible!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}

.spalux-showcase{
  --sl-showcase-green:#28301E;
  --sl-showcase-green-2:#39442B;
  --sl-showcase-accent:#FAFD87;
  position:relative!important;
  isolation:isolate!important;

  /* Wyjście z ograniczonego kontenera Elementora do pełnego viewportu. */
  width:100vw!important;
  max-width:100vw!important;
  min-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;

  min-height:100svh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
  background:#060706!important;
  color:#fff!important;
  box-sizing:border-box!important;
}
.spalux-showcase *,
.spalux-showcase *::before,
.spalux-showcase *::after{box-sizing:border-box}
.spalux-showcase__backgrounds,
.spalux-showcase__background,
.spalux-showcase__overlay{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-height:none!important;
}
.spalux-showcase__backgrounds{z-index:0;overflow:hidden}
.spalux-showcase__background{
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  opacity:0;
  transform:scale(1.035);
  transition:opacity .55s ease,transform 1.1s ease;
  border-radius:0!important;
  pointer-events:none;
}
.spalux-showcase__background.is-active{opacity:1;transform:scale(1)}
.spalux-showcase__overlay{
  z-index:1;
  background:linear-gradient(90deg,rgba(2,3,2,.93) 0%,rgba(2,3,2,.72) 28%,rgba(2,3,2,.32) 58%,rgba(2,3,2,.10) 100%);
  pointer-events:none;
}
.spalux-showcase__inner{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(470px,.95fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(54px,5vw,86px);
  width:min(1440px,calc(100% - 14vw));
  min-height:100svh;
  min-height:100dvh;
  margin:0 auto;
  padding:clamp(58px,7vh,104px) 0;
}
.spalux-showcase__copy{
  position:relative;
  width:100%;
  max-width:650px;
  min-height:300px;
  padding-left:clamp(18px,3vw,58px);
  align-self:center;
}
.spalux-showcase__copy-slide{
  position:absolute;
  inset:50% 0 auto 0;
  width:100%;
  transform:translateY(calc(-50% + 22px));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .32s ease,transform .42s ease,visibility .32s ease;
}
.spalux-showcase__copy-slide.is-active{
  transform:translateY(-50%);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.spalux-showcase__copy h2{
  margin:0 0 22px!important;
  color:#fff!important;
  font-family:"Imbue",Georgia,serif!important;
  font-size:clamp(46px,4vw,76px)!important;
  font-weight:400!important;
  line-height:.98!important;
  letter-spacing:-.015em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.spalux-showcase__copy p{
  max-width:620px;
  margin:0 0 26px!important;
  color:rgba(255,255,255,.92)!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:clamp(14px,1vw,17px)!important;
  line-height:1.55!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.spalux-showcase__copy a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:43px!important;
  padding:11px 17px!important;
  border:0!important;
  border-radius:7px!important;
  background:var(--sl-showcase-green-2)!important;
  color:#fff!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  box-shadow:none!important;
  transition:background-color .2s ease,transform .2s ease!important;
}
.spalux-showcase__copy a:hover{background:var(--sl-showcase-green)!important;transform:translateY(-1px)}
.spalux-showcase__cards-wrap{
  min-width:0;
  width:100%;
  align-self:center;
  overflow:visible;
}
.spalux-showcase__cards{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:36px 4px 24px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
}
.spalux-showcase__cards::-webkit-scrollbar{display:none}
.spalux-showcase__card{
  position:relative!important;
  flex:0 0 clamp(138px,8.4vw,164px)!important;
  aspect-ratio:3/4!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:8px!important;
  background:#111!important;
  box-shadow:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  touch-action:manipulation;
  scroll-snap-align:center;
  transform:translateY(0) scale(1);
  transition:transform .25s ease,border-color .25s ease,opacity .25s ease!important;
}
.spalux-showcase__card:hover{transform:translateY(-4px)}
.spalux-showcase__card.is-active{
  border-color:rgba(250,253,135,.78)!important;
  transform:translateY(-10px) scale(1.025);
}
.spalux-showcase__card img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  transition:transform .35s ease!important;
}
.spalux-showcase__card:hover img,.spalux-showcase__card.is-active img{transform:scale(1.035)}
.spalux-showcase__card-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,0) 42%,rgba(0,0,0,.78) 100%);pointer-events:none}
.spalux-showcase__card-copy{
  position:absolute;
  z-index:2;
  left:13px;
  right:13px;
  bottom:13px;
  display:flex;
  flex-direction:column;
  gap:5px;
  text-align:left;
  pointer-events:none;
  min-width:0;
  overflow:hidden;
}
.spalux-showcase__card-copy strong{
  display:-webkit-box!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  color:#fff!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-transform:none!important;
  overflow-wrap:anywhere!important;
}
.spalux-showcase__card-copy span{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  color:var(--sl-showcase-accent)!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.35!important;
}

/* Duże ekrany: większe, czytelniejsze kafelki bez wpływu na mobile. */
@media(min-width:1051px){
  .spalux-showcase__card-copy{
    left:15px;
    right:15px;
    bottom:15px;
    gap:6px;
  }
  .spalux-showcase__card-copy strong{font-size:13px!important}
  .spalux-showcase__card-copy span{font-size:10px!important}
}
.spalux-showcase__nav{display:flex;justify-content:center;gap:8px;margin-top:8px}
.spalux-showcase__nav button{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:7px!important;
  background:rgba(57,68,43,.95)!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:17px!important;
  line-height:1!important;
  box-shadow:none!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.spalux-showcase__nav button:hover{background:var(--sl-showcase-green)!important}
.spalux-showcase__dots{
  position:absolute;
  z-index:4;
  top:50%;
  left:clamp(26px,5.2vw,100px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  width:24px;
  height:min(48vh,520px);
  transform:translateY(-50%);
}
.spalux-showcase__dots::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:10px;
  bottom:10px;
  left:50%;
  width:1px;
  background:rgba(220,225,239,.45);
  transform:translateX(-50%);
}
.spalux-showcase__dot{
  display:grid!important;
  place-items:center!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#D7DCEA!important;
  color:#28301E!important;
  font-family:Arial,sans-serif!important;
  font-size:0!important;
  line-height:1!important;
  box-shadow:0 0 0 5px rgba(8,10,8,.2)!important;
  transform:scale(.34);
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  transition:transform .2s ease,background-color .2s ease!important;
}
.spalux-showcase__dot span{opacity:0;font-size:9px;font-weight:700}
.spalux-showcase__dot.is-active{transform:scale(1);background:#D7DCEA!important}
.spalux-showcase__dot.is-active span{opacity:1}

/* Mniejsze laptopy: nadal desktop, ale bez ściskania prawej kolumny. */
@media(max-width:1280px){
  .spalux-showcase__inner{
    width:min(1180px,calc(100% - 9vw));
    grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);
    gap:36px;
  }
  .spalux-showcase__dots{left:20px}
  .spalux-showcase__card{flex-basis:clamp(170px,14vw,190px)!important}
}

/* Tablet / wąskie okno: przechodzimy na logiczny układ pionowy wcześniej,
   zanim grid zacznie ściskać opis do kilku znaków w wierszu. */
@media(max-width:1050px){
  .spalux-showcase{
    min-height:100svh!important;
    min-height:100dvh!important;
  }
  .spalux-showcase__overlay{
    background:linear-gradient(180deg,rgba(2,3,2,.22) 0%,rgba(2,3,2,.54) 42%,rgba(2,3,2,.90) 100%);
  }
  .spalux-showcase__inner{
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:stretch;
    gap:18px;
    width:100%;
    min-height:100svh;
    min-height:100dvh;
    padding:clamp(54px,8vh,82px) clamp(22px,5vw,46px) clamp(22px,4vh,34px);
  }
  .spalux-showcase__copy{
    order:1;
    width:min(680px,100%);
    max-width:680px;
    min-height:215px;
    margin:0;
    padding-left:0;
    align-self:flex-start;
  }
  .spalux-showcase__copy-slide{
    inset:auto 0 0 0;
    width:100%;
    transform:translateY(14px);
  }
  .spalux-showcase__copy-slide.is-active{transform:translateY(0)}
  .spalux-showcase__copy h2{
    margin-bottom:14px!important;
    font-size:clamp(42px,7vw,62px)!important;
    line-height:.98!important;
  }
  .spalux-showcase__copy p{
    max-width:650px;
    margin-bottom:18px!important;
    font-size:14px!important;
    line-height:1.5!important;
  }
  .spalux-showcase__copy a{min-height:42px!important}
  .spalux-showcase__cards-wrap{order:2;width:100%;min-width:0}
  .spalux-showcase__cards{
    margin:0 calc(-1 * clamp(22px,5vw,46px));
    width:calc(100% + (2 * clamp(22px,5vw,46px)));
    padding:15px clamp(22px,5vw,46px) 12px;
    gap:11px;
  }
  .spalux-showcase__card{
    flex:0 0 clamp(138px,22vw,168px)!important;
    max-width:168px!important;
    min-width:138px!important;
  }
  .spalux-showcase__card.is-active{transform:translateY(-4px) scale(1.018)}
  .spalux-showcase__dots{display:none!important}
  .spalux-showcase__nav{justify-content:flex-start;margin-top:4px}
}

@media(max-width:600px){
  .spalux-showcase__inner{
    padding:54px 16px 18px;
    gap:14px;
  }
  .spalux-showcase__copy{
    min-height:230px;
  }
  .spalux-showcase__copy h2{
    margin-bottom:13px!important;
    font-size:clamp(38px,12vw,50px)!important;
    line-height:.98!important;
  }
  .spalux-showcase__copy p{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:5;
    margin-bottom:17px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
  .spalux-showcase__copy a{
    min-height:42px!important;
    padding:10px 14px!important;
    font-size:10px!important;
  }
  .spalux-showcase__cards{
    margin:0 -16px;
    width:calc(100% + 32px);
    padding:13px 16px 10px;
  }
  .spalux-showcase__card{
    flex:0 0 min(42vw,150px)!important;
    min-width:126px!important;
    max-width:150px!important;
  }
  .spalux-showcase__nav button{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
  }
}

@media(max-width:380px){
  .spalux-showcase__inner{padding-top:44px}
  .spalux-showcase__copy{min-height:220px}
  .spalux-showcase__copy h2{font-size:38px!important}
  .spalux-showcase__card{flex-basis:132px!important;min-width:118px!important}
}

@media(prefers-reduced-motion:reduce){
  .spalux-showcase__background,
  .spalux-showcase__copy-slide,
  .spalux-showcase__card,
  .spalux-showcase__card img{transition:none!important}
  .spalux-showcase__cards{scroll-behavior:auto}
}


/* =========================================================
   v1.0.4 — MOBILE: układ zgodny ze starą statyczną galerią
   - jeden pełny viewport, bez czarnego pasa i scrollowania sekcji
   - treść po lewej, nie w wąskiej kolumnie
   - trzy małe karty przy dole; aktywna karta wyższa
   - strzałki nakładają się na karuzelę jak w starej wersji
   ========================================================= */
body.spalux-showcase-present.kw-smart-header-ready,
body:has(.spalux-showcase).kw-smart-header-ready{
  padding-top:0!important;
}

/*
 * v1.0.7 — headerem steruje istniejący mechanizm strony.
 * Nie ukrywamy go z poziomu galerii: ma być widoczny po wejściu,
 * a podczas przewijania chować się zgodnie z kw-smart-header.
 */

/* Natychmiastowy reset wrapperów Elementora, zanim JS doda klasę hosta. */
.elementor-widget-shortcode:has(.spalux-showcase),
.elementor-widget-shortcode:has(.spalux-showcase) > .elementor-widget-container,
.e-con:has(.spalux-showcase),
.e-con-inner:has(.spalux-showcase){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}

@media(max-width:767px){
  .spalux-showcase{
    width:100vw!important;
    max-width:100vw!important;
    min-width:100vw!important;
    height:100svh!important;
    height:100dvh!important;
    min-height:100svh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    margin-left:calc(50% - 50vw)!important;
    overflow:hidden!important;
    border-radius:0!important;
  }

  .spalux-showcase__backgrounds,
  .spalux-showcase__background,
  .spalux-showcase__overlay{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:none!important;
    border-radius:0!important;
  }

  .spalux-showcase__background{
    object-fit:cover!important;
    object-position:center center!important;
  }

  .spalux-showcase__overlay{
    background:
      linear-gradient(90deg,rgba(2,3,2,.72) 0%,rgba(2,3,2,.42) 38%,rgba(2,3,2,.10) 76%,rgba(2,3,2,.04) 100%),
      linear-gradient(180deg,rgba(2,3,2,.08) 0%,rgba(2,3,2,.03) 58%,rgba(2,3,2,.24) 100%)!important;
  }

  .spalux-showcase__inner{
    position:relative!important;
    z-index:3!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }

  .spalux-showcase__copy{
    position:absolute!important;
    z-index:5!important;
    top:16%!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0 20px!important;
    text-align:left!important;
  }

  .spalux-showcase__copy-slide,
  .spalux-showcase__copy-slide.is-active{
    position:absolute!important;
    inset:0 auto auto 0!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:100%!important;
    margin:0!important;
    padding:0 20px!important;
    text-align:left!important;
    transform:translateY(12px)!important;
  }

  .spalux-showcase__copy-slide.is-active{
    transform:translateY(0)!important;
  }

  .spalux-showcase__copy h2{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 34px!important;
    padding:0!important;
    color:#fff!important;
    font-size:clamp(38px,10.5vw,46px)!important;
    line-height:1!important;
    text-align:left!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }

  .spalux-showcase__copy p{
    display:-webkit-box!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 28px!important;
    padding:0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:4!important;
    color:rgba(255,255,255,.96)!important;
    font-size:15px!important;
    line-height:1.48!important;
    text-align:left!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }

  .spalux-showcase__copy a{
    min-height:44px!important;
    padding:12px 16px!important;
    font-size:10px!important;
  }

  .spalux-showcase__cards-wrap{
    position:absolute!important;
    z-index:6!important;
    left:0!important;
    right:0!important;
    bottom:8vh!important;
    width:100%!important;
    height:126px!important;
    margin:0!important;
    overflow:visible!important;
  }

  .spalux-showcase__cards{
    display:flex!important;
    align-items:center!important;
    width:min(86vw,360px)!important;
    height:118px!important;
    margin:0 auto!important;
    padding:6px 0!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:0!important;
  }

  .spalux-showcase__card{
    flex:0 0 calc((100% - 24px)/3)!important;
    width:calc((100% - 24px)/3)!important;
    min-width:0!important;
    max-width:none!important;
    height:80px!important;
    min-height:80px!important;
    max-height:80px!important;
    aspect-ratio:auto!important;
    align-self:center!important;
    border-radius:8px!important;
    transform:none!important;
    transition:height .25s ease,border-color .25s ease,transform .25s ease!important;
  }

  .spalux-showcase__card.is-active{
    height:105px!important;
    min-height:105px!important;
    max-height:105px!important;
    transform:none!important;
    border-color:rgba(250,253,135,.8)!important;
  }

  .spalux-showcase__card-copy{
    display:none!important;
  }

  .spalux-showcase__nav{
    position:absolute!important;
    z-index:8!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:118px!important;
    margin:0!important;
    padding:0!important;
    pointer-events:none!important;
  }

  .spalux-showcase__nav button{
    position:absolute!important;
    top:50%!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    border-radius:8px!important;
    transform:translateY(-50%)!important;
    pointer-events:auto!important;
  }

  .spalux-showcase__nav button[data-showcase-prev]{
    left:calc(50% - min(43vw,180px))!important;
    transform:translate(-50%,-50%)!important;
  }

  .spalux-showcase__nav button[data-showcase-next]{
    right:calc(50% - min(43vw,180px))!important;
    transform:translate(50%,-50%)!important;
  }

  .spalux-showcase__dots{
    display:none!important;
  }
}

@media(max-width:380px){
  .spalux-showcase__copy{
    top:14%!important;
    padding:0 16px!important;
  }
  .spalux-showcase__copy-slide,
  .spalux-showcase__copy-slide.is-active{
    padding:0 16px!important;
  }
  .spalux-showcase__copy h2{
    margin-bottom:24px!important;
    font-size:36px!important;
  }
  .spalux-showcase__copy p{
    margin-bottom:22px!important;
    font-size:14px!important;
    -webkit-line-clamp:4!important;
  }
  .spalux-showcase__cards-wrap{
    bottom:6.5vh!important;
  }
  .spalux-showcase__cards{
    width:88vw!important;
    gap:9px!important;
  }
  .spalux-showcase__card{
    flex-basis:calc((100% - 18px)/3)!important;
    width:calc((100% - 18px)/3)!important;
  }
}

/* =========================================================
   v1.0.5 — desktop: aktywna karta zawsze pierwsza + większa
   oraz sekcja „Wszystkie realizacje” pod showcase
   ========================================================= */
.spalux-showcase__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.spalux-showcase__copy a.spalux-showcase__all{
  min-height:43px!important;
  padding:10px 4px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:rgba(255,255,255,.86)!important;
  font-size:11px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
}
.spalux-showcase__copy a.spalux-showcase__all:hover{
  background:transparent!important;
  color:#FAFD87!important;
  transform:none!important;
}
.spalux-showcase__copy a.spalux-showcase__all span{
  display:inline-block;
  margin-left:6px;
  font-size:14px;
  transition:transform .2s ease;
}
.spalux-showcase__copy a.spalux-showcase__all:hover span{transform:translateY(3px)}

@media(min-width:1051px){
  .spalux-showcase__cards{
    align-items:flex-end!important;
    overflow-x:hidden!important;
    scroll-snap-type:none!important;
    scroll-behavior:auto!important;
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 64px),transparent 100%);
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 64px),transparent 100%);
  }
  .spalux-showcase__card{
    flex:0 0 clamp(154px,9vw,180px)!important;
    width:clamp(154px,9vw,180px)!important;
    max-width:180px!important;
    transform:none!important;
    scroll-snap-align:none!important;
  }
  .spalux-showcase__card.is-active{
    flex:0 0 clamp(210px,12vw,242px)!important;
    width:clamp(210px,12vw,242px)!important;
    max-width:242px!important;
    transform:translateY(-10px)!important;
    border-color:rgba(250,253,135,.88)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.22)!important;
  }
  .spalux-showcase__card.is-active .spalux-showcase__card-copy strong{
    font-size:13px!important;
  }
}

/* v1.0.6 — delikatny fade prawego, ostatniego widocznego kafelka.
   Na mobile pozostawiamy trzy karty w pełni czytelne. */
@media(max-width:1050px){
  .spalux-showcase{
    touch-action:pan-y pinch-zoom!important;
    overscroll-behavior-x:contain;
  }
  .spalux-showcase__cards{
    -webkit-mask-image:none!important;
    mask-image:none!important;
  }
}

.spalux-all-projects{
  position:relative;
  width:100vw!important;
  max-width:100vw!important;
  min-width:100vw!important;
  margin:0!important;
  margin-left:calc(50% - 50vw)!important;
  padding:clamp(72px,8vw,118px) clamp(22px,5vw,74px) clamp(82px,9vw,130px)!important;
  scroll-margin-top:0;
  background:#FDFDF0!important;
  color:#28301E!important;
  overflow:hidden;
}
.spalux-all-projects *,
.spalux-all-projects *::before,
.spalux-all-projects *::after{box-sizing:border-box}
.spalux-all-projects__inner{
  width:min(1440px,100%);
  margin:0 auto;
}
.spalux-all-projects__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:38px;
  padding-bottom:26px;
  border-bottom:1px solid rgba(40,48,30,.22);
}
.spalux-all-projects__eyebrow{
  display:block;
  margin-bottom:8px;
  color:#6c705f;
  font-family:Helvetica,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.spalux-all-projects__header h2{
  margin:0 0 10px!important;
  color:#28301E!important;
  font-family:"Imbue",Georgia,serif!important;
  font-size:clamp(50px,5.2vw,78px)!important;
  font-weight:400!important;
  line-height:.96!important;
  letter-spacing:-.015em!important;
}
.spalux-all-projects__header p{
  max-width:680px;
  margin:0!important;
  color:#6c705f!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:15px!important;
  line-height:1.55!important;
}
.spalux-all-projects__header-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  flex:0 0 auto;
}
.spalux-all-projects__count{
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:7px 11px;
  border-radius:999px;
  background:#E8EBDD;
  color:#39442B;
  font-family:Helvetica,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1;
  letter-spacing:.02em;
}
.spalux-all-projects__back{
  color:#39442B!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.spalux-all-projects__back:hover{color:#28301E!important;text-decoration:underline!important}
.spalux-all-projects__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(18px,2vw,28px);
}
.spalux-all-projects__card{
  display:block;
  min-width:0;
  color:#28301E!important;
  text-decoration:none!important;
}
.spalux-all-projects__media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:8px;
  background:#E8EBDD;
}
.spalux-all-projects__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:0!important;
  transition:transform .45s cubic-bezier(.2,.7,.2,1)!important;
}
.spalux-all-projects__arrow{
  position:absolute;
  top:12px;
  right:12px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:7px;
  background:rgba(40,48,30,.92);
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:18px;
  line-height:1;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .25s ease,transform .25s ease,background-color .25s ease;
}
.spalux-all-projects__copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:14px 2px 0;
}
.spalux-all-projects__copy strong{
  color:#28301E!important;
  font-family:"Imbue",Georgia,serif!important;
  font-size:clamp(25px,2vw,32px)!important;
  font-weight:400!important;
  line-height:1.02!important;
}
.spalux-all-projects__copy span{
  color:#6c705f!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.spalux-all-projects__card:hover .spalux-all-projects__media img{transform:scale(1.035)!important}
.spalux-all-projects__card:hover .spalux-all-projects__arrow{opacity:1;transform:translateY(0)}

@media(max-width:1180px){
  .spalux-all-projects__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .spalux-all-projects{padding:64px 22px 80px!important}
  .spalux-all-projects__header{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:28px}
  .spalux-all-projects__header-side{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
  .spalux-all-projects__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
  .spalux-all-projects__arrow{opacity:1;transform:none;width:34px;height:34px}
}
@media(max-width:767px){
  .spalux-showcase__copy a.spalux-showcase__all{display:none!important}
}
@media(max-width:560px){
  .spalux-all-projects{padding:54px 16px 70px!important}
  .spalux-all-projects__header h2{font-size:46px!important}
  .spalux-all-projects__grid{grid-template-columns:1fr;gap:26px}
  .spalux-all-projects__media{aspect-ratio:16/11}
  .spalux-all-projects__copy strong{font-size:30px!important}
}
/* Dynamiczny banner nagłówka — shortcode [spalux_banner]. */
.spalux-promo-banner,
a.spalux-promo-banner{
  box-sizing:border-box!important;
  position:relative!important;
  left:50%!important;
  right:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100vw!important;
  max-width:none!important;
  min-height:32px!important;
  margin:0 -50vw!important;
  padding:7px max(18px,env(safe-area-inset-left))!important;
  border:0!important;
  border-radius:0!important;
  background:#28301E!important;
  color:#fff!important;
  font-family:Helvetica,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.35!important;
  text-align:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.spalux-promo-banner__inner{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;flex-wrap:wrap!important}
.spalux-promo-banner[hidden]{display:none!important}
.spalux-promo-banner__text{color:#fff!important;font:inherit!important}
.spalux-promo-banner__accent{color:#FAFD87!important;font:inherit!important;font-weight:800!important}
a.spalux-promo-banner:hover,a.spalux-promo-banner:focus{background:#39442B!important;color:#fff!important;text-decoration:none!important}
a.spalux-promo-banner:focus-visible{outline:2px solid #FAFD87!important;outline-offset:-3px!important}

@media(max-width:767px){
  .spalux-promo-banner,a.spalux-promo-banner{min-height:42px!important;padding:8px 14px!important;font-size:11px!important}
}

/* Przycisk linku na single realizacji — odporny na globalne kolory linków Elementora. */
.sl-project-card a.sl-project-reference,
.sl-project-card a.sl-project-reference:link,
.sl-project-card a.sl-project-reference:visited{
  color:#fff!important;
}
.sl-project-card a.sl-project-reference:hover,
.sl-project-card a.sl-project-reference:focus-visible{
  color:#28301E!important;
  background:#fff!important;
}
