.lgsf-shell,
.lgsf-shell * {
  box-sizing: border-box;
}

.lgsf-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #f7f7f5;
  color: #0b0b0b;
}

.lgsf-shell--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.lgsf-slider {
  --lgsf-height-desktop: 760px;
  --lgsf-height-tablet: 680px;
  --lgsf-height-mobile: 740px;
  --lgsf-content-width: 1440px;
  --lgsf-transition: 520ms;

  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--lgsf-height-desktop);
  min-height: 580px;
  overflow: hidden;
  background: #f7f7f5;
  outline: 0;
  touch-action: pan-y;
}

.lgsf-slides,
.lgsf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lgsf-slide {
  z-index: 0;
  display: block;
  overflow: hidden;
  background: var(--lgsf-slide-bg, #f7f7f5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--lgsf-transition) cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear var(--lgsf-transition);
}

.lgsf-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Minimalistyczna dekoracja inspirowana zaakceptowanym projektem. */
.lgsf-editorial-decor {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lgsf-decor-line,
.lgsf-decor-label {
  display: none;
}

.lgsf-decor-block {
  position: absolute;
  top: -18%;
  right: 7.2%;
  width: min(40vw, 650px);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(15, 15, 15, .075);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  background: transparent;
  transform: rotate(-13deg);
}

/* Zdjęcie zajmuje prawą część, ale nie jest przybliżane ani zamykane w ramie. */
.lgsf-media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: clamp(36px, 6vw, 118px);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(var(--lgsf-image-width, 56%), 820px);
  overflow: visible;
  background: transparent;
}

.lgsf-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 36%;
  background: linear-gradient(90deg, var(--lgsf-slide-bg, #f7f7f5) 0%, rgba(247, 247, 245, .72) 38%, rgba(247, 247, 245, 0) 100%);
  pointer-events: none;
}

.lgsf-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: var(--lgsf-position-desktop, 50% 50%);
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 440ms ease 70ms,
    transform 760ms cubic-bezier(.2, .7, .2, 1) 30ms;
}

.lgsf-slide.is-active .lgsf-media img {
  opacity: 1;
  transform: translateX(0);
}

.lgsf-fit--cover .lgsf-media img {
  object-fit: contain;
}

.lgsf-overlay {
  display: none;
}

.lgsf-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100%, var(--lgsf-content-width));
  height: 100%;
  margin: 0 auto;
  padding: clamp(70px, 7vw, 116px) clamp(72px, 7.4vw, 130px);
}

.lgsf-content {
  width: min(35%, 470px);
  margin-right: auto;
  color: #0b0b0b;
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 440ms ease 100ms,
    transform 680ms cubic-bezier(.2, .7, .2, 1) 80ms;
}

.lgsf-slide.is-active .lgsf-content {
  opacity: 1;
  transform: translateY(0);
}

.lgsf-eyebrow {
  display: block;
  margin: 0 0 25px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.lgsf-title {
  max-width: 520px;
  margin: 0 !important;
  color: currentColor !important;
  font-family: inherit !important;
  font-size: clamp(50px, 4.6vw, 78px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase;
}

.lgsf-subtitle {
  max-width: 440px;
  margin: 23px 0 0 !important;
  color: currentColor !important;
  font-size: clamp(17px, 1.22vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.lgsf-description {
  max-width: 390px;
  margin: 14px 0 0 !important;
  color: currentColor !important;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  opacity: .88;
}

.lgsf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: clamp(34px, 3.2vw, 48px);
  padding: 15px 27px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: currentColor !important;
  background: transparent;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.lgsf-button span:last-child {
  display: none;
}

.lgsf-button:hover,
.lgsf-button:focus-visible {
  color: #fff !important;
  background: #0b0b0b;
  transform: translateY(-2px);
}

.lgsf-button:focus-visible,
.lgsf-arrow:focus-visible,
.lgsf-dot:focus-visible,
.lgsf-slider:focus-visible {
  outline: 3px solid #c7a995;
  outline-offset: 4px;
}

/* Strzałki po bokach jak w zaakceptowanym podglądzie. */
.lgsf-arrows {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.lgsf-arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 64px;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity 200ms ease, transform 200ms ease;
}

.lgsf-arrow--prev { left: clamp(12px, 3.2vw, 64px); }
.lgsf-arrow--next { right: clamp(12px, 3.2vw, 64px); }

.lgsf-arrow span {
  font-size: 0;
}

.lgsf-arrow span::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.lgsf-arrow--prev span::before { transform: rotate(-45deg); }
.lgsf-arrow--next span::before { transform: rotate(135deg); }

.lgsf-arrow:hover {
  opacity: .55;
  transform: translateY(-50%) scale(1.08);
}

.lgsf-dots {
  position: absolute;
  z-index: 7;
  bottom: 34px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(-50%);
}

.lgsf-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lgsf-dot span {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #111;
  border-radius: 50%;
  background: transparent;
  transition: background-color 180ms ease, transform 180ms ease;
}

.lgsf-dot:hover span,
.lgsf-dot.is-active span {
  background: #111;
  transform: scale(1.05);
}

.lgsf-counter {
  display: none;
}

@media (max-width: 1180px) {
  .lgsf-content-wrap {
    padding-right: 84px;
    padding-left: 100px;
  }

  .lgsf-content {
    width: min(40%, 440px);
  }

  .lgsf-media {
    right: 36px;
    width: 57%;
  }
}

@media (max-width: 1024px) {
  .lgsf-slider {
    height: var(--lgsf-height-tablet);
    min-height: 600px;
  }

  .lgsf-content-wrap {
    padding-right: 60px;
    padding-left: 78px;
  }

  .lgsf-content {
    width: min(42%, 390px);
  }

  .lgsf-title {
    font-size: clamp(42px, 6vw, 62px) !important;
  }

  .lgsf-media {
    right: 22px;
    width: 56%;
  }
}

@media (max-width: 767px) {
  .lgsf-slider {
    height: var(--lgsf-height-mobile);
    min-height: 700px;
  }

  .lgsf-decor-block {
    top: -8%;
    right: -13%;
    width: 86vw;
    opacity: .7;
  }

  .lgsf-media {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    align-items: flex-end;
    width: 100%;
    height: 58%;
  }

  .lgsf-media::before {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, rgba(247, 247, 245, 0) 0%, var(--lgsf-slide-bg, #f7f7f5) 100%);
  }

  .lgsf-media img {
    object-position: var(--lgsf-position-mobile, 50% 50%);
    transform: translateY(12px);
  }

  .lgsf-slide.is-active .lgsf-media img {
    transform: translateY(0);
  }

  .lgsf-content-wrap {
    align-items: flex-end;
    padding: 34px 28px 82px;
  }

  .lgsf-content {
    width: 100%;
    max-width: 100%;
  }

  .lgsf-eyebrow {
    margin-bottom: 11px;
    font-size: 9px;
    letter-spacing: .28em;
  }

  .lgsf-title {
    max-width: 100%;
    font-size: clamp(35px, 10.8vw, 49px) !important;
    line-height: .95 !important;
    letter-spacing: .11em !important;
  }

  .lgsf-subtitle {
    margin-top: 12px !important;
    font-size: 14px;
  }

  .lgsf-description {
    margin-top: 8px !important;
    font-size: 13px;
    line-height: 1.45;
  }

  .lgsf-button {
    min-height: 43px;
    margin-top: 18px;
    padding: 12px 18px;
    font-size: 10px;
  }

  .lgsf-arrow {
    top: 29%;
    width: 40px;
    height: 50px;
  }

  .lgsf-arrow--prev { left: 8px; }
  .lgsf-arrow--next { right: 8px; }

  .lgsf-dots {
    bottom: 29px;
    gap: 10px;
  }

  .lgsf-dot span {
    width: 7px;
    height: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgsf-slide,
  .lgsf-media img,
  .lgsf-content,
  .lgsf-button,
  .lgsf-arrow,
  .lgsf-dot span {
    transition: none !important;
    animation: none !important;
  }
}
