/* 1. Perspective Viewport */
.boxSlides box-slides-container {
  width: 15vw; 
  height: 10vh;
  perspective: 25vw; /* Gives the depth illusion */
  position: relative;
}

/* 2. The 3D Rotating Box Container */
.boxSlides cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d; /* Enables 3D rendering for children */
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth, slightly bouncy spin */
}

/* Common Face Styling */
.boxSlides face {
  position: absolute;
  width: 15vw;
  height: 10vh;
  overflow: hidden;
  backface-visibility: hidden; /* Hides the back side of faces when turned away */
}

.boxSlides face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3. Positioning the 4 faces in 3D Space (Width is 500px, so push out half: 250px) */
.boxSlides front  { transform: rotateY(0deg) translateZ(22vw); }
.boxSlides right  { transform: rotateY(90deg) translateZ(22vw); }
.boxSlides back   { transform: rotateY(180deg) translateZ(22vw); }
.boxSlides left   { transform: rotateY(-90deg) translateZ(22vw); }