.img-mask-container {
  position: relative;
  overflow: hidden;
  display: block;
  perspective: 1000px;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.img-mask-images {
  position: relative;
  height: 100%;
}

.img-mask-slide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: opacity;
  /* Add to existing properties */
  filter: contrast(1.02);  /* Subtle contrast boost */
  image-rendering: crisp-edges;  
}

.img-mask-slide.active {
  opacity: 1;
}

/* Enhanced Arrow Styling */
.img-mask-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Icon styling */
.img-mask-nav i {
  color: var(--arrow-color, white);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optional: Add hover effect for arrows */
.img-mask-nav:hover {
  background: var(--arrow-hover-bg, rgba(0,0,0,0.8)) !important;
}