.miravi-carousel-section {
  margin-top: 18px;
}

.miravi-carousel-section__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.sd-carousel-host,
.miravi-carousel-host {
  position: relative;
}

.sd-carousel-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #334155;
}

.sd-carousel-edit-btn:hover {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.sd-carousel-edit-btn svg {
  display: block;
}

.tb-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.tb-photo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border, #e5e7eb);
  background: #f3f4f6;
}

.sd-photo-edit-tile {
  cursor: grab;
  touch-action: manipulation;
}

.sd-photo-edit-tile.sd-photo-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.tb-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.tb-photo-tile button.sd-photo-tile-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}

.tb-photo-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
