body { min-height: 100vh; display: flex; flex-direction: column; }
.gallery-page { flex: 1; background: var(--paper, #fffcf5); }
.gallery-cover { color: var(--paper, #fffcf5); background: var(--deep, #102f27); }
.gallery-heading { padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.gallery-heading .kicker { color: #d7e3d8; }
.gallery-heading .kicker::before { border-color: var(--gold, #ffcf65); }
.gallery-heading h1 { margin: .7rem 0 0; color: inherit; font: 780 clamp(3.1rem, 5.8vw, 5.6rem)/1 var(--sans); letter-spacing: -.06em; }
.gallery-heading h1 em { color: var(--gold, #ffcf65); font-style: normal; }
.gallery-intro { max-width: 48ch; margin-top: 1rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #e5eee4; line-height: 1.58; }
.album-space { padding-block: clamp(2rem, 5.2vw, 4.7rem); }

.guest-album {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.65vw, 1.4rem);
}
.guest-album figure { margin: 0; min-width: 0; }
.guest-album figure:nth-child(-n+2) { grid-column: span 2; }
.guest-photo { display: block; border-radius: 1rem; overflow: hidden; background: #e8e4da; cursor: zoom-in; }
.guest-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.guest-album figure:nth-child(-n+2) img { aspect-ratio: 7 / 5; object-position: center 38%; }
.guest-photo:focus-visible { outline: 3px solid #795018; outline-offset: 3px; }
#guest-viewer {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: fit-content;
  max-width: 96vw; max-height: 96vh; max-height: 96dvh; padding: .65rem;
  overflow: auto; border: 0; border-radius: 1rem; background: #102f27; color: #fffcf5;
}
#guest-viewer[open] { display: grid; justify-items: center; gap: .45rem; }
#guest-viewer::backdrop { background: rgb(5 18 14 / .86); }
.viewer-photo { width: auto; height: auto; max-width: 88vw; max-height: calc(92vh - 7.5rem); max-height: calc(92dvh - 7.5rem); object-fit: contain; border-radius: .4rem; }
#guest-viewer button { font: inherit; font-weight: 650; color: inherit; background: transparent; padding: .45rem .8rem; min-height: 44px; border: 1px solid #8da49a; border-radius: 2rem; cursor: pointer; }
#guest-viewer button:focus-visible { outline: 3px solid #ffcf65; outline-offset: 1px; }
#guest-viewer button:hover { background: #255142; }
.viewer-close { justify-self: end; }
.viewer-controls { width: 100%; display: flex; justify-content: center; align-items: center; gap: .75rem; white-space: nowrap; }
.viewer-count { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .guest-album { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-photo { border-radius: .7rem; }
}

.gallery-reviews { margin: 1.6rem 0 0; }
.gallery-reviews a { color: #13392f; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }