.embla {
  max-width: 48rem;
  margin: auto;
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 100%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem; /* rounded-xl */
  background: rgba(255, 255, 255, 0.02);
  /* Allow nav buttons to sit outside while keeping slides clipped by viewport */
  overflow: visible;
}
.embla__viewport {
  overflow: hidden;
  position: relative;
  border-radius: inherit;
}
.embla__viewport::before,
.embla__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}
.embla__viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}
.embla__viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}
.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}
.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
}
.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  border-radius: 1.8rem;
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
}
.embla__controls {
  /* We'll overlay buttons and dots; keep container but remove extra spacing */
  display: contents; /* avoid adding layout below the carousel */
}
.embla__buttons {
  display: contents;
}
.embla__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(17, 17, 17, 0.6); /* overlay button bg */
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 3;
  border-radius: 9999px;
  color: white;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.embla__button:hover {
  background-color: rgba(17, 17, 17, 0.75);
}
.embla__button:disabled {
  opacity: 0.4;
}
.embla__button__svg {
  width: 1rem;
  height: 1rem;
}
.embla__button--prev {
  left: -3rem;
}
.embla__button--next {
  right: -3rem;
}
.embla__dots {
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.embla__dot {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}
.embla__dot:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: rgba(255, 255, 255, 0.35);
  transition: opacity 0.2s ease;
}
.embla__dot--selected:after {
  background-color: rgba(255, 255, 255, 0.95);
}
