.featured-mosaic-posts {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow: visible;
}

.featured-mosaic-post-item {
    display: flex;
    background: #fff;
    overflow: hidden;
}

.featured-mosaic-post-image-scale{
    display: block;
    width: 100%;
    overflow: hidden;
}

.featured-mosaic-post-image {
    transition:
        width 0.4s ease,
        flex-basis 0.4s ease;
}

.featured-mosaic-post-item:not(.active) {
    border-color: transparent !important;
}

.featured-mosaic-post-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.featured-mosaic-post-content {
    position: relative;
    overflow: hidden;
    width: 0;
    height: 0;
    flex: 0 0 0;
    opacity: 0;
    padding: 0;
    transition:
        width 0.4s ease,
        flex-basis 0.4s ease,
        opacity 0.25s ease,
        padding 0.3s ease;
}

.featured-mosaic-post-content-box{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.featured-mosaic-post-item.active .featured-mosaic-post-content {
    border-left: none !important; 
    height: auto;
    opacity: 1;
}

.featured-mosaic-post-title {
    margin: 0 0 10px 0;
}

.featured-mosaic-post-title a {
    text-decoration: none;
}

.featured-mosaic-post-excerpt {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.featured-mosaic-post-meta {
    font-size: 12px;
    color: #999;
}

.featured-mosaic-post-date {
    margin-right: 10px;
}

.featured-mosaic-post-category {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    
}

@media (max-width: 768px) {
    .featured-mosaic-posts {
        flex-wrap: wrap;
    }
    
    .featured-mosaic-post-item {
        flex: 0 0 calc(50% - var(--gap, 20px));
        flex-direction: column;
    }
    
    .featured-mosaic-post-image,
    .featured-mosaic-post-content {
        width: 100% !important;
    }
    
    .featured-mosaic-post-image img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .featured-mosaic-post-item {
        flex: 0 0 100%;
    }
}