/* Slider container */
.c2r-list.c2r-slider { display: block; }

/* Viewport */
.c2r-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Track */
.c2r-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

/* Slides */
.c2r-slide { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.c2r-slide > .c2r-item { height: auto; cursor: pointer; } /* clickable for modal */

/* --- Clamp (multiline with explicit ellipsis) --- */
.c2r-clamp {
  position: relative;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: var(--c2r-max-lines, 0);
  line-clamp: var(--c2r-max-lines, 0);
}

/* Arrows */
.c2r-nav { position:absolute; inset:0; pointer-events:none; display:flex; background:transparent; justify-content:space-between; align-items:center; }
.c2r-prev, .c2r-next {
  pointer-events:auto; border:0; color:#fff; width:36px; height:100%; cursor:pointer; background: transparent;
}

/* Dots */
.c2r-dots { position:absolute; left:0; right:0; bottom:.5rem; display:flex; justify-content:center; gap:.4rem; }
.c2r-dot { width:9px; height:9px; border-radius:999px; background:#cbd5e1; opacity:.8; border:0; }
.c2r-dot.is-active { background:#1e293b; opacity:1; }

/* --- Lightbox --- */
.c2r-modal-open { overflow: hidden; }
.c2r-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; }
.c2r-lightbox.is-open { display: block; }
.c2r-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.c2r-lightbox-dialog {
  position: absolute; inset: 0;
  margin: auto; max-width: 50%; max-height: 80vh; width: calc(100% - 2rem);
  background: #fff; color: #0f172a; border-radius: 10px; overflow: auto; padding: 1rem 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.c2r-lightbox-close {
  position: sticky; top: 0; float: right;
  border: 0; background: transparent; color: #334155; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.c2r-lightbox-header { display: flex; justify-content: space-between; align-items: center; margin: 0 .5rem .5rem; }
.c2r-lightbox-name { font-weight: 700; }
.c2r-lightbox-stars { color: #f59e0b; }
.c2r-lightbox-body { padding: .25rem .5rem 0; }

/* Remove iOS/Android tap highlight */
.c2r-viewport,
.c2r-prev, .c2r-next, .c2r-dot {
  -webkit-tap-highlight-color: transparent;
}

/* Remove native button styling that can inject its own active colors */
.c2r-prev, .c2r-next, .c2r-dot {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

/* Keep your active/hover states without blue flash */
.c2r-prev:active, .c2r-next:active { background: transparent; }
.c2r-dot:active { background: #1e293b; }

/* Accessibility: no default focus ring, but show a custom one for keyboard users */
.c2r-prev:focus, .c2r-next:focus, .c2r-dot:focus { outline: none; }
.c2r-prev:focus-visible, .c2r-next:focus-visible, .c2r-dot:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
