.my-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  padding: 10px;
  position:relative;
}

/* Swiper container scales with parent */
.my-carousel .swiper {
  width: 100%;
  height: 60vh;
  aspect-ratio: 16 / 9; /* default ratio */
  perspective: 1000px;
}

.my-carousel .swiper-slide {
  width: 70%; /* 👈 smaller than container so sides peek out */
  max-width: 700px;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.8s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}


/* Pagination dots */
.my-carousel .swiper-pagination-bullet {
  background: #aaa;
  opacity: 0.8;
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  transition: background 0.3s ease, opacity 0.3s ease;
}
.my-carousel .swiper-pagination-bullet-active {
  background: #2563eb;
  opacity: 1;
}

/* Variants */
.my-carousel--big .swiper {
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}

.my-carousel--small .swiper {
  max-width: 450px;
  aspect-ratio: 16 / 9;
}

/* Optional: more adaptive on very small screens */
@media (max-width: 640px) {
  .my-carousel .swiper {
    aspect-ratio: 4 / 3;
  }
}