/* All slides occupy the same grid cell, reserving room for the longest title. */
.rusdnepr-cat-slider {display:grid; width:100%; max-width:100%; min-width:0; box-sizing:border-box;}
.rusdnepr-cat-slider .rusdnepr-cat-slide {grid-area:1/1; display:flex; align-items:center; gap:10px; text-decoration:none; min-width:0; width:100%; box-sizing:border-box; visibility:hidden; pointer-events:none;}
.rusdnepr-cat-slider .rusdnepr-cat-slide.is-active {visibility:visible; pointer-events:auto;}
.rusdnepr-cat-slider .rusdnepr-cat-thumb {flex:0 0 auto; width:var(--rd-thumb-w,70px); height:var(--rd-thumb-h,50px); max-width:35%; overflow:hidden; border-radius:4px; background:#eee;}
.rusdnepr-cat-slider .rusdnepr-cat-thumb img {width:100%; height:100%!important; object-fit:cover; display:block; float:none;}
.rusdnepr-cat-slider .rusdnepr-cat-title {display:block; flex:1 1 0; min-width:0; font-size:14px; line-height:1.2; font-weight:600; color:inherit; white-space:normal; overflow-wrap:anywhere;}
/* Compatibility only for the legacy header containing this slider. */
@media (min-width: 769px) {
 #header .logo-container:has(> .widget-header .rusdnepr-cat-slider) {display:flex; align-items:center; gap:24px; flex-wrap:nowrap;}
 #header .logo-container:has(> .widget-header .rusdnepr-cat-slider) > .logo-wrap {float:none; flex:0 1 auto; min-width:0; max-width:45%;}
 #header .logo-container > .widget-header:has(.rusdnepr-cat-slider) {float:none; flex:1 1 0; min-width:0; max-width:none; width:auto;}
 #header .widget-header:has(.rusdnepr-cat-slider) .textwidget:has(.rusdnepr-cat-slider) {float:none; width:100%; min-width:0; box-sizing:border-box; margin-top:0;}
}
@media (max-width:768px) {
 #header .logo-container > .widget-header:has(.rusdnepr-cat-slider) {max-width:100%; min-width:0; box-sizing:border-box;}
 #header .widget-header:has(.rusdnepr-cat-slider) .textwidget:has(.rusdnepr-cat-slider) {max-width:100%; box-sizing:border-box;}
}
