.cg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cg__zones {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cg__zone {
  flex: 1 1 0;
  min-width: 0;
}

.cg__track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}

.cg__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.cg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
}

.cg__bullets {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 0;
  pointer-events: none;
}

.cg__bullet {
  flex: 1 1 0;
  min-width: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
}

.cg__bullet.is-active {
  background: rgba(0, 0, 0, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .cg__zones {
    display: flex;
  }

  .cg__track {
    display: block;
    overflow: hidden;
  }

  .cg__slide {
    display: none;
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
  }

  .cg__slide.is-active {
    display: block;
  }
}

@media (hover: none), (pointer: coarse) {
  .cg__zones {
    display: none;
    pointer-events: none;
  }

  .cg__track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cg__track::-webkit-scrollbar {
    display: none;
  }

  .cg__slide {
    display: block;
  }
}
