/* Photo library: the drop zone, the count, the empty state, and the grid of
   photo cards. */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 2.25rem;
  text-align: center;
  background: var(--sunk);
  border: 1px dashed var(--line-strong);
}

.dropzone__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  cursor: pointer;
}

.dropzone__hint { font-size: 0.875rem; font-weight: 400; color: var(--ink-muted); }
.dropzone__input { font: inherit; font-size: 0.875rem; }

/* The drop zone centers its children; the tags field is a form control and
   reads as one only left-aligned and given a real width. */
.dropzone__field { width: min(100%, 28rem); text-align: left; }

.upload-result:empty { display: none; }
.upload-result { margin-top: 1rem; }
.upload-result ul { margin: 0; padding-left: 1.2rem; font-weight: 400; }

.library-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.75rem 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.empty {
  margin: 3rem 0;
  max-width: 30rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.empty h2 { margin-bottom: 0.625rem; font-size: 1.875rem; }
.empty p { margin: 0 0 1.375rem; font-size: 1rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 2.25rem 2rem;
}

.photo { display: flex; flex-direction: column; gap: 0.875rem; }

.photo__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--photo-placeholder);
}

.photo__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.photo__status {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.photo__remove { font-size: 0.8125rem; color: var(--ink-muted); }
.photo__remove:hover { color: var(--danger); }

.photo__form { display: flex; flex-direction: column; gap: 0.75rem; }
.photo__actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

/* The photo card's inputs sit tighter than a page form's. */
.photo .field__input { padding: 0.5rem 0; font-size: 0.9375rem; border-bottom-color: var(--line); }
