/* My Shelf Life — Owner Collections Gallery V1.
   Only applies to /collections.html's main Collection list after enhancement.
   Designed to visually match Community > Discover > Collections. */
main.msl-owner-gallery-page{
  width:min(1100px,calc(100% - 34px))!important;
  max-width:1100px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#cards.msl-owner-gallery-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch;
}
#cards.msl-owner-gallery-grid .msl-owner-gallery-card{
  box-sizing:border-box;min-width:0;
  display:flex;flex-direction:column;
  padding:12px 13px 14px;
  background:#fffbf5;
  border:1px solid #dbd0bf;
  border-radius:13px;
  box-shadow:0 2px 8px #382c1d0b;
  color:#433d34;
}
.msl-owner-gallery-preview{
  box-sizing:border-box;
  display:flex;justify-content:center;align-items:center;
  min-height:121px;margin-bottom:13px;
  padding:12px 14px 17px;
  border-radius:9px;position:relative;overflow:hidden;
  border:1px solid #ac8965;
  background:linear-gradient(#b9956b,#856242);
  text-decoration:none;
}
.msl-owner-gallery-preview.is-japanese{
  background:linear-gradient(#e9e0cb,#c7bba3);
  border-color:#cfc3ad;
}
.msl-owner-gallery-preview:after{
  content:"";position:absolute;left:8px;right:8px;bottom:8px;
  height:8px;border-radius:2px;background:#573c29;
  box-shadow:0 3px 5px #2b180b3d;
}
.msl-owner-gallery-preview.is-japanese:after{background:#9b846a}
.msl-owner-gallery-preview-books{
  display:flex;align-items:flex-end;justify-content:center;
  gap:5px;min-height:82px;max-width:100%;position:relative;z-index:1;
}
.msl-owner-gallery-mini-book{
  display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;overflow:hidden;
  width:44px;height:66px;flex:0 1 44px;min-width:21px;
  border:1px solid #ffffff33;border-radius:2px 3px 1px 1px;
  color:#f3e9cc;background:linear-gradient(135deg,#4c735c,#233d31);
  box-shadow:2px 3px 5px #261f1f4d;
}
.msl-owner-gallery-mini-book:nth-child(even){background:linear-gradient(135deg,#a97958,#784f35)}
.msl-owner-gallery-mini-book:nth-child(3n){background:linear-gradient(135deg,#4f637d,#2f3d52)}
.msl-owner-gallery-mini-book img{display:block;width:100%;height:100%;object-fit:cover}
.msl-owner-gallery-mini-book span{font:700 10px Georgia,serif;letter-spacing:.08em;transform:rotate(-90deg)}
.msl-owner-gallery-title{
  margin:0 0 9px!important;
  font:normal 23px/1.12 'DM Serif Display',Georgia,serif!important;
  overflow-wrap:anywhere;color:#203e33;
}
.msl-owner-gallery-title a{text-decoration:none;color:inherit}
.msl-owner-gallery-title a:hover{text-decoration:underline;text-underline-offset:3px}
.msl-owner-gallery-description{
  margin:0 0 14px!important;
  flex:1;min-height:0;
  font:normal 13px/1.52 Inter,Arial,sans-serif;
  color:#5c5349;overflow-wrap:anywhere;white-space:pre-line;
  display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:3;overflow:hidden;
}
.msl-owner-gallery-description.is-empty{font-style:italic;color:#82786a}
.msl-owner-gallery-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;
  padding:10px 0;margin-top:auto;
  border-top:1px solid #eae3d7;
  font:normal 11px/1.35 Inter,Arial,sans-serif;
  color:#7a7064;
}
.msl-owner-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.msl-owner-gallery-button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;padding:8px 13px;
  border:0;border-radius:999px;background:#2b533f;color:#fff!important;
  text-decoration:none;font:800 12px/1.2 Inter,Arial,sans-serif;white-space:nowrap;
}
.msl-owner-gallery-button:hover{background:#193d2d;color:#fff}
.msl-owner-gallery-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
.msl-owner-gallery-tool{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:6px 10px;
  text-decoration:none;color:#2b533f!important;background:#fffdf8;
  border:1px solid #b8c9b9;border-radius:999px;
  font:800 11px/1.2 Inter,Arial,sans-serif;
}
.msl-owner-gallery-tool:hover{background:#e9f1e9;color:#163e29!important}
.msl-owner-gallery-badge{
  display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;padding:5px 9px;
  border:1px solid #d8cdbd;border-radius:999px;
  font:800 10px/1.1 Inter,Arial,sans-serif;
  letter-spacing:.025em;color:#766e61;background:#f0e9dd;
}
.msl-owner-gallery-badge.is-public{color:#28553e;background:#e7f1e6;border-color:#b5d0b5}
.msl-owner-gallery-card a:focus-visible{
  outline:3px solid #4f8864;outline-offset:3px;
}
@media(max-width:900px){#cards.msl-owner-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:610px){
  main.msl-owner-gallery-page{width:calc(100% - 26px)!important}
  #cards.msl-owner-gallery-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  .msl-owner-gallery-preview{min-height:128px}
  .msl-owner-gallery-title{font-size:24px!important}
}

@media(max-width:350px){.msl-owner-gallery-footer{flex-wrap:wrap}.msl-owner-gallery-tools{margin-left:0}}
