:root{
  --jbcc-gap:18px;
  --jbcc-slide-w:220px;
  --jbcc-img-bg:#ffffff;
  --jbcc-aspect:1/1;
  --jbcc-img-h:0px;
  --jbcc-img-w:0px;
  --jbcc-caption-size:14px;
  --jbcc-caption-weight:600;
  --jbcc-caption-color:#111827;
}

.jbcc-wrap{
  position:relative;
  width:100%;
  margin: 10px 0;
}

.jbcc-viewport{
  overflow:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding: 6px 2px 10px;
}
.jbcc-viewport::-webkit-scrollbar{ height: 10px; }
.jbcc-viewport::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 999px; }

.jbcc-track{
  display:flex;
  gap: var(--jbcc-gap);
  align-items:stretch;
}

.jbcc-slide{
  flex: 0 0 var(--jbcc-slide-w);
  scroll-snap-align: start;
  text-align:center;
}

.jbcc-link{
  text-decoration:none !important;
  display:block;
}

.jbcc-img{
  width:100%;
  background: var(--jbcc-img-bg);
  border: 1px solid rgba(0,0,0,.08);
  overflow:hidden;
  aspect-ratio: var(--jbcc-aspect);
  display:flex;
  align-items:center;
  justify-content:center;
}

.jbcc-img img{
  width:100%;
  height:100%;
  display:block;
}

.jbcc-fit-contain img{ object-fit: contain; padding: 14px; }
.jbcc-fit-cover img{ object-fit: cover; }

.jbcc-mask-none{ border-radius: 0; }
.jbcc-mask-rounded{ border-radius: 18px; }
.jbcc-mask-circle{ border-radius: 999px; }

.jbcc-mask-hex{
  /* Hexagon-ish mask */
  -webkit-clip-path: polygon(25% 5%, 75% 5%, 95% 50%, 75% 95%, 25% 95%, 5% 50%);
  clip-path: polygon(25% 5%, 75% 5%, 95% 50%, 75% 95%, 25% 95%, 5% 50%);
  border-radius: 0; /* clip-path handles it */
}

.jbcc-caption{
  margin-top: 10px;
  font-size: var(--jbcc-caption-size);
  font-weight: var(--jbcc-caption-weight);
  color: var(--jbcc-caption-color);
  line-height: 1.2;
}

.jbcc-arrow{
  position:absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  z-index:2;
}
.jbcc-prev{ left: -12px; }
.jbcc-next{ right: -12px; }

@media (max-width: 768px){
  .jbcc-prev{ left: -6px; }
  .jbcc-next{ right: -6px; }
}

.jbcc-dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 10px;
}
.jbcc-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.18);
  cursor:pointer;
}
.jbcc-dot.is-active{
  background: rgba(0,0,0,.55);
}


/* Force masked shapes to fill the mask area */
.jbcc-img.jbcc-mask-rounded img,
.jbcc-img.jbcc-mask-circle img,
.jbcc-img.jbcc-mask-hex img{
  object-fit: cover !important;
  padding: 0 !important;
}


.jbcc-subtitle{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.4;
}

.jbcc-caption{
  font-size: var(--jbcc-caption-size);
  font-weight: var(--jbcc-caption-weight);
  color: var(--jbcc-caption-color);
  font-style: var(--jbcc-caption-style);
}

.jbcc-subtitle{
  font-size: var(--jbcc-subtitle-size);
  font-weight: var(--jbcc-subtitle-weight);
  color: var(--jbcc-subtitle-color);
  font-style: var(--jbcc-subtitle-style);
}


/* Optional fixed image height (overrides aspect ratio) */
.jbcc-fixed-h .jbcc-img{
  aspect-ratio: auto;
  height: var(--jbcc-img-h);
}


/* Optional fixed image width */
.jbcc-fixed-w .jbcc-img{
  width: var(--jbcc-img-w);
  margin-left: auto;
  margin-right: auto;
}
