.x-feed-container {
    display: grid;
    grid-template-columns:
        calc((100% - 175px) / 6) calc((100% - 175px) / 6) calc((100% - 175px) / 6) calc((100% - 175px) / 6)
        calc((100% - 175px) / 6) calc((100% - 175px) / 6);
    gap: 35px;
    row-gap: 20px;
}

.x-feed-item {
    /* border: 1px solid #ccc; */

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
    background: #2a3559;
    grid-column: span 3;
}

/* Featured item for odd count: spans two rows and one column */
.x-feed-item.x-feed-item--featured {
    grid-row: span 2;
    grid-column: 1 / span 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

/* Second and third item for odd count: stack in column 2, rows 1 and 2 */
.x-feed-item.x-feed-item--side {
    grid-column: 3 / span 4;
}
.x-feed-item.x-feed-item--fullrow {
    grid-column: 1 / span 6;
}

@media (max-width: 700px) {
    .x-feed-container {
        grid-template-columns: 1fr;
    }
    .x-feed-item,
    .x-feed-item.x-feed-item--featured,
    .x-feed-item.x-feed-item--side {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

.x-feed-item:hover {
    transform: translateY(-5px);
}

.x-feed-item .x-feed-content {
    padding: 15px;
}
.x-feed-item a {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.x-feed-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.x-feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.x-feed-content h3 {
    margin-top: 0;
    font-size: 18px !important;
    line-height: normal !important;
    font-weight: bold !important;
    color: #ffffff !important;
    /* line-height: 1.4; */
    margin: 0px;
}

.x-feed-content p {
    font-size: 18px;
    line-height: normal !important;
    color: #ffffff !important;
    margin: 0px;
    /* line-height: 1.6; */
}

.x-feed-item.x-feed-item--side a {
    display: grid;
    grid-template-columns: 40% 1fr;
}
