.photo-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.photo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.photo-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}
.photo-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-source-actions .secondary {
  min-height: 42px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.photo-add {
  position: relative;
  overflow: hidden;
}
.photo-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: var(--overlay-photo);
  color: #fff;
  display: grid;
  place-items: center;
}
.photo-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 520px) {
  .photo-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
