/* ============================================================
   Card Carousel – Frontend Styles
   ============================================================ */

.cc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 32px;
  font-family: Georgia, serif;
  user-select: none;
}

/* Stack — fluid width, height driven by JS via --cc-h custom property */
.cc-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: var(--cc-h, 340px);
  cursor: pointer;
}

/* Individual cards */
.cc-card {
  position: absolute;
  border-radius: 0px;
  overflow: hidden;
  will-change: transform, opacity, left, top, width, height;
}

.cc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Controls */
.cc-controls {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  align-items: center;
}

.cc-btn {
  background: none;
  border: 1px solid #3a3a3a;
  color: #888;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.cc-btn:hover,
.cc-btn:focus-visible {
  border-color: #b8a98a;
  color: #b8a98a;
  outline: none;
}

/* Dots */
.cc-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cc-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: #3a3a3a;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.cc-dot.active {
  background: #b8a98a;
  width: 20px;
}

/* Counter */
.cc-counter {
  color: #999;
  font-size: 11px;
  margin-top: 14px;
  font-family: "Courier New", monospace;
  letter-spacing: 0.2em;
}

.cc-error {
  color: #c00;
  font-style: italic;
}
