.image-drop-preview.compact {
  width: 116px;
  height: 116px;
  aspect-ratio: auto;
  margin: 0 auto;
}
.image-drop-preview.compact > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.image-zoom,
.compact-gallery article > a > span,
.existing-image-row a i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 24px !important;
  height: 24px;
  display: grid !important;
  place-items: center;
  border-radius: 7px;
  background: #0b2927d9;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-style: normal;
}
.gallery-upload-preview.compact {
  height: 125px;
}
.compact-gallery {
  grid-template-columns: repeat(3, 1fr);
}
.compact-gallery article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
}
.compact-gallery article > a {
  position: relative;
  display: block;
  width: 88px;
  height: 78px;
  margin: 9px;
}
.compact-gallery img {
  width: 88px;
  height: 78px !important;
  border-radius: 9px;
  object-fit: cover;
}
.compact-gallery article > div {
  min-width: 0;
  padding: 10px !important;
  display: flex !important;
  min-height: 78px;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center !important;
}
.compact-gallery article > div b {
  display: block;
  width: 100%;
  margin-bottom: 9px;
  overflow: hidden;
  color: #1d3935;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.react-admin .compact-gallery .gallery-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 9px 4px 6px;
  border: 1px solid #f0d5d2;
  border-radius: 8px;
  background: #fff7f6;
  color: #ae403b;
  font:
    700 0.65rem/1 'DM Sans',
    sans-serif;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.react-admin .compact-gallery .gallery-delete-btn span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f5dedb;
  font-size: 0.82rem;
  line-height: 1;
}
.react-admin .compact-gallery .gallery-delete-btn:hover {
  border-color: #d65e57;
  background: #c64c46;
  color: #fff;
}
.react-admin .compact-gallery .gallery-delete-btn:hover span {
  background: rgba(255, 255, 255, 0.18);
}
.compact-upload-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.compact-upload-grid > label {
  padding: 12px;
}
.existing-image-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 7px 0 10px;
}
.existing-image-row > a,
.existing-image-row > .upload-empty {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 62px !important;
}
.existing-image-row img {
  width: 72px !important;
  height: 62px !important;
  margin: 0 !important;
  object-fit: cover;
}
.existing-image-row > div b,
.existing-image-row > div small {
  display: block;
}
.existing-image-row > div b {
  font-size: 0.7rem;
}
.existing-image-row > div small {
  margin-top: 2px;
  color: #71807b;
  font-size: 0.6rem;
  font-weight: 400;
}
.compact-upload-grid input {
  margin-top: 0 !important;
  padding: 8px !important;
}
@media (max-width: 650px) {
  .compact-gallery {
    grid-template-columns: 1fr;
  }
  .compact-upload-grid {
    grid-template-columns: 1fr;
  }
  .gallery-upload-preview.compact {
    height: 110px;
  }
}
