.ast-plain-container.ast-no-sidebar #primary.kh-gallery-page {
  margin-block: 0;
}

.kh-gallery-page {
  background: var(--kh-paper);
  color: var(--kh-ink);
  font-family: inherit;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.kh-gallery-page__hero {
  background: linear-gradient(125deg, #f6f3ea, #edf4ee);
  border-bottom: 1px solid #dce7dd;
  padding: 0;
  position: relative;
}

.kh-gallery-page__hero .kh-section {
  position: relative;
  z-index: 1;
}

.kh-gallery-page__hero .kh-section {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.kh-gallery-page__hero p {
  color: var(--kh-saffron);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .55rem;
  text-transform: uppercase;
}

.kh-gallery-page__hero h1 {
  color: var(--kh-forest);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
  margin: 0;
}

.kh-gallery-page__section {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.kh-gallery-page__section h2 {
  color: var(--kh-forest);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin: 0;
}

.kh-gallery-page__section>p {
  color: var(--kh-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 44rem;
}

.kh-gallery-page__grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 16rem));
  justify-content: start;
  margin-top: 1.25rem;
  overflow: visible;
}

.kh-gallery-page__grid img {
  aspect-ratio: 4 / 3;
  background: #f8faf7;
  border: 1px solid rgba(23, 74, 56, .22);
  border-radius: .85rem;
  box-shadow: 0 .35rem .9rem rgba(24, 55, 38, .045);
  display: block;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: border-color 480ms ease, box-shadow 620ms cubic-bezier(.22,1,.36,1), transform 720ms cubic-bezier(.22,1,.36,1);
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .kh-gallery-page__grid img:hover {
    border-color: rgba(23, 74, 56, .48);
    box-shadow: 0 .85rem 1.5rem rgba(24, 55, 38, .15);
    transform: scale(1.045);
  }
}

@media (max-width: 700px) {
  .kh-gallery-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-gallery-page__grid img {
    transition: none;
  }
}

.kh-gallery-page__hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.kh-gallery-page__hero::after {
  background: var(--kh-company-art-gallery, none) right center / contain no-repeat;
  content: '';
  inset: 0;
  opacity: .60;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
