.cfc-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  margin: 0 auto;
}

.cfc-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

.cfc-nav button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #222;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: none;
  padding: 0;
}

.cfc-nav button:hover {
  background: #222;
  color: #fff;
}

.cfc-nav button:active {
  transform: scale(0.96);
}

.cfc-nav button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cfc-carousel {
  position: relative;
  width: 100%;
  height: 440px; /* Overridden by widget controls */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cfc-slide {
  position: absolute;
  width: 300px; /* Overridden by widget controls */
  height: 400px; /* Overridden by widget controls */
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: scale(0.5);
}

.cfc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.cfc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 30%,
    rgba(0,0,0,0.05) 60%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}

.cfc-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  z-index: 2;
  color: #fff;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.5s ease 0.15s;
}

.cfc-slide-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.cfc-slide-content p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #e5e5e5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.cfc-slide.center {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
}
.cfc-slide.center .cfc-slide-content {
  transform: translateY(0);
  opacity: 1;
}
.cfc-slide.center img { transform: scale(1.05); }

.cfc-slide.left {
  opacity: 1;
  transform: translateX(-190px) scale(0.88);
  z-index: 8;
}
.cfc-slide.right {
  opacity: 1;
  transform: translateX(190px) scale(0.88);
  z-index: 8;
}

.cfc-slide.far-left {
  opacity: 1;
  transform: translateX(-330px) scale(0.76);
  z-index: 6;
}
.cfc-slide.far-right {
  opacity: 1;
  transform: translateX(330px) scale(0.76);
  z-index: 6;
}

.cfc-slide.back-left {
  opacity: 0.6;
  transform: translateX(-440px) scale(0.62);
  z-index: 4;
}
.cfc-slide.back-right {
  opacity: 0.6;
  transform: translateX(440px) scale(0.62);
  z-index: 4;
}

.cfc-slide.hidden {
  opacity: 0;
  transform: translateX(0) scale(0.4);
  z-index: 1;
}

/* Base Responsive adjustments for transforms */
@media (max-width: 900px) {
  .cfc-slide.left       { transform: translateX(-150px) scale(0.85); }
  .cfc-slide.right      { transform: translateX(150px) scale(0.85); }
  .cfc-slide.far-left   { transform: translateX(-260px) scale(0.7); }
  .cfc-slide.far-right  { transform: translateX(260px) scale(0.7); }
  .cfc-slide.back-left  { opacity: 0; }
  .cfc-slide.back-right { opacity: 0; }
}

@media (max-width: 560px) {
  .cfc-slide.left       { transform: translateX(-120px) scale(0.82); }
  .cfc-slide.right      { transform: translateX(120px) scale(0.82); }
  .cfc-slide.far-left, .cfc-slide.far-right,
  .cfc-slide.back-left, .cfc-slide.back-right { opacity: 0; }
  .cfc-nav button { width: 46px; height: 46px; }
}
