.rdgs {
  --rdgs-radius: 14px;
  --rdgs-height: 0px;
  --rdgs-fit: cover;

  max-width: 100%;
  position: relative;
  border-radius: var(--rdgs-radius);
  overflow: hidden;
}

.rdgs:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.rdgs__viewport {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.04);
  touch-action: pan-y;
}

.rdgs.is-fixedHeight .rdgs__viewport {
  aspect-ratio: auto;
  height: var(--rdgs-height);
}

.rdgs__track {
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform 320ms ease;
}

.rdgs__track.no-anim { transition: none; }

.rdgs__slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
  position: relative;
}

.rdgs__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: var(--rdgs-fit);
}

.rdgs__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: #fff;
}

.rdgs__controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: none;
}

.rdgs__btn {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.92);
  color: #111;
  cursor: pointer;
}

.rdgs__btn:hover { background: rgba(255,255,255,1); }

.rdgs__dots {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 56px;
  display: flex;
  gap: 6px;
  justify-content: center;
  pointer-events: auto;
}

.rdgs__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}

.rdgs__dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .rdgs__btn { padding: 12px 16px; }
  .rdgs__caption { font-size: 13px; }
}