.smooth-scroll-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch; /* Improve scrolling on iOS devices */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.smooth-scroll-slider-content {
    display: flex;
    min-width: 100%;
    height: 100%;
    align-items: center; /* This centers the items vertically */
    will-change: transform;
    transform-style: preserve-3d;
    width: max-content;
    opacity: 1;
    gap: 80px; /* Add gap between items, adjust as needed */
}

.smooth-scroll-slider-content > * {
    flex-shrink: 0;
    margin-bottom: 20px; /* Add bottom margin to inside elements, adjust as needed */
}

/* Ensure inner blocks are also centered vertically */
.smooth-scroll-slider-content > .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure images within the slider have a consistent width */
.smooth-scroll-slider-content img {
    width: 136px; /* Adjust this value based on your design preferences */
    height: auto;
    display: block;
}

/* Remove horizontal margins that might interfere with spacing, keep vertical margins */
.smooth-scroll-slider-content figure {
    margin-left: 0;
    margin-right: 0;
}

/* Default width */
.smooth-scroll-slider.aligndefault {
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

/* Wide width */
.smooth-scroll-slider.alignwide {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

/* Full width */
.smooth-scroll-slider.alignfull {
    max-width: 100vw !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Fix for potential right-side gap */
body .is-layout-constrained > .alignfull {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
}

@media (max-width: 1280px) {
    .smooth-scroll-slider.alignwide {
        max-width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 780px) {
    .smooth-scroll-slider.aligndefault {
        max-width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Optimize for mobile */
@media (max-width: 768px) {
    .smooth-scroll-slider-content {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

/* Ensure content is not selectable during animation */
.smooth-scroll-slider-content * {
    user-select: none;
}
