/* Szixi Slider 2.6.9 — felső igazítású képek, hogy a teteje mindig látszódjon */
.szixi-slider{
  --szixi-bg: transparent;
  --szixi-h: 400px;
  --szixi-t: 500ms;
  --szixi-mobile-img-h: clamp(240px, 48vw, 320px);
  --szixi-card: #ffffff;
  --szixi-ink: #111827;
  --szixi-muted: #6b7280;
  --szixi-line: #e5e7eb;
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--szixi-bg, transparent);
  border-radius: 18px;
  margin: 0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.szixi-track{
  display: flex;
  width: 100%;
  transition: transform var(--szixi-t, 500ms) cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.szixi-slide{
  min-width: 100%;
  height: var(--szixi-h, 400px);
  min-height: 400px;
  max-height: 540px;
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  background: var(--szixi-card);
}

.szixi-left{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 46px);
  background: var(--szixi-card);
  color: var(--szixi-ink);
}

.szixi-pretitle{
  font-size: 13px;
  line-height: 1.2;
  color: var(--szixi-muted);
  margin: 0;
}

.szixi-title{
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0;
}

.szixi-title a{
  color: inherit;
  text-decoration: none;
}

.szixi-title a:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.szixi-excerpt{
  max-width: 56ch;
  margin: 0;
  color: #374151;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.szixi-btn{
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.szixi-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  background: #f9fafb;
}

.szixi-right{
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.szixi-media{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.szixi-img,
.szixi-right img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.szixi-dock{
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 16px;
  width: min(470px, calc(62% - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
  backdrop-filter: blur(10px);
}

.szixi-dots{
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.szixi-dots button{
  position: relative;
  flex: 1 1 0;
  min-width: 22px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #d1d5db;
  cursor: pointer;
}

.szixi-dots button .bar{
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #111827;
}

.szixi-dots button[aria-current="true"] .bar{
  width: 100%;
}

.szixi-counter{
  flex: 0 0 auto;
  min-width: 58px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.szixi-nav{
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #111827;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .22);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.szixi-nav:hover{
  background: #fff;
  border-color: rgba(17,24,39,.16);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .26);
}

.szixi-nav:focus-visible,
.szixi-dots button:focus-visible,
.szixi-btn:focus-visible,
.szixi-title a:focus-visible{
  outline: 3px solid rgba(17, 24, 39, .22);
  outline-offset: 3px;
}

.szixi-prev{ left: calc(38% + 20px); }
.szixi-next{ right: 20px; }

.szixi-nav-icon{
  display: block;
  margin-top: -4px;
  font-size: 48px;
  line-height: .62;
  font-weight: 700;
}

.szixi-slider.is-single .szixi-nav,
.szixi-slider.is-single .szixi-dock{
  display: none;
}

@media (max-width: 1024px){
  .szixi-slide{
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    min-height: 380px;
  }
  .szixi-prev{ left: calc(42% + 14px); }
}

@media (max-width: 700px){
  .szixi-slider{
    border-radius: 16px;
  }
  .szixi-track{
    touch-action: pan-y;
  }
  .szixi-slide{
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
  }
  .szixi-right{
    order: 1;
    height: var(--szixi-mobile-img-h);
    min-height: var(--szixi-mobile-img-h);
  }
  .szixi-left{
    order: 2;
    padding: 20px;
    border-top: 1px solid var(--szixi-line);
  }
  .szixi-title{
    font-size: clamp(22px, 7vw, 30px);
  }
  .szixi-excerpt{
    -webkit-line-clamp: 2;
  }
  .szixi-dock{
    top: calc(var(--szixi-mobile-img-h) - 58px);
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    padding: 10px 11px;
  }
  .szixi-counter{
    min-width: 48px;
    font-size: 12px;
  }
  .szixi-dots button{
    min-width: 18px;
    height: 9px;
  }
  .szixi-nav{
    top: calc(var(--szixi-mobile-img-h) / 2);
    width: 50px;
    height: 50px;
  }
  .szixi-prev{ left: 10px; }
  .szixi-next{ right: 10px; }
  .szixi-nav-icon{
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce){
  .szixi-track,
  .szixi-btn,
  .szixi-nav{
    transition: none !important;
  }
}

.szixi-slider-empty{
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
