

#curvedWallContainer {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  max-width: 100%; /* Ensure container does not exceed the viewport */
  overflow-x: auto;
  overflow-y: hidden;
  perspective: 800px; /* Adjusted for a better 3D effect */
  perspective-origin: center;
  height: 100vh;
  
}

#curvedWall {
  display: grid;
  gap: 30px;
  padding: 0px 50px;
  grid-auto-flow: column;
  white-space: nowrap;
  width: 100%;
  position:fixed;
  transition: transform 1s ease; /* Smooth transition on swipe */
  transform: rotateY(20deg) translateY(4rem) translateZ(-75rem) translateX(270px);
  
}

.gridItem {
  width: 240px; /* Match grid-template-columns width */
  height: 160px; /* Match grid-template-rows height */
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
  /*transform: rotateY(20deg) translateY(4rem) translateZ(-70rem);*/ /* Correct positioning in 3D space */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Lighter shadow to reduce flicker */
  transform-origin: center center; /* Transform origin is still needed */
  transition: box-shadow 1s ease; /* Smooth transition for individual grid items */
  will-change: transform;
  cursor: pointer;
  
}

.gridItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  width: 40px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

#prevButton {
  left: 10px;
}

#nextButton {
  right: 10px;
}

.gridBackButton {
  position: absolute;
  top: -5%;
  left: 20%;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.gridTitleOverlay {
  position: absolute;
  bottom: 0px; /* Position at the bottom of the image */
  width: 100%;
  background-color: white; /* Semi-transparent black background */
  color: black;
  text-align: center;
  padding: 5px;
  font-size: 0.875rem; /* Adjust font size as needed */
  box-sizing: border-box; /* Ensure padding is included in the element's width */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}

.trendingBadge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: transparent; /* Customize the background color */
  color: green;
  padding: 10px 10px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  z-index: 10;
}

/* Hover Effects */
.gridItem:hover {
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.8);
}


/* CSS for the mobile view of the left panel */
@media (max-width: 767px) {

  .gridTitleOverlay {
    background-color: #292929;
    color: white;
  }

  #curvedWall {
    /*transform: rotateY(20deg) translateY(0rem) translateZ(-75rem) translateX(370px);*/
    transform: translateX(370px);
  }

  .gridItem:hover {
    box-shadow: none;
  }

  .gridItem {
    box-shadow: none;
    border: 2px solid #292929;
  }

  #curvedWallContainer
  {
    /*perspective: 1000px;
    background: #292929;*/
    background: transparent;
    
  }
}
