/* Common. */
body .im-fb-posts-carousel .swiper {
    width: calc(100% - 8rem);
    margin: 0 auto;
}

body .im-fb-posts-carousel .swiper .swiper-wrapper .swiper-slide {
    height: auto;
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow {
    position: absolute;
    top: calc(50% - 1.5rem);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background: none;
    border: none;
    transform: translateX(0);
    transition: all 0.2s;
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow svg path {
    fill: var(--e-global-color-primary);
    transition: fill 0.2s;
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow.elementor-swiper-button-prev {
    left: 0;
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow.elementor-swiper-button-prev:not(:disabled):hover {
    transform: translateX(-0.5rem);
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow.elementor-swiper-button-next {
    right: 0;
}

body .im-fb-posts-carousel .swiper ~ .im-fb-arrow.elementor-swiper-button-next:not(:disabled):hover {
    transform: translateX(0.5rem);
}

/* Backend. */
body.elementor-editor-active .im-fb-posts-carousel .swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
}

body.elementor-editor-active .im-fb-posts-carousel[data-slides-count="1"] .swiper .swiper-wrapper .swiper-slide {
    flex: 0 0 100%;
}

body.elementor-editor-active .im-fb-posts-carousel[data-slides-count="2"] .swiper .swiper-wrapper .swiper-slide {
    flex: 0 0 50%;
}

body.elementor-editor-active .im-fb-posts-carousel[data-slides-count="3"] .swiper .swiper-wrapper .swiper-slide {
    flex: 0 0 33.3333%;
}

body.elementor-editor-active .im-fb-posts-carousel[data-slides-count="4"] .swiper .swiper-wrapper .swiper-slide {
    flex: 0 0 25%;
}
