/* Zandi Banner — pixel-puzzle auto slider */
.zht-banner {
  background: #050208;
  padding: 10px 20px 80px;
}

.zht-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* gradient ring, same colors as the site's headings */
.zht-banner-frame {
  padding: 3px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ffb020, #ff7ab8 55%, #8a4bff);
  box-shadow: 0 0 40px rgba(138, 75, 255, 0.28), 0 0 90px rgba(255, 79, 216, 0.12);
}

.zht-banner-stage {
  position: relative;
  height: var(--zht-banner-h, 420px);
  border-radius: 17px;
  overflow: hidden;
  background-color: #0d0714;
  /* pixel checker shown until the first image is ready */
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.zht-banner-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.zht-banner-stage noscript img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft shade behind the dots so they stay readable on any image */
.zht-banner-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 14px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(5, 2, 8, 0.65), transparent);
  pointer-events: none;
}

.zht-banner-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.zht-banner-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(231, 235, 245, 0.8);
  background: rgba(5, 2, 8, 0.55);
  cursor: pointer;
  transition: background 0.15s steps(2), transform 0.15s steps(2);
}

.zht-banner-dot:hover {
  transform: translateY(-2px);
}

.zht-banner-dot.is-active {
  background: linear-gradient(135deg, #ffb020, #ff7ab8);
  border-color: #fff;
}

.zht-banner-counter {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 10px;
  color: #e7ebf5;
  padding: 6px 10px;
  background: rgba(23, 27, 44, 0.85);
  box-shadow: -2px 0 0 #c4cbe0, 2px 0 0 #c4cbe0, 0 -2px 0 #c4cbe0, 0 2px 0 #c4cbe0;
  pointer-events: auto;
}

.zht-banner-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #e7ebf5;
  background: rgba(23, 27, 44, 0.85);
  border: none;
  box-shadow: -3px 0 0 #c4cbe0, 3px 0 0 #c4cbe0, 0 -3px 0 #c4cbe0, 0 3px 0 #c4cbe0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zht-banner-prev { left: 16px; }
.zht-banner-next { right: 16px; }

.zht-banner-stage:hover .zht-banner-arrow,
.zht-banner-arrow:focus-visible {
  opacity: 1;
}

.zht-banner-arrow:hover {
  background: #ff7ab8;
  color: #171b2c;
}

.zht-banner-arrow:focus-visible,
.zht-banner-dot:focus-visible {
  outline: 2px solid #ffb020;
  outline-offset: 3px;
}

/* single image: no controls */
.zht-banner.is-single .zht-banner-arrow,
.zht-banner.is-single .zht-banner-nav {
  display: none;
}

/* touch screens: no hover, so keep the arrows faintly visible */
@media (hover: none) {
  .zht-banner-arrow { opacity: 0.85; width: 34px; height: 34px; margin-top: -17px; }
}

@media (max-width: 768px) {
  .zht-banner { padding: 0 14px 56px; }
  .zht-banner-frame { border-radius: 16px; padding: 2px; }
  .zht-banner-stage { height: var(--zht-banner-h-m, 220px); border-radius: 14px; }
  .zht-banner-prev { left: 10px; }
  .zht-banner-next { right: 10px; }
}
