.ces-slider {
  max-width: 100%;
  width: 100%;
}
.ces-main {
  position: relative;
  aspect-ratio: var(--ces-ratio, 16/9);
  background: #f4f4f4;
  overflow: hidden;
}
.ces-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--ces-fit, contain);
}
.ces-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 0.5rem 0.8rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.ces-prev {
  left: 10px;
}
.ces-next {
  right: 10px;
}

.ces-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  scroll-snap-type: x proximity;
}
.ces-thumbs img {
  height: var(--ces-thumb-h, 60px);
  width: auto;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.ces-thumbs img.active {
  opacity: 1;
  border-color: #3b82f6; /* overridden by control */
}
.ces-thumbs::-webkit-scrollbar {
  /* Chrome/Safari */
  display: none;
}
.ces-thumbs.dragging {
  cursor: grabbing;
}
