/* Fotos da solicitação: seletor de arquivos e miniaturas. */

.booking-photos,
.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(120px,160px));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.photo-title {
  font-weight: 700;
}

.photo-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-min-height);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--action);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-picker:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.photo-previews {
  grid-template-columns: repeat(auto-fill,minmax(96px,140px));
}

:where(.photo-previews) > div {
  width: min(140px,100%);
}

.photo-previews button {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-photos img,
.photo-previews img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
