:host {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-brand-tint, #edf7f1);
  border: 1px solid rgba(35, 118, 72, 0.20);
  border-radius: 10px;
}

.carousel-area {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

::slotted(img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

::slotted(img.active) {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary-strong, #195c38);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(35, 118, 72, 0.26);
  border-radius: 50%;
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.arrow-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.arrow-btn:hover,
.arrow-btn:focus-visible {
  color: #fff;
  background: var(--color-brand-primary, #237648);
  outline: 3px solid rgba(35, 118, 72, 0.32);
  outline-offset: 2px;
}

.arrow-btn.left { left: 12px; }
.arrow-btn.right { right: 12px; }

.dots {
  position: absolute;
  bottom: 4px;
  left: 50%;
  z-index: 3;
  display: flex;
  transform: translateX(-50%);
}

.dot {
  position: relative;
  width: 36px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 118, 72, 0.42);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width 160ms ease, background-color 160ms ease;
}

.dot[aria-current="true"]::before {
  width: 22px;
  background: var(--color-brand-primary, #237648);
  border-color: #fff;
}

.dot:focus-visible {
  outline: 3px solid var(--color-brand-primary, #237648);
  outline-offset: -5px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .arrow-btn.left { left: 8px; }
  .arrow-btn.right { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  ::slotted(img),
  .dot::before {
    transition-duration: 0.01ms;
  }
}
