.afxhg-gallery {
  --afxhg-slide-width: 82vw;
  --afxhg-slide-height: 420px;
  --afxhg-gap: 32px;
  --afxhg-radius: 12px;
  --afxhg-inactive-opacity: .72;
  --afxhg-inactive-scale: .96;
  --afxhg-arrow-size: 25px;
  --afxhg-arrow-icon-size: 15px;
  --afxhg-arrow-offset: 38px;
  --afxhg-arrow-bg: #fff;
  --afxhg-arrow-color: #7d7d7d;
  --afxhg-dot-color: rgba(0,0,0,.24);
  --afxhg-dot-active-color: #111;
  --afxhg-slide-shadow: 0 18px 45px rgba(0, 0, 0, .18);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 0 14px;
  user-select: none;
}

.afxhg-gallery,
.afxhg-gallery * {
  box-sizing: border-box;
}

.afxhg-gallery__viewport {
  width: 100%;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
}

.afxhg-gallery__viewport.is-dragging {
  cursor: grabbing;
}

.afxhg-gallery__track {
  display: flex;
  align-items: center;
  gap: var(--afxhg-gap);
  will-change: transform;
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
}

.afxhg-gallery__slide {
  flex: 0 0 var(--afxhg-slide-width);
  height: var(--afxhg-slide-height);
  overflow: hidden;
  border-radius: var(--afxhg-radius);
  background: #f3f3f3;
  box-shadow: var(--afxhg-slide-shadow);
  transform: scale(var(--afxhg-inactive-scale));
  opacity: var(--afxhg-inactive-opacity);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1), opacity 520ms ease;
}

.afxhg-gallery__slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.afxhg-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.afxhg-gallery__arrow {
  position: absolute;
  top: calc(var(--afxhg-slide-height) / 2);
  z-index: 5;
  width: var(--afxhg-arrow-size);
  height: var(--afxhg-arrow-size);
  border: 0;
  border-radius: 50%;
  background: var(--afxhg-arrow-bg);
  color: var(--afxhg-arrow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transform: translateY(-50%);
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
  padding: 0;
}

.afxhg-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.06);
  color: #111;
}

.afxhg-gallery__arrow--prev {
  left: calc((100vw - var(--afxhg-slide-width)) / 2 + var(--afxhg-arrow-offset));
}

.afxhg-gallery__arrow--next {
  right: calc((100vw - var(--afxhg-slide-width)) / 2 + var(--afxhg-arrow-offset));
}

.afxhg-gallery__arrow svg {
  width: var(--afxhg-arrow-icon-size);
  height: var(--afxhg-arrow-icon-size);
  display: block;
}

.afxhg-gallery__arrow svg path {
  stroke-width: 2.4;
}

.afxhg-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.afxhg-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: var(--afxhg-dot-color);
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background .25s ease;
}

.afxhg-gallery__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--afxhg-dot-active-color);
}

.afxhg-gallery--hide-dots .afxhg-gallery__dots,
.afxhg-gallery--hide-arrows .afxhg-gallery__arrow {
  display: none;
}

@media (max-width: 1024px) {
  .afxhg-gallery {
    --afxhg-slide-width: 84vw;
    --afxhg-slide-height: 360px;
    --afxhg-gap: 22px;
  }
}

@media (max-width: 767px) {
  .afxhg-gallery {
    --afxhg-slide-width: 86vw;
    --afxhg-slide-height: 240px;
    --afxhg-gap: 14px;
    --afxhg-radius: 10px;
  }

  .afxhg-gallery__slide {
    box-shadow: var(--afxhg-slide-shadow);
  }

  .afxhg-gallery__arrow {
    display: none;
  }
}
