/* neutralise le layout du plugin */
.efbl_feed_wraper .efbl_feeds_holder{
    display:flex !important;
    flex-wrap:nowrap !important;
}

/* chaque post devient une slide */
.efbl_feed_wraper .efbl-story-wrapper{
    display: flex;
    flex-direction: column;
    width: 300px; /* largeur fixe du slide */
    height: 350px; /* hauteur totale fixe du slide */
    box-sizing: border-box;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
}

/* container swiper */
.efbl_feed_wraper.swiper{
    overflow: hidden;
    padding-bottom: 36px; 
}

/* track */
.efbl_feed_wraper .swiper-wrapper{
    display:flex;
}

/* slide */
.efbl_feed_wraper .swiper-slide{
    flex:0 0 100%;
}

/* Navigation arrows */
.efbl_feed_wraper .swiper-button-prev,
.efbl_feed_wraper .swiper-button-next {
    color: var(--global-palette5);
    font-weight: 900;
    z-index: 2; 
}
.efbl_feed_wraper .swiper-button-prev::before,
.efbl_feed_wraper .swiper-button-next::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--swiper-navigation-size) + 20px);
    height: calc(var(--swiper-navigation-size) + 20px);
    background: var(--global-palette7);
    opacity: 0.5;
    border-radius: 50%;
    z-index: -1; 
    pointer-events: none;
}
.efbl_feed_wraper .swiper-button-next {
    right: 2.5%;
}
.efbl_feed_wraper .swiper-button-prev {
    left: 2.5%;
}

/* Pagination bullets Swiper */
.efbl_feed_wraper .swiper-pagination {
    text-align: center;
    margin-top: 10px;
}

.efbl_feed_wraper .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background: var(--global-palette3);
    border: 1px solid var(--global-palette5);
    opacity: 1;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.efbl_feed_wraper .swiper-pagination-bullet-active {
    background: var(--global-palette5); /* couleur du bullet actif */
}

/* responsive */
@media (min-width:768px){
    .efbl_feed_wraper .swiper-slide{
        flex:0 0 50%;
    }
}

@media (min-width:1024px){
    .efbl_feed_wraper .swiper-slide{
        flex:0 0 33.333%;
    }
}

/* Post */
/* neutraliser les colonnes et paddings internes */
.efbl-feed-content,
.efbl-thumbnail-col,
.efbl-row.efbl-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.efbl-thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.efbl-row.efbl-content-wrapper {
    flex-direction: column;
}
.efbl-thumbnail-col.efbl-col-sm-6,
.efbl-feed-content.efbl-col-sm-6  {
    max-width: 100%;
}
.efbl-profile-image,
.efbl-profile-title-wrap h2 {
    display: none;
}
.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col {
    border-right: none;
}
.efbl-halfwidth-skin {
    border: none;
    padding: 10px;
}
/* image du post */
.efbl-story-wrapper img {
    width: 100%;
    height: 150px; /* hauteur fixe de l'image */
    object-fit: cover; 
    background: #eee; /* pour les posts sans image */
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* titre / profil */
.efbl-profile-title-wrap {
    height: 30px; /* hauteur fixe du bloc profil/titre */
    overflow: hidden;
    padding: 4px 12px;
    box-sizing: border-box;
    font-weight: bold;
}

/* texte du post */
.efbl-post-text {
    /* tronquer à 3 lignes avec ellipse (fallback: max-height) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.4em * 3);
    padding: 0 12px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4em;
    box-sizing: border-box;
    word-break: break-word;
}
