#content.asset-card-layout > .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
#content.asset-card-layout > .grid > .card {
  height: 510px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}
#content.asset-card-layout .card > .thumb {
  flex: 0 0 180px;
  height: 180px;
  min-height: 180px;
  overflow: hidden;
}
#content.asset-card-layout .thumb .image-trigger,
#content.asset-card-layout .thumb img { width: 100%; height: 100%; }
#content.asset-card-layout .thumb img { object-fit: contain; }
#content.asset-card-layout .card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
#content.asset-card-layout .card-body h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#content.asset-card-layout .asset-description-details {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
#content.asset-card-layout .asset-description-details summary {
  cursor: pointer;
  font-size: 12px;
  opacity: .78;
  margin-bottom: 8px;
}
#content.asset-card-layout .asset-description-details p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#content.asset-card-layout .asset-description-details:not([open]) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
#content.asset-card-layout .card-body .tags { flex-shrink: 0; margin-bottom: 0 !important; }
#content.asset-card-layout .card-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
#content.asset-card-layout .card-actions button { margin: 0; }

/* Display only: keep the linked asset list within the prompt column's row. */
@media(min-width:1101px){
 .shot-work-assets{position:relative;align-self:stretch;min-height:0}
 .shot-work-assets>.shot-work-asset-list{position:absolute;top:28px;bottom:0;left:0;right:0;max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain}
}
.shot-work-asset-list button{flex-shrink:0;min-width:0}
.shot-work-asset-list button span:last-child{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){
 .shot-work-assets>.shot-work-asset-list{max-height:180px;overflow:auto;overscroll-behavior:contain}
}
