/* Logged-in Set Gallery: owner grouping only.
   Card/grid sizing deliberately comes from the existing .mini-results/.mini-row
   and .ccc-mobile-pager rules so Gallery matches My Collection and Comic Books. */
.view-toggle-btn[aria-pressed="true"]{
  font-weight:800 !important;
}

.set-gallery-owner-header{
  margin-bottom:0 !important;
}

.set-gallery-owner-body{
  display:block;
  width:100%;
  min-width:0;
}

.set-gallery-owner-body > .mini-results{
  margin-top:10px;
}

.set-gallery-empty{
  text-align:center;
  margin:18px auto 8px;
}

@media (max-width:780px){
  .set-gallery-owner-body > .ccc-mobile-pager{
    margin:10px 0 4px !important;
  }
}


/* Desktop Set Gallery structural width lock.
   Every owner header/body must occupy the same full #result track. The owner
   body is also attached before its mini-grid is created in JS, preventing
   content-sized/intrinsic owner grids and leading blank columns. */
@media (min-width:781px) and (hover:hover) and (pointer:fine){
  #result > .set-gallery-owner-header,
  #result > .set-gallery-owner-body{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    justify-self:stretch !important;
    box-sizing:border-box !important;
  }

  #result .set-gallery-owner-grid{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    justify-self:stretch !important;
    grid-auto-flow:row dense !important;
    align-items:start !important;
    justify-items:stretch !important;
    box-sizing:border-box !important;
  }

  #result .set-gallery-owner-grid > .mini-row{
    grid-column:auto !important;
    grid-row:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }
}
