
/* Final correction: stick the GRID COLUMN, not the full-height inner aside. */
@media (min-width: 992px) {
  .single-post-page > .container > .row,
  .main-content > .container > .row { align-items: flex-start !important; }
  .single-post-page > .container > .row > .col-lg-4,
  .main-content > .container > .row > .col-lg-4 {
    position: sticky !important;
    top: 16px !important;
    align-self: flex-start !important;
    height: fit-content !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 2;
  }
  .single-post-page > .container > .row > .col-lg-4 > .sidebar,
  .main-content > .container > .row > .col-lg-4 > .sidebar {
    position: static !important;
    top: auto !important;
    height: auto !important;
  }
}
.sidebar, .sidebar .container, .sidebar .widget { overflow: visible !important; max-height: none !important; }
/* Compact two-column categories, for both classic and Gutenberg category widgets. */
.sidebar .widget_categories > ul,
.sidebar .widget_categories .wp-block-categories-list,
.sidebar .widget .wp-block-categories-list,
.sidebar .widget .wp-block-categories {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
}
.sidebar .widget_categories li,
.sidebar .widget .wp-block-categories-list li,
.sidebar .widget .wp-block-categories li {
  min-width: 0 !important;
  padding: 8px 0 !important;
  overflow-wrap: anywhere !important;
}
.sidebar .widget_categories li a,
.sidebar .widget .wp-block-categories-list li a,
.sidebar .widget .wp-block-categories li a { font-size: 12px !important; }
@media (max-width: 991px) {
  .single-post-page > .container > .row > .col-lg-4,
  .main-content > .container > .row > .col-lg-4 { position: static !important; top: auto !important; }
}
