.wp-block-custom-two-image-carousel {
  position: relative;
  width: 100%;
  /* max-width: 600px;  */
  margin: 0 auto;
  font-family: sans-serif;
  user-select: none;
}

.two-image-carousel-scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 98%; /* 4:3 aspect ratio - adjust to your images' ratio */
}


.two-image-carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.two-image-carousel-track figure.wp-block-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: contain;
  z-index: 1;
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.two-image-carousel-track figure.wp-block-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.two-image-carousel-track figure.wp-block-image.active {
  opacity: 1;
  z-index: 2;
}

.two-image-carousel-caption {
  position: static;          
  background: transparent;   
  color: var(--wd-text-color);              
  font-size: 75%;
  line-height: 1.6;
  font-style: italic;
  /* padding: 8px 0;             */
  pointer-events: auto;      
  user-select: text;
  text-align: left;       
  /* margin-top: 8px;            */
  z-index: auto;
  margin-top: 0.6em;
}
.two-image-carousel-caption a { 
  text-decoration: underline;
}
.two-image-carousel-caption {
  transition: opacity 0.2s ease;
  opacity: 1;
}

.two-image-carousel-caption.fade-out {
  opacity: 0;
}

.two-image-carousel-caption.fade-in {
  opacity: 1;
}


.two-image-carousel-dots {
  position: absolute;          /* remove absolute positioning */
  bottom: 30px;
  right: 30px;
  display: flex;
  justify-content: center;   /* center dots horizontally */
  gap: 12px;
  z-index: 100;
  background: transparent;   /* transparent background */
  padding: 0;
}
@media (max-width: 768px) {
  .two-image-carousel-dots {
    bottom: 15px;
    right: 15px;
  }
}
.carousel-dot {
  width: 14px;
  height: 14px;
  min-height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25); /* lighter black for inactive dots */
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background: black; /* solid black for active dot */
}





.two-image-carousel-track figure.wp-block-image figcaption {
  display: none;
}
