.gallery-header {
  margin: 2.25rem 0 1.75rem;
}

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

.gallery-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.gallery-header p {
  max-width: 46rem;
  margin: .4rem 0 0;
  color: #5d685f;
  font-size: 1.05rem;
}

.gallery-uploader {
  padding: 1.5rem;
  border: 1px solid #e6e0d2;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 0 2px 6px rgba(29, 37, 32, .05), 0 10px 28px rgba(29, 37, 32, .06);
  margin-bottom: 2rem;
}

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

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

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

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6e0d2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 37, 32, .05), 0 8px 22px rgba(29, 37, 32, .06);
  transition: box-shadow .25s ease, transform .25s ease;
}

.gallery-card:hover {
  box-shadow: 0 4px 10px rgba(29, 37, 32, .08), 0 16px 34px rgba(29, 37, 32, .16);
  transform: translateY(-3px);
}

.gallery-card .gallery-photo-button {
  overflow: hidden;
}

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

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card-footer {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: .6rem .85rem;
  border-bottom: 1px solid #efeadf;
}

.gallery-card-footer time {
  color: #5d685f;
  font-size: .85rem;
  font-weight: 500;
}

.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;
  }
}
