/* Main widget */
.c3dc-widget {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    direction: ltr;
}

/* Fixed slider area */
.c3dc-stage {
    width: 100%;
    height: 390px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 45%;
    touch-action: pan-y;
}

/* 3D rotating ring */
.c3dc-ring {
    --c3dc-depth: 420px;
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Each image position */
.c3dc-item {
    position: absolute;
    width: 190px;
    height: 262px;
    left: 50%;
    top: 50%;
    margin-left: -95px;
    margin-top: -131px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Image frame */
.c3dc-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #172536;
    border: 1px solid #d1b36b;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    backface-visibility: hidden;
}

/* Image */
.c3dc-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* Links */
.c3dc-card a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Image title */
.c3dc-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 8px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.85)
    );
    pointer-events: none;
}

/* Pause on hover */
.c3dc-pause-hover:hover .c3dc-ring {
    animation-play-state: paused;
}

/* Dragging */
.c3dc-dragging {
    cursor: grabbing;
}

.c3dc-stage {
    cursor: grab;
}

/* Tablet */
@media (max-width: 1024px) {
    .c3dc-stage {
        perspective: 1000px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .c3dc-stage {
        perspective: 800px;
    }
}