.mjfc-carousel { width: 100%; }

/* Global sizing via CSS variables (must live on .mjfc-wrap because custom UI is outside .mjfc-carousel) */
.mjfc-wrap {
  --mjfc-cell-width: 80%;
  --mjfc-cell-gap: 16px;
  --mjfc-cell-height: 360px;

  --mjfc-arrow-size: 44px;
  --mjfc-arrow-bg: rgba(0,0,0,0.35);
  --mjfc-arrow-color: #fff;
  --mjfc-dot-color: rgba(255,255,255,0.5);
  --mjfc-dot-color-active: rgba(255,255,255,1);
}

.mjfc-cell {
  width: var(--mjfc-cell-width);
  padding-right: var(--mjfc-cell-gap);
  box-sizing: border-box;
}

.mjfc-inner {
  position: relative;
  min-height: var(--mjfc-cell-height);
  overflow: hidden;
  box-sizing: border-box;
}

/* Background layer (image/video + overlay) */
.mjfc-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Full-slide link overlay (click anywhere) */
.mjfc-slide-link{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
}

/* Content above overlay + link */
.mjfc-content{
  position: relative;
  z-index: 5;
  padding: 24px;
  pointer-events: auto;
}

/* Keep Flickity default arrows above everything */
.mjfc-carousel .flickity-prev-next-button {
  z-index: 50;
  width: var(--mjfc-arrow-size);
  height: var(--mjfc-arrow-size);
  background: var(--mjfc-arrow-bg);
}
.mjfc-carousel .flickity-prev-next-button .arrow{
  fill: var(--mjfc-arrow-color);
}

/* Default Flickity dots */
.mjfc-carousel .flickity-page-dots .dot{
  background: var(--mjfc-dot-color);
  opacity: 1;
}
.mjfc-carousel .flickity-page-dots .dot.is-selected{
  background: var(--mjfc-dot-color-active);
}
.mjfc-carousel .flickity-page-dots{
  bottom: 12px;
  z-index: 55;
}

/* Custom arrows overlay (your own buttons) */
.mjfc-wrap{ position: relative; }

.mjfc-arrows{
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
  z-index: 60;
  pointer-events: none;
}

.mjfc-arrow{
  appearance: none;
  border: 0;
  padding: 0;
  width: var(--mjfc-arrow-size);
  height: var(--mjfc-arrow-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--mjfc-arrow-bg);
  color: var(--mjfc-arrow-color);
  border-radius: 999px;
  pointer-events: auto;
  line-height: 1;
  font-size: 20px;
  outline: none;
  box-shadow: none;
}

.mjfc-arrow:focus,
.mjfc-arrow:active{
  outline: none;
  box-shadow: none;
}

.mjfc-arrow:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.mjfc-arrow svg,
.mjfc-arrow i,
.mjfc-arrow span{
  width: 22px;
  height: 22px;
}

.mjfc-arrow svg{
  fill: currentColor;
  stroke: currentColor;
}

/* Custom dots (visible circles even if no icon/SVG is provided) */
.mjfc-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
}

.mjfc-dot{
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;

  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;

  opacity: 0.6;
  color: var(--mjfc-dot-color);

  outline: none;
  box-shadow: none;
  pointer-events: auto;
}

.mjfc-dot:focus,
.mjfc-dot:active{
  outline: none;
  box-shadow: none;
}

.mjfc-dot.is-selected{
  opacity: 1;
  color: var(--mjfc-dot-color-active);
}

.mjfc-dot-inner{
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mjfc-dot svg{
  fill: currentColor;
  stroke: currentColor;
}

.mjfc-dot:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 999px;
}