.fb-rpc-carousel {
    position: relative;
    width: -webkit-fill-available;
    margin: 0 auto;
    overflow: hidden;
    font-family: inherit;
}


.fb-rpc-carousel .swiper-slide{
    height: auto;
}

@media (min-width: 640px){
    .fb-rpc-carousel::before, .fb-rpc-carousel::after{
        content: '';
        width: 36px;
        height: 100%;
        position: absolute;
        top: 0;
        background: linear-gradient(90deg, #f3e1cc, transparent);
        z-index: 2;
    }

    .fb-rpc-carousel::before{
        left: 0;
    }

    .fb-rpc-carousel::after{
        right: 0;
        background: linear-gradient(-90deg, #f3e1cc, transparent)
    }
}



.fb-rpc-carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.fb-rpc-carousel .carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.fb-rpc-carousel .swiper-wrapper{
    padding: 20px 0;
}

.fb-rpc-carousel .fb-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgb(55 43 37 / 25%)
}

.fb-rpc-carousel .fb-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    padding: 12px;
    padding-right: 1rem;
}

.fb-rpc-carousel .profile-image {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1B76F0;
    object-fit: cover;
}

.fb-rpc-carousel .header-info {
    display: flex;
    flex-direction: column;
}

.fb-rpc-carousel .header-info a{
    line-height: 120%;
    text-decoration: none;
}

.fb-rpc-carousel .header-info a:hover{
    text-decoration: underline;
}

.fb-rpc-carousel .page-name {
    font-weight: 600;
    color: #050505;
    font-size: 15px;
}

.fb-rpc-carousel .post-date {
    display: block;
    font-size: 10px;
    line-height: 1;
    color: #65676b;
    margin-top: 2px;
}

.fb-rpc-carousel .facebook-icon{
    position: absolute;
    right: 1rem;
    top: 1rem;
}
.fb-rpc-carousel .facebook-icon svg{
    width: 20px;
    height: 20px;
    display: block;
    fill: #1B76F0;
}

.fb-rpc-carousel .post-content {
    padding: 0 12px;
    font-size: 15px;
    color: #050505;
    line-height: 1.35;
    /* height: -webkit-fill-available; */
    white-space: pre-wrap; /* Preserves line breaks from the source */
}

@media (min-width: 600px){
    .fb-rpc-carousel .post-content {
        height: 100%;
    }
}

.fb-rpc-carousel .post-content p {
    margin: 0;
}

.fb-rpc-carousel .post-image-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 12px; /* Add space between text and images */
}

.fb-rpc-carousel .post-image-container img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 16 / 9;
}

/* For multi-image posts */
.fb-rpc-carousel .post-image-container.two-images img {
    width: 50%;
}
.fb-rpc-carousel .post-image-container.three-images img,
.fb-rpc-carousel .post-image-container.four-images img {
    width: 50%;
    height: 50%;
}

.fb-rpc-carousel .post-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #e4e6eb;
    margin-top: 12px;
    color: #65676b;
    font-weight: 600;
}

.fb-rpc-carousel .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.15s ease-in-out;
}

.fb-rpc-carousel .action-btn:hover {
    background-color: #f2f2f2;
}

.fb-rpc-carousel .action-btn img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.fb-rpc-carousel .action-btn span {
    color: #65676b;
}

/* Navigation buttons */
.fb-rpc-carousel .swiper-button-prev-custom, .fb-rpc-carousel .swiper-button-next-custom {
    position: absolute;
    top: var(--swiper-navigation-top-offset, 50%);
    width: calc(var(--swiper-navigation-size) / 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 4px 8px #00000046)
}

.fb-rpc-carousel .swiper-button-prev-custom img, .fb-rpc-carousel .swiper-button-next-custom img {
    height: 100%;
}

.fb-rpc-carousel .swiper-button-next-custom.swiper-button-disabled, .fb-rpc-carousel .swiper-button-prev-custom.swiper-button-disabled{
    opacity: .7;
    cursor: auto;
    pointer-events: none;
}

.fb-rpc-carousel .swiper-button-prev-custom { left: 10px; }
.fb-rpc-carousel .swiper-button-prev-custom img { transform: rotate(180deg); }
.fb-rpc-carousel .swiper-button-next-custom { right: 10px; }

.fb-rpc-carousel .swiper-button-prev-custom:hover img, .fb-rpc-carousel .swiper-button-next-custom:hover img{
    opacity: .7;
}

.fb-rpc-carousel .read-more-btn {
    color: #1a77f2; /* Facebook blue */
    text-decoration: none;
    font-weight: 500;
}

.fb-rpc-carousel .read-more-btn:hover {
    text-decoration: underline;
}

.fb-cta{
    width: 200px;
}