.cg-carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    perspective: 1200px;
    height: 500px;
    overflow: visible;
}

.cg-carousel-3d-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.cg-carousel-3d-slide {
    position: absolute;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-style: preserve-3d;
    opacity: 0.5;
    z-index: 1;
}

.cg-carousel-3d-slide img {
    width: 300px;   /* Decreased width */
    height: 400px;  /* Increased height */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s, opacity 0.5s;
}

.cg-carousel-3d-slide.active {
    transform: translateX(0) scale(1.2);
    opacity: 1;
    z-index: 10;
}

.cg-carousel-3d-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.cg-carousel-3d-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 40px;
    color: black;
    cursor: pointer;
    border-radius: 50%;
    padding: 5px 15px;
    transition: background 0.3s ease;
}

.cg-carousel-3d-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}
