.cj-gallery {
  position: relative;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  float: none;
  border: 0;
  overflow: hidden;
  background: #11151c;
  isolation: isolate;
  border-radius: 1rem;
}

.cj-gallery:hover {
  box-shadow: none;
}

.cj-gallery div {
  width: auto;
  height: auto;
  overflow: visible;
}

.cj-gallery .cj-gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
  background: #11151c;
  touch-action: pan-y;
}

.cj-gallery .cj-gallery-slide {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.28s ease;
}

.cj-gallery .cj-gallery-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.cj-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3; 
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 13, 18, 0.62);
  color: #fff;
  cursor: pointer;
  line-height: 0;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cj-gallery-arrow:hover,
.cj-gallery-arrow:focus-visible {
  background: rgba(var(--bs-primary-rgb), 0.92);
  border-color: rgba(var(--bs-primary-rgb), 0.92);
  outline: none;
}

.cj-gallery-arrow--prev {
  left: 1rem;
}

.cj-gallery-arrow--next {
  right: 1rem;
}

.cj-gallery-arrow .material-symbols-outlined { 
  width: 1em;
  height: 1em;
  color: inherit;
  font-size: 2rem;
  line-height: 1;
}

.cj-gallery .cj-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.55);
  transform: translateX(-50%);
}

.cj-gallery-dot {
  width: 0.56rem;
  height: 0.56rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.18s ease, transform 0.18s ease;
}

.cj-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 767.98px) {
  .cj-gallery {
    margin: 1.1rem 0;
  }

  .cj-gallery .cj-gallery-viewport {
    min-height: 190px;
  }

  .cj-gallery-arrow, .cj-gallery-arrow .material-symbols-outlined {
    width: 2.25rem;
    height: 2.25rem;
  }

  .cj-gallery-arrow--prev {
    left: 0.65rem;
  }

  .cj-gallery-arrow--next {
    right: 0.65rem;
  }

  .cj-gallery-arrow .material-symbols-outlined {
    font-size: 1.65rem;    
  }

  .cj-gallery-dots {
    bottom: 0.65rem;
  }
}
