/* Keep imported thumbnails in natural grid rows instead of stretching all rows into the pool height. */
.media-pool{
  grid-auto-rows:max-content;
  align-content:start;
  align-items:start;
  gap:14px;
}
.media-card{
  width:100%;
  height:auto;
  min-width:0;
  min-height:0;
  aspect-ratio:4/3;
  contain:layout paint;
}
.media-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-card .select-mark,.media-card .cover-action{z-index:2}
.media-card.image-error{display:none}
.pool-actions{display:flex;align-items:center;gap:9px}.select-all{background:#eef2ef;color:var(--forest);border:1px solid #cbd7cf}.select-all.has-selection{background:#fff3ed;color:#a84d2d;border-color:#edbda9}@media(max-width:700px){.pool-head{align-items:flex-start;gap:12px}.pool-actions{width:100%;flex-wrap:wrap}.pool-actions .btn{flex:1}}
