.pg-gallery {
  --pg-edge: max(5.1vw, 1.25rem);
  --pg-gap: clamp(1.25rem, 2.6vw, 2.75rem);
  --pg-caption: #6b4c47;
  color: var(--gh-ink);
}

.pg-gallery :is(h1, h2, p, figure) {
  margin: 0;
}

.pg-gallery :is(h1, h2) {
  font-family: var(--gh-serif);
  font-weight: 400;
  letter-spacing: -.065em;
}

.pg-gallery :is(h1, h2) em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.pg-hero {
  background: #f5e3dc;
  border-block: 1px solid var(--gh-line);
}

.pg-cover,
.pg-inner,
.pg-invitation {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--pg-edge);
}

.pg-cover {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 6rem);
  padding-block: clamp(2.3rem, 4.3vw, 4.6rem);
}

.pg-intro {
  padding-block: 1rem;
}

.pg-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 650;
}

.pg-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.pg-intro h1 {
  margin-block: 1.25rem 1.5rem;
  font-size: clamp(3.75rem, 6.7vw, 7rem);
  line-height: .98;
}

.pg-intro h1 em {
  display: block;
}

.pg-deck,
.pg-chapter-head p,
.pg-invitation p {
  max-width: 44ch;
  line-height: 1.6;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.pg-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}

.pg-textlink:hover,
.pg-index a:hover {
  text-decoration-thickness: 2px;
}

.pg-intro .pg-textlink {
  margin-top: 1.15rem;
}

.pg-figure {
  min-width: 0;
}

.pg-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--pg-ratio, 1);
  background-color: #e4d7c9;
  cursor: zoom-in;
}

.pg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pg-focus, center);
}

.pg-photo::after {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  display: grid;
  place-content: center;
  content: "+";
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  color: var(--gh-ink);
  background: #fff8efee;
  box-shadow: 0 1px 5px #2b181b26;
  font: 400 1.45rem/1 var(--gh-sans);
}

.pg-photo:focus-visible {
  outline: 3px solid #df913c;
  outline-offset: 3px;
}

.pg-figure figcaption {
  display: block;
  margin-top: .7rem;
  color: var(--pg-caption);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.pg-candle-workbench {
  --pg-ratio: 1.26;
  --pg-focus: 56% 42%;
  padding: clamp(.5rem, 1vw, .85rem);
  border: 1px solid #c6a498;
  background: var(--gh-paper);
  box-shadow: .38rem .38rem 0 #e1bfb3;
}

.pg-candle-workbench figcaption {
  margin: .56rem .15rem 0;
  font: italic clamp(.99rem, 1.4vw, 1.27rem)/1.35 var(--gh-serif);
}

.pg-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .1rem clamp(.85rem, 3vw, 3rem);
  padding: .25rem var(--pg-edge);
  min-height: 3.7rem;
  border-bottom: 1px solid var(--gh-line);
}

.pg-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: .95rem;
  text-underline-offset: .29em;
}

.pg-chapter {
  scroll-margin-top: 1rem;
}

.pg-inner {
  padding-block: clamp(3rem, 6.8vw, 6.7rem);
}

.pg-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--pg-gap);
  margin-bottom: clamp(1.45rem, 3vw, 2.8rem);
}

.pg-chapter-head h2,
.pg-invitation h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.02;
}

.pg-chapter-head p {
  max-width: 38ch;
}

.pg-layout {
  display: grid;
  gap: clamp(1.6rem, 3.3vw, 3.2rem) var(--pg-gap);
  align-items: start;
}

.pg-clay .pg-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
}

.pg-painting-terracotta {
  --pg-ratio: 1.62;
  --pg-focus: 50% 57%;
}

.pg-terracotta-brushwork {
  --pg-ratio: 1.02;
  --pg-focus: 51% 58%;
}

.pg-forms {
  --pg-caption: #edd3c8;
  color: var(--gh-paper);
  background: #501e29;
}

.pg-forms .pg-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.pg-petal-glass-bowl {
  grid-column: 1 / 8;
  --pg-ratio: 1.57;
  --pg-focus: 50% 62%;
}

.pg-white-pillar-candle {
  grid-column: 9 / 13;
  align-self: center;
  --pg-ratio: 1.1;
  --pg-focus: 52% 49%;
}

.pg-rose-petal-shell {
  grid-column: 1 / 6;
  --pg-ratio: 1.24;
  --pg-focus: 50% 55%;
}

.pg-coconut-candle-batch {
  grid-column: 6 / 9;
  --pg-ratio: .9;
  --pg-focus: 53% 64%;
}

.pg-festive-sculpted-candles {
  grid-column: 9 / 13;
  --pg-ratio: 1.06;
  --pg-focus: 45% 59%;
}

.pg-gifts .pg-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, .8fr);
}

.pg-engraved-gift-boxes {
  --pg-ratio: 1.18;
  --pg-focus: 45% 47%;
}

.pg-wooden-candle-duo {
  --pg-ratio: .72;
  --pg-focus: 50% 73%;
}

.pg-botanical-label-jar {
  align-self: center;
  --pg-ratio: .72;
  --pg-focus: 49% 52%;
}

.pg-invitation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem var(--pg-gap);
  padding-block: clamp(2.5rem, 4.6vw, 4.5rem);
  border-top: 1px solid var(--gh-line);
}

.pg-invitation p {
  max-width: 58ch;
  margin-top: .95rem;
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.45rem;
  align-items: center;
}

.pg-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .7rem 1.15rem;
  background: var(--gh-ink);
  color: var(--gh-paper);
  font-weight: 600;
  text-decoration: none;
}

.pg-button:hover {
  background: #793646;
}

@media (prefers-reduced-motion: no-preference) {
  .pg-photo img {
    transition: transform .32s ease-out;
  }
  @media (hover: hover) {
    .pg-photo:hover img {
      transform: scale(1.025);
    }
  }
}

@media (max-width: 760px) {
  .pg-cover {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    max-width: 42rem;
  }
  .pg-intro {
    padding-block: 0;
  }
  .pg-intro h1 {
    max-width: 12ch;
    margin-block: .75rem 1rem;
    font-size: clamp(3.65rem, 11.3vw, 5.1rem);
  }
  .pg-intro .pg-textlink {
    margin-top: .5rem;
  }
  .pg-candle-workbench {
    --pg-ratio: 1.35;
  }
  .pg-chapter-head {
    align-items: start;
    flex-direction: column;
    gap: .65rem;
  }
}

@media (max-width: 640px) {
  .pg-gallery {
    --pg-gap: 1.1rem;
  }
  .pg-index {
    gap: .4rem 1.2rem;
    padding-inline: 1rem;
    justify-content: flex-start;
  }
  .pg-index a {
    font-size: .9rem;
  }
  .pg-clay .pg-layout,
  .pg-forms .pg-layout,
  .pg-gifts .pg-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-layout .pg-figure {
    grid-column: auto;
  }
  .pg-terracotta-brushwork {
    width: 81%;
    justify-self: end;
    --pg-ratio: 1.24;
  }
  .pg-forms .pg-layout {
    gap: 1.9rem;
  }
  .pg-white-pillar-candle,
  .pg-botanical-label-jar {
    width: 79%;
    justify-self: center;
  }
  .pg-coconut-candle-batch {
    --pg-ratio: 1.53;
  }
  .pg-festive-sculpted-candles {
    --pg-ratio: 1.22;
  }
  .pg-wooden-candle-duo {
    --pg-ratio: 1.02;
  }
}

@media (min-width: 1440px) {
  .pg-gallery {
    --pg-edge: 4.6rem;
  }
}
