.dr1imagescroll {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  padding: 50px 0;
}

.dr1imagescroll h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.dr1imagescroll .carousel-container-dr1imagescroll {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.dr1imagescroll .carousel-track-dr1imagescroll {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.dr1imagescroll .carousel-slide-dr1imagescroll {
  min-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000; /* Background to show behind images if using 'contain' */
}

.dr1imagescroll .carousel-slide-dr1imagescroll img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain; /* No cropping */
  border-radius: 20px 20px 0 0;
  background-color: #000;
}

.dr1imagescroll .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.dr1imagescroll .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.dr1imagescroll .carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.dr1imagescroll .prev-btn {
  left: 15px;
}

.dr1imagescroll .next-btn {
  right: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .dr1imagescroll h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .dr1imagescroll .carousel-slide-dr1imagescroll img {
    max-height: 280px;
  }

  .dr1imagescroll .caption {
    font-size: 0.95rem;
    padding: 12px;
  }

  .dr1imagescroll .carousel-btn {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}
