.wp-block-gallery.is-style-finidev-carousel {
    position: relative;
    overflow: hidden;
    display: block;
}

.wp-block-gallery.is-style-finidev-carousel > .wp-block-image,
.wp-block-gallery.is-style-finidev-carousel > .blocks-gallery-item {
    display: none;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-slide > * {
    display: block;
    margin: 0;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-arrow-prev {
    left: 12px;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-arrow-next {
    right: 12px;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
}

.wp-block-gallery.is-style-finidev-carousel .finidev-carousel-dot.is-active {
    background: rgba(255, 255, 255, 1);
}

/* Editor preview only */
.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel,
.block-editor-block-list__block.is-style-finidev-carousel {
    overflow: hidden;
}

.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel > .wp-block-image,
.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel > .blocks-gallery-item,
.block-editor-block-list__block.is-style-finidev-carousel .wp-block-gallery > .wp-block-image,
.block-editor-block-list__block.is-style-finidev-carousel .wp-block-gallery > .blocks-gallery-item {
    display: inline-block;
    width: min(420px, 80%);
    vertical-align: top;
    margin-right: 16px;
}

.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel,
.block-editor-block-list__block.is-style-finidev-carousel .wp-block-gallery {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel > .wp-block-image,
.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel > .blocks-gallery-item,
.block-editor-block-list__block.is-style-finidev-carousel .wp-block-gallery > .wp-block-image,
.block-editor-block-list__block.is-style-finidev-carousel .wp-block-gallery > .blocks-gallery-item {
    scroll-snap-align: start;
}

.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel .finidev-carousel-viewport,
.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel .finidev-carousel-arrow,
.editor-styles-wrapper .wp-block-gallery.is-style-finidev-carousel .finidev-carousel-dots,
.block-editor-block-list__block.is-style-finidev-carousel .finidev-carousel-viewport,
.block-editor-block-list__block.is-style-finidev-carousel .finidev-carousel-arrow,
.block-editor-block-list__block.is-style-finidev-carousel .finidev-carousel-dots {
    display: none !important;
}
