:root {
    --carousel-width: 400px;
    --carousel-height: 400px;
}

.carousel {
    position: relative;
    width: var(--carousel-width);
    height: var(--carousel-height);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.carousel .item {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: translateX(0) translateZ(-500px);
    opacity: 0;
}

.carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* =========================================
   Reel Positions (Circular Loop) 
   Pos 0 = Left Front
   Pos 1 = Center Front
   Pos 2 = Right Front
   Pos 3 = Right Back
   Pos 4 = Center Back
   Pos 5 = Left Back
   ========================================= */

.carousel .item[data-pos="0"] {
    width: calc(var(--carousel-width) + 200px);
    z-index: 9;
    opacity: 1;
    transform: translateX(calc(-1.2875 * var(--carousel-width))) translateZ(calc(-0.5 * var(--carousel-width))) rotateY(-30deg) scale(1);
}

.carousel .item[data-pos="1"] {
    z-index: 10;
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
}

.carousel .item[data-pos="2"] {
    width: calc(var(--carousel-width) + 200px);
    z-index: 9;
    opacity: 1;
    transform: translateX(calc(1.2875 * var(--carousel-width))) translateZ(calc(-0.5 * var(--carousel-width))) rotateY(30deg) scale(1);
}

.carousel .item[data-pos="3"] {
    top: -220px;
    z-index: 5;
    opacity: 0.5;
    transform: translateX(calc(0.875 * var(--carousel-width))) translateZ(calc(-1.125 * var(--carousel-width))) rotateY(-15deg) scale(0.75);
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel .item[data-pos="4"] {
    top: -235px;
    z-index: 1;
    opacity: 0.2;
    transform: translateX(0) translateZ(-550px) rotateY(0deg) scale(0.75);
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel .item[data-pos="5"] {
    top: -220px;
    z-index: 5;
    opacity: 0.5;
    transform: translateX(calc(-0.875 * var(--carousel-width))) translateZ(calc(-1.125 * var(--carousel-width))) rotateY(15deg) scale(0.75);
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    z-index: 20;
}

.pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination .dot:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.2);
}

.pagination .dot.active {
    background: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1180px) {
    :root {
        --carousel-width: 300px;
        --carousel-height: 300px;
    }
}