.gallery-header {
  margin: 2rem 0 1.5rem;
}

.gallery-header h1,
.gallery-uploader h2,
.gallery-list h2 {
  color: #253b2e;
}

.gallery-header p {
  max-width: 42rem;
  margin: 0;
  color: #5d685f;
}

.gallery-uploader {
  padding: 1.25rem;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #fffaf2;
  margin-bottom: 2rem;
}

.gallery-list {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  padding: .5rem 0;
}

.gallery-load-sentinel {
  min-height: 1px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #ffffff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.gallery-card:hover {
  z-index: 2;
  box-shadow: 0 10px 26px rgba(29, 37, 32, .22);
  transform: scale(1.04);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e1d3;
}

.gallery-card-footer {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: .75rem;
}

.gallery-card-footer time {
  color: #6b716b;
  font-size: .9rem;
}

.gallery-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gallery-delete-button svg {
  display: block;
}

@media (max-width: 575.98px) {
  .gallery-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
