/* Add a Resource page: photo preview. Everything else uses the shared form styles. */
.photo-preview
{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.photo-preview[hidden]
{
  display: none;
}

.photo-preview img
{
  display: block;
  max-width: 240px;
  max-height: 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Small screens: the photo preview and day pickers must never push the page wider. */
@media (max-width: 40rem)
{
  .photo-preview img
  {
    max-width: 100%;
    height: auto;
  }
}
