/* Slider artykułów 1.3: wide breakout + equal-size slides + per-post image framing. */
.wpp-article-slider {
  --wpp-max-width: 1460px;
  --wpp-panel-height: 460px;
  font-family: inherit;
  box-sizing: border-box;
  margin-top: 18px;
  margin-bottom: 24px;
}
.wpp-article-slider *, .wpp-article-slider *::before, .wpp-article-slider *::after { box-sizing: border-box; }
/* Center relative to widget, even when Elementor has a narrow content container. */
.wpp-article-slider.wpp-layout-wide,
.wpp-article-slider.wpp-layout-full {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  width: min(var(--wpp-max-width), calc(100vw - 40px));
}
.wpp-article-slider.wpp-layout-full { width: calc(100vw - 24px); }
.wpp-article-slider.wpp-layout-contained { width: 100%; max-width: 100%; margin-inline: auto; }
/* Gutenberg wide/full alignment must not add extra margins or unexpected sizing. */
.wpp-article-slider.alignwide, .wpp-article-slider.alignfull { max-width: none; }
.wpp-article-slider .wpp-slides { width: 100%; }
.wpp-article-slider .wpp-slide {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  width: 100%;
  height: var(--wpp-panel-height);
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f8fc;
  box-shadow: 0 12px 38px rgba(30, 65, 95, .09);
  animation: wppSlideFade .35s ease both;
}
.wpp-article-slider .wpp-slide[hidden] { display: none !important; }
@keyframes wppSlideFade {
  from { opacity: .6; }
  to { opacity: 1; }
}
.wpp-article-slider .wpp-slide-image {
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #cfdfeb;
}
.wpp-article-slider .wpp-slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
/* All photos keep their proportions: cover crops, contain letterboxes, never distorts. */
.wpp-article-slider .wpp-slide-image .wpp-slide-image-main {
  z-index: 1;
  object-fit: contain;
  object-position: center center;
}
.wpp-article-slider .wpp-image-fit-cover .wpp-slide-image-main {
  object-fit: cover;
  object-position: var(--wpp-image-position, 50% 50%);
}
.wpp-article-slider .wpp-image-fit-smart .wpp-slide-image-main {
  object-fit: contain;
  object-position: center center;
  padding: 9px;
}
.wpp-article-slider .wpp-image-fit-smart .wpp-slide-image-blur {
  z-index: 0;
  object-fit: cover;
  filter: blur(24px);
  transform: scale(1.12);
  opacity: .38;
}
.wpp-article-slider .wpp-image-fit-clean .wpp-slide-image-main { object-fit: contain; }
.wpp-article-slider .wpp-slide-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 72px;
  color: #789db8;
}
.wpp-article-slider .wpp-slide-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  padding: 32px clamp(28px, 3.2vw, 52px);
  overflow: hidden;
}
.wpp-article-slider .wpp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #56809d;
}
.wpp-article-slider .wpp-slide-content h2 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  color: #253c50;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.wpp-article-slider .wpp-slide-content p {
  margin: 0;
  color: #637687;
  font-size: 16px;
  line-height: 1.65;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.wpp-article-slider .wpp-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #fff !important;
  background: #315f7b;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.wpp-article-slider .wpp-more:hover,
.wpp-article-slider .wpp-more:focus-visible {
  background: #24485f;
  color: #fff !important;
  transform: translateY(-1px);
}
.wpp-article-slider .wpp-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 15px 0 0;
}
.wpp-article-slider .wpp-dots button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}
.wpp-article-slider .wpp-dots button span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 20px;
  background: #bdcbd6;
  transition: width .25s ease, background .25s ease;
}
.wpp-article-slider .wpp-dots button[aria-pressed="true"] span { width: 28px; background: #315f7b; }
.wpp-article-slider .wpp-dots button:focus-visible { outline: 2px solid #315f7b; outline-offset: 1px; }
@media (max-width: 1000px) {
  .wpp-article-slider .wpp-slide-content { padding: 26px 30px; gap: 12px; }
  .wpp-article-slider .wpp-slide-content h2 { font-size: clamp(23px, 3.2vw, 31px); }
  .wpp-article-slider .wpp-slide-content p { font-size: 15px; }
}
@media (max-width: 760px) {
  .wpp-article-slider.wpp-layout-wide { width: calc(100vw - 24px); }
  .wpp-article-slider .wpp-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 235px 340px;
    height: 575px;
    border-radius: 18px;
  }
  .wpp-article-slider .wpp-slide-image { height: 235px; }
  .wpp-article-slider .wpp-slide-content {
    height: 340px;
    min-height: 0;
    padding: 24px 25px;
    gap: 12px;
  }
  .wpp-article-slider .wpp-slide-content h2 { font-size: clamp(23px, 5.2vw, 29px); -webkit-line-clamp: 3; line-clamp: 3; }
  .wpp-article-slider .wpp-slide-content p { font-size: 14px; -webkit-line-clamp: 3; line-clamp: 3; }
  .wpp-article-slider .wpp-more { padding: 11px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wpp-article-slider .wpp-slide { animation: none; }
  .wpp-article-slider .wpp-more,
  .wpp-article-slider .wpp-dots button span { transition: none; }
}
