.listing-photo-picker {
  padding: 12px;
  border: 2px dashed #bcb4a7;
  border-radius: 12px;
  background: var(--paper);
  margin-block: 16px 8px;
}
.listing-photo-picker.is-dragover {
  border-color: var(--navy);
  outline: 2px solid var(--amber);
}
.form-panel .listing-photo-picker label {
  margin: 0;
}
.listing-photo-picker input[type="file"] {
  min-width: 0;
  background: var(--white);
}
.listing-photo-status {
  margin-block: 8px;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.listing-photo-status:empty {
  margin: 0;
}
.listing-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-block: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
/* The preview is the posted listing: the lead photo is cropped like the listing card (4:3, cover),
   every other photo is framed like the listing gallery (4:3, the whole photo, contained). */
.listing-photo-thumb {
  display: block;
  flex: 0 0 180px;
  width: 180px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 8px;
  background: #f1ece4;
  object-fit: cover;
}
.listing-photo-thumb.is-gallery {
  object-fit: contain;
}
.listing-photo-detail {
  flex: 1 1 200px;
  min-width: 0;
}
@media (max-width: 600px) {
  .listing-photo-thumb {
    flex-basis: 100%;
    width: 100%;
  }
}
.listing-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.listing-photo-row .listing-photo-actions {
  margin-top: 4px;
}
.listing-photo-actions .btn {
  padding-inline: 12px;
}
