/* Bricks Peek Carousel – styles for real Embla Carousel */

/* ── Wrapper ──
   Breaks out of parent padding by --gutter (ACSS) so carousel
   goes edge-to-edge.  Negative margins cancel the extra width
   so siblings are unaffected. */
.peek-embla {
  position: relative;
  --peek-bleed: var(--gutter, 0px);
  width: calc(100% + var(--peek-bleed) * 2);
  margin-left: calc(var(--peek-bleed) * -1);
  margin-right: calc(var(--peek-bleed) * -1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--content-gap);
}

/* ── Viewport – Embla needs overflow:hidden here ── */
.peek-embla .embla__viewport {
  overflow: clip;
  width: 100%;
  padding-left: var(--peek-bleed, 0px);
  padding-right: var(--peek-bleed, 0px);
}

/* ── Container / Track ──
   Embla moves this via translate3d. We just need horizontal flex.
   width:100% gives a definite main size so slide % resolves correctly.
   !important overrides Bricks' grid/column rules on .brxe-container. */
.peek-embla .embla__container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: var(--peek-gap, 16px);
  margin: 0;
  list-style: none;
}

/* ── Slides ── */
.peek-embla .embla__slide {
  flex: 0 0 var(--peek-slide-width, 85%) !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* ── Dot navigation ── */
.peek-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 0;
  padding: 0;
}

.peek-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  font-size: 0;
}

.peek-dot-active {
  opacity: 1;
  background-color: currentColor;
}

/* ── Arrow navigation ── */
.peek-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 var(--peek-bleed, 0px) 0;
  width: 100%;
}

.peek-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary, var(--primary, currentColor));
  cursor: pointer;
  transition: opacity 0.2s;
}

.peek-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.peek-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Focus visibility ── */
.peek-dot:focus-visible,
.peek-arrow:focus-visible,
.peek-embla .embla__viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
