.cg-842cb928-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    font-family: inherit;
    --cg-visible-items: 5;
}

.cg-842cb928-track {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.cg-842cb928-item {
    position: absolute;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0) scale(0.5);
    z-index: 1;
}

.cg-842cb928-item-inner {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.cg-842cb928-item-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    /* Base shadow for all visible items, gets stronger in focus */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease;
}

.cg-842cb928-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}

.cg-842cb928-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    pointer-events: none;
    z-index: 1;
}

.cg-842cb928-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

/* Active / Center */
.cg-842cb928-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 5;
}
.cg-842cb928-item.active .cg-842cb928-item-img-wrap {
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Level 1 (Immediate left/right) */
.cg-842cb928-item.prev-1 {
    opacity: 0.95;
    visibility: visible;
    transform: translateX(-70%) scale(0.85);
    z-index: 4;
}
.cg-842cb928-item.next-1 {
    opacity: 0.95;
    visibility: visible;
    transform: translateX(70%) scale(0.85);
    z-index: 4;
}
.cg-842cb928-item.prev-1 .cg-842cb928-item-img-wrap,
.cg-842cb928-item.next-1 .cg-842cb928-item-img-wrap {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Level 2 (Outer left/right) - Default visible for 5 items */
.cg-842cb928-item.prev-2 {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(-125%) scale(0.7);
    z-index: 3;
    filter: blur(1.5px);
}
.cg-842cb928-item.next-2 {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(125%) scale(0.7);
    z-index: 3;
    filter: blur(1.5px);
}
.cg-842cb928-item.prev-2 .cg-842cb928-item-img-wrap,
.cg-842cb928-item.next-2 .cg-842cb928-item-img-wrap {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Handle 3 items setting via variable */
.cg-842cb928-wrapper[style*="--cg-visible-items: 3"] .cg-842cb928-item.prev-2,
.cg-842cb928-wrapper[style*="--cg-visible-items: 3"] .cg-842cb928-item.next-2,
.cg-842cb928-wrapper[style*="--cg-visible-items: '3'"] .cg-842cb928-item.prev-2,
.cg-842cb928-wrapper[style*="--cg-visible-items: '3'"] .cg-842cb928-item.next-2 {
    opacity: 0;
    visibility: hidden;
}

.cg-842cb928-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cg-842cb928-nav button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    color: #333;
}

.cg-842cb928-nav button:hover {
    background: #f5f5f5;
}

.cg-842cb928-nav button svg {
    fill: currentColor;
}
