.gallery-main {
  min-height: 100vh;
  padding-bottom: 92px;
  background: #fbf6ed;
}

.gallery-hero {
  position: sticky;
  top: 64px;
  z-index: 8;
  padding: 20px 18px 16px;
  background: rgba(251, 246, 237, 0.96);
  border-bottom: 1px solid rgba(22, 24, 22, 0.08);
  backdrop-filter: blur(14px);
}

.gallery-hero h1 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 600;
}

.gallery-hero p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.gallery-slider {
  display: grid;
  gap: 14px;
  padding: 14px 14px 20px;
  scroll-snap-type: y proximity;
}

.gallery-slide {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: #efe7db;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 33, 29, 0.12);
  scroll-snap-align: start;
}

.gallery-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
}

.gallery-slide span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(15, 33, 29, 0.74);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.gallery-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-nav a {
  border: 1px solid rgba(255, 250, 241, 0.12);
}

@media (max-width: 360px) {
  .gallery-hero h1 {
    font-size: 27px;
  }

  .gallery-slider {
    padding-inline: 10px;
  }
}
