.awa-lws {
  --awa-lws-accent: #334155;
  --awa-lws-radius: 8px;
  width: min(100%, 800px);
  margin: 1.5rem auto;
  color: #fff;
}

.awa-lws *,
.awa-lws *::before,
.awa-lws *::after {
  box-sizing: border-box;
}

.awa-lws__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--awa-lws-radius);
  background: #f6f7f8;
}

.awa-lws__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.awa-lws__track::-webkit-scrollbar {
  display: none;
}

.awa-lws__track:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}

.awa-lws__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  aspect-ratio: var(--awa-lws-ratio, 16 / 9);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #f6f7f8;
}

.awa-lws__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.awa-lws__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.55rem 0.8rem;
  background: rgb(15 23 42 / 76%);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

.awa-lws__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(15 23 42 / 70%);
  color: #fff;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.awa-lws__arrow:hover {
  background: rgb(15 23 42 / 88%);
}

.awa-lws__arrow:focus-visible,
.awa-lws__thumb:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.awa-lws__arrow--prev {
  left: 10px;
}

.awa-lws__arrow--next {
  right: 10px;
}

.awa-lws__counter {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  min-width: 3.1rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgb(15 23 42 / 74%);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.awa-lws--has-caption .awa-lws__counter {
  bottom: 3.1rem;
}

.awa-lws__thumbs {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 7px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.awa-lws__thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #eef0f2;
  opacity: 0.66;
  cursor: pointer;
}

.awa-lws__thumb.is-active {
  border-color: var(--awa-lws-accent);
  opacity: 1;
}

.awa-lws__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

@media (max-width: 600px) {
  .awa-lws {
    margin-block: 1.1rem;
  }

  .awa-lws__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .awa-lws__arrow--prev {
    left: 7px;
  }

  .awa-lws__arrow--next {
    right: 7px;
  }

  .awa-lws__thumb {
    flex-basis: 72px;
    width: 72px;
    height: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awa-lws__track {
    scroll-behavior: auto;
  }
}
