.gallery-hero {
  overflow: hidden;
  max-width: 100%;
  padding: clamp(5rem, 12vw, 9rem) var(--space-4) var(--space-16);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--color-action) 18%, transparent), transparent 28rem),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--color-success) 12%, transparent), transparent 22rem),
    var(--color-background-secondary);
}

.gallery-hero h1 {
  max-width: 54rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: var(--line-tight);
  font-weight: 650;
}

.gallery-section {
  background: var(--color-background);
}

.gallery-feed {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 52rem);
  min-width: 0;
  margin-inline: auto;
  scroll-snap-type: y proximity;
}

.gallery-post {
  overflow: hidden;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.gallery-post__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.gallery-post__avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: var(--radius-circle);
  background: var(--color-background-secondary);
}

.gallery-post__avatar img {
  width: 1.3rem;
  filter: var(--filter-brand-logo);
}

.gallery-post__head h2 {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--line-title);
}

.gallery-post__head time {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-post__media {
  background: var(--color-background-tertiary);
}

.gallery-post__media img,
.gallery-post__media video {
  width: 100%;
  max-height: 42rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-post__body {
  padding: var(--space-4);
}

.gallery-post__body p {
  margin: 0;
  color: var(--color-text-secondary);
}

.gallery-skeleton {
  min-height: 24rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(110deg, var(--color-background-secondary) 8%, var(--color-background-tertiary) 18%, var(--color-background-secondary) 33%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.2s linear infinite;
}

@keyframes galleryShimmer {
  to {
    background-position-x: -200%;
  }
}
