.publish-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 20px 0;
}

.publish-media-grid__slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 35%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #6b4f9a, #4a3a7a);
}

.publish-media-grid__slot--two {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 217, 168, 0.3), transparent 55%),
    linear-gradient(135deg, #ffd9a8, #ffb3c8);
}

.publish-media-grid__slot--three {
  background:
    radial-gradient(circle at 55% 35%, rgba(143, 229, 181, 0.28), transparent 55%),
    linear-gradient(135deg, #8fe5b5, #d8b4ff);
}

.publish-media-grid__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.publish-media-grid__cover {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: $fg;
  font: 500 9px / 1 $font-body;
}

.publish-media-grid__remove {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.publish-media-grid__slot--add {
  border: 1px dashed rgba(216, 180, 255, 0.25);
  background: rgba(45, 34, 85, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: $muted;
}

.publish-media-grid__add-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(216, 180, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.publish-media-grid__add-label {
  font: 500 10px / 1 $font-body;
}
