.tz-wccs {
  --tz-width-desktop: calc((100% - 20px) / 6);
  --tz-width-tablet: calc((100% - 12px) / 4);
  --tz-width-mobile: calc((100% - 4px) / 2);
  --tz-gap: 4px;
  --tz-card-height: 190px;
  --tz-object-fit: cover;
  --tz-object-position: center center;
  position: relative;
  width: 100%;
}

.tz-wccs *,
.tz-wccs *::before,
.tz-wccs *::after { box-sizing: border-box; }

.tz-wccs__track {
  display: flex;
  gap: var(--tz-gap);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tz-wccs__track::-webkit-scrollbar { display: none; }
.tz-wccs[data-drag="yes"] .tz-wccs__track { cursor: grab; }
.tz-wccs[data-drag="yes"] .tz-wccs__track { touch-action: pan-y pinch-zoom; }
.tz-wccs[data-drag="yes"] .tz-wccs__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.tz-wccs__slide {
  position: relative;
  flex: 0 0 var(--tz-width-desktop);
  height: var(--tz-card-height);
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none !important;
  scroll-snap-align: start;
  background: #292929;
  isolation: isolate;
}

.tz-wccs .tz-wccs__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-width: 100%;
  object-fit: var(--tz-object-fit) !important;
  object-position: var(--tz-object-position) !important;
  transition: transform .45s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.tz-wccs__slide:hover .tz-wccs__image { transform: scale(1.045); }

.tz-wccs__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.32));
}

.tz-wccs__title {
  position: absolute;
  z-index: 2;
  inset: 50% 10px auto;
  transform: translateY(-50%);
  color: #fff;
  font: 700 clamp(13px, 1.25vw, 19px)/1.2 Arial, sans-serif;
  letter-spacing: .05em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
  text-transform: uppercase;
}

.tz-wccs__title small { font: inherit; font-size: .72em; }

.tz-wccs__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #777;
  background: rgba(255,255,255,.94);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.tz-wccs__arrow:hover,
.tz-wccs__arrow:focus-visible { color: #111; background: #fff; }
.tz-wccs__arrow:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.tz-wccs__arrow:disabled { opacity: .35; cursor: default; }
.tz-wccs__arrow--prev { left: 0; }
.tz-wccs__arrow--next { right: 0; }
.tz-wccs__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .tz-wccs__slide { flex-basis: var(--tz-width-tablet); }
}

@media (max-width: 640px) {
  .tz-wccs__slide { flex-basis: var(--tz-width-mobile); }
  .tz-wccs__arrow { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .tz-wccs__track { scroll-behavior: auto; }
  .tz-wccs__image { transition: none; }
}
