.dw_insights{display:block;float:none;width:100%;padding:30px 0 50px}
.dw_insights::after{content:"";display:table;clear:both}
.dw_insights_parent .dw_insights{padding: 0}

/* ---------- Tabs ---------- */
.dw_ins_tabs{
    position:relative;                 /* needed for scroll-to-centre maths */
    display:flex;
    gap:34px;
    overflow-x:auto;
    overflow-y:hidden;
    margin-bottom:40px;
    scrollbar-width:none;
    box-shadow:inset 0 -1px 0 #ffffff;
}
.dw_ins_tabs::-webkit-scrollbar{display:none}

/* Edge fades show when more tabs are hidden */
.dw_ins_tabs.has-right{
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);
            mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);
}
.dw_ins_tabs.has-left{
    -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent);
            mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent);
}
.dw_ins_tabs.has-left.has-right{
    -webkit-mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent);
            mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent);
}

.dw_ins_tab{
    flex:0 0 auto;
    background:none;border:0;padding:12px 0;
    /* font-size:16px; */
    font-size:14px;
    color:#c9bfa4;cursor:pointer;white-space:nowrap;
    position:relative;transition:color .2s;
    color: rgba(102, 97, 91, 1);
}
.dw_ins_tab:hover{color:#1a1a2e}
.dw_ins_tab.is-active{color:#111}
.dw_ins_tab.is-active::after{content:"";position:absolute;left:0;bottom:0;width:22px;height:2px;background:#e8531f}

/* ---------- Zigzag grid ---------- */
.dw_ins_grid{display:flex;flex-direction:column;gap:16px;float:none;width:100%;transition:opacity .25s}
.dw_ins_grid.is-loading{opacity:.4;pointer-events:none}

/* The PHP already puts the poster first in every 2nd row.
   Do NOT use row-reverse here, or the order flips back. */
.dw_ins_row{display:flex;gap:16px;float:none;width:100%;align-items:stretch}

/* Slots: small ~31.5%, poster ~68.5% (matches the design) */
.dw_ins_slot--small{
    flex:0 0 calc((100% - 16px) * 0.315);
    min-width:0;float:none;width:auto;
}
.dw_ins_slot--poster{
    flex:0 0 calc((100% - 16px) * 0.685);
    min-width:0;position:relative;float:none;width:auto;height: 100%;
    background:#fffdf7;border:1px solid #f1e8d0;border-radius:26px;padding:12px;overflow:hidden;
}

/* A lone poster has no taller neighbour to match, so give it the design's ratio */
.dw_ins_slot--poster:only-child{aspect-ratio:16/9}

/* A lone item in the last row keeps a sensible size */
.dw_ins_slot--small:only-child{flex:0 0 31.5%}
/* .dw_ins_slot--poster:only-child{flex:1 1 100%} */

.dw_ins_poster_link{position:relative;inset:0px;display:block;border-radius:18px;overflow:hidden}
.dw_ins_poster_img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.dw_ins_slot--poster:hover .dw_ins_poster_img{transform:scale(1.03)}

.dw_ins_empty{text-align:center;color:#777;padding:60px 0}

/* ---------- Responsive ---------- */
@media (max-width:900px){
    .dw_ins_row{flex-direction:column}
    .dw_ins_slot--small,
    .dw_ins_slot--small:only-child{flex:none;width:100%}
    .dw_ins_slot--poster,
    .dw_ins_slot--poster:only-child{flex:none;width:100%;min-height:240px}
    .dw_ins_tabs{gap:22px}
}