.gallery-section {
  padding: 76px 28px 78px;
  color: #fff4e9;
  background: radial-gradient(circle at 50% 7%, #85474a 0, #6c2e31 42%, #491d21 100%);
  overflow: hidden;
}
.gallery-kicker {
  color: #e4c497;
  font: 11px/1.5 var(--serif);
  letter-spacing: .24em;
}
.gallery-heading {
  margin: 13px 0 6px;
  color: #fff1df;
  font: 400 clamp(48px, 9vw, 69px)/1.3 var(--script);
}
.gallery-intro {
  color: #f6e4d5;
  font: italic 22px/1.4 var(--serif);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 36px auto 0;
}
.gallery-item { min-width: 0; margin: 0; }
.gallery-item-wide { grid-column: 1 / -1; }
.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 5px;
  background: #f3e6d4;
  box-shadow: 0 12px 28px #1d080b59;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-photo:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #1d080b77; }
.gallery-photo:focus-visible { outline: 2px solid #f7d69f; outline-offset: 4px; }
.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #261416;
}
.gallery-item-wide .gallery-photo img { aspect-ratio: 3 / 2; }
.gallery-number {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 5px 7px 4px;
  color: #fff5e7;
  background: #32171bb8;
  font: 11px/1 var(--serif);
  letter-spacing: .15em;
  pointer-events: none;
}
.gallery-footnote {
  margin-top: 34px;
  color: #eed8c0;
  font: italic 22px/1.4 var(--serif);
}
.gallery-footnote span { display: block; margin-top: 9px; color: #d9b776; font-style: normal; }
.gallery-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  border: 0;
  color: #fff4e9;
  background: #1d1114;
}
.gallery-viewer::backdrop { background: #1d1114f2; }
.gallery-viewer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}
.gallery-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 72px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 30px #0007;
}
.gallery-viewer-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff4e9;
  background: #6c2e31;
  font: 32px/1 var(--serif);
}
.gallery-viewer-controls { display: flex; align-items: center; justify-content: space-between; width: min(100%, 420px); }
.gallery-viewer-controls button { width: 52px; height: 48px; color: #fff4e9; background: transparent; font: 42px/1 var(--serif); }
.gallery-viewer-count { font: 13px/1 var(--serif); letter-spacing: .2em; }
.gallery-viewer button:focus-visible { outline: 2px solid #e4c497; outline-offset: 2px; }
body.gallery-open { overflow: hidden; }
@media (max-width: 430px) {
  .gallery-section { padding: 66px 16px 68px; }
  .gallery-grid { gap: 8px; margin-top: 28px; }
  .gallery-photo { padding: 4px; }
  .gallery-number { right: 10px; bottom: 10px; font-size: 9px; }
  .gallery-intro { font-size: 20px; }
  .gallery-footnote { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo { transition: none; } }
