/* v523: constrain the actual bag grid independently of its panel ancestors. */
@media (min-width:761px) {
 .eh497-pane.mode-inventory .ether-character-inventory {
  width:100%!important;max-width:640px!important;min-width:0;box-sizing:border-box;margin-inline:auto!important;
 }
 #inventory-bag-items {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%;max-width:640px;min-width:0;margin-inline:auto;gap:9px!important;align-items:start;
 }
 #inventory-bag-items>.inventory-item {
  position:relative;box-sizing:border-box;min-width:0;width:100%;min-height:140px;
  overflow:visible;
 }
 #inventory-bag-items>.inventory-item>summary {
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;
  box-sizing:border-box;width:100%;height:138px;min-height:138px;max-height:138px;
  gap:4px;padding:7px 5px;overflow:hidden;list-style:none;
 }
 #inventory-bag-items>.inventory-item>summary::-webkit-details-marker {display:none}
 #inventory-bag-items .inventory-slot-art {
  display:grid!important;place-items:center;position:relative!important;inset:auto!important;
  box-sizing:border-box;width:60px!important;height:60px!important;min-width:0!important;
  min-height:0!important;max-width:60px!important;max-height:60px!important;
  flex:0 0 60px!important;aspect-ratio:1;overflow:hidden!important;
  margin:0 auto!important;transform:none!important;
 }
 #inventory-bag-items .inventory-slot-art>img {
  display:block!important;position:static!important;inset:auto!important;
  box-sizing:border-box;width:60px!important;height:60px!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;
  transform:none!important;translate:none!important;scale:none!important;
 }
 #inventory-bag-items>.inventory-item>summary>strong {
  display:block;flex:none;min-height:0;max-width:100%;margin:0;
  font-size:.72rem;line-height:1.3;text-align:center;overflow-wrap:anywhere;
 }
 #inventory-bag-items>.inventory-item>summary>:is(.pill,.potion-stack-count,small) {
  flex:none;min-height:0;max-width:100%;margin:0;font-size:.65rem;line-height:1.3;
 }
 #inventory-bag-items .inventory-pet-scroll .pet-scroll-art {
  position:relative;width:60px!important;height:60px!important;min-height:0;flex:0 0 60px;overflow:hidden;
 }
 #inventory-bag-items .inventory-pet-scroll .pet-scroll-art>.pet-companion {
  width:60px!important;height:60px!important;max-width:60px!important;max-height:60px!important;
 }
 #inventory-bag-items .inventory-expander-icon {
  box-sizing:border-box;width:60px;height:60px;min-width:0;min-height:0;flex:0 0 60px;
  font-size:36px;line-height:60px;margin:0;
 }
}
