.pcg-carousel {
  --pcg-accent: #15513e;
  --pcg-radius: 16px;
  --pcg-control: 44px;
  width: 100%;
  max-width: 100%;
  color: #17221e;
  outline-offset: 5px;
}

.pcg-carousel,
.pcg-carousel * {
  box-sizing: border-box;
}

.pcg-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pcg-radius);
  background: #eef0ea;
  isolation: isolate;
}

.pcg-carousel--16-9 .pcg-carousel__viewport { aspect-ratio: 16 / 9; }
.pcg-carousel--4-3 .pcg-carousel__viewport  { aspect-ratio: 4 / 3; }
.pcg-carousel--3-2 .pcg-carousel__viewport  { aspect-ratio: 3 / 2; }
.pcg-carousel--1-1 .pcg-carousel__viewport  { aspect-ratio: 1 / 1; }
.pcg-carousel--21-9 .pcg-carousel__viewport { aspect-ratio: 21 / 9; }

.pcg-carousel__track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 440ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.pcg-carousel__slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
}

.pcg-carousel__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-position: center center;
  object-fit: cover;
}

.pcg-carousel--contain .pcg-carousel__image { object-fit: contain; }

.pcg-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: var(--pcg-control);
  height: var(--pcg-control);
  min-width: var(--pcg-control);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: var(--pcg-accent);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 18px rgba(14, 27, 20, .10);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pcg-carousel__arrow--prev { left: 16px; }
.pcg-carousel__arrow--next { right: 16px; }

.pcg-carousel__arrow:hover,
.pcg-carousel__arrow:focus-visible {
  color: #fff;
  background: var(--pcg-accent);
  box-shadow: 0 4px 20px rgba(14, 27, 20, .18);
}

.pcg-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.pcg-carousel__counter {
  position: absolute;
  z-index: 1;
  right: 15px;
  top: 15px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(18, 36, 27, .65);
  border-radius: 99px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  pointer-events: none;
}

.pcg-carousel__counter-separator { opacity: .7; }

.pcg-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 28px;
  margin-top: 13px;
}

.pcg-carousel__dot {
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ccd5cd;
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.pcg-carousel__dot.is-active {
  width: 27px;
  background: var(--pcg-accent);
}

.pcg-carousel__thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pcg-carousel__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #eef0ea;
  opacity: .72;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.pcg-carousel__thumb.is-active,
.pcg-carousel__thumb:hover {
  border-color: var(--pcg-accent);
  opacity: 1;
}

.pcg-carousel__thumb-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
}

.pcg-carousel__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pcg-carousel button:focus-visible,
.pcg-carousel:focus-visible {
  outline: 3px solid #66ae8e;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .pcg-carousel {
    --pcg-radius: 11px;
    --pcg-control: 36px;
  }

  .pcg-carousel__arrow--prev { left: 8px; }
  .pcg-carousel__arrow--next { right: 8px; }
  .pcg-carousel__arrow svg { width: 17px; height: 17px; }
  .pcg-carousel__counter { top: 8px; right: 8px; padding: 5px 9px; font-size: 11px; }
  .pcg-carousel__thumbnails { gap: 5px; }
  .pcg-carousel__thumb { border-radius: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcg-carousel__track,
  .pcg-carousel__arrow,
  .pcg-carousel__dot,
  .pcg-carousel__thumb {
    transition: none !important;
  }
}
