.anniversary-preview {
  background: #f8f7f3;
  border-top: 1px solid #e7dfce;
  border-bottom: 1px solid #e7dfce;
}
.gallery-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.gallery-section-head .section-head { margin: 0; max-width: 780px; }
.gallery-section-head h2 { font-size: 2.75rem; letter-spacing: 0; }
.gallery-section-head .btn { flex-shrink: 0; }
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}
.photo-gallery.is-arranged { display: block; }
.gallery-photo { display: block; overflow: hidden; background: #e9e7e4; }
.gallery-pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 32px 0; }
.gallery-pagination p { margin: 0; color: #64576d; font-size: 0.9rem; }
.gallery-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gallery-page-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #cda448; border-radius: 4px; color: #430967; text-decoration: none; font-weight: 700; }
.gallery-page-links a[aria-current="page"] { background: #430967; border-color: #430967; color: #fff; }
.gallery-page-links a:hover { background: #f0e4bf; color: #430967; }
.gallery-page-links a:focus-visible { outline: 3px solid #cda448; outline-offset: 3px; }
.photo-gallery.is-arranged .gallery-photo { position: absolute; }
.gallery-photo img { display: block; width: 100%; height: auto; }
.photo-gallery.is-arranged .gallery-photo img { height: 100%; object-fit: contain; }
.gallery-photo:focus-visible { outline: 3px solid #cda448; outline-offset: 3px; }
.gallery-page .page-hero.article-hero { padding-block: 60px 30px; background: #fff; color: var(--ink); }
.gallery-page .page-hero.article-hero .container { display: block; min-height: 0; padding-block: 0; }
.gallery-page .page-hero.article-hero h1 { max-width: none; font-size: 3.5rem; letter-spacing: 0; color: var(--ink); }
.gallery-page .page-hero.article-hero p { max-width: 780px; color: #64576d; }
.gallery-page .gallery-count { margin-top: 12px; color: #756b7b; font-size: 0.9rem; }
.gallery-page .article-section { padding-top: 20px; background: #fff; }
.gallery-page .article-layout { display: block; width: min(1320px, calc(100% - 40px)); max-width: 1320px; }
.gallery-article > p { max-width: 760px; margin: 0 auto 24px; }
.gallery-article .photo-gallery + * { margin-top: 32px; }
.pswp__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 24px; background: rgba(0,0,0,0.65); color: #fff; text-align: center; }
.home-page .anniversary-cover::before { background-position: 70% 38%; }
@media (max-width: 620px) {
  .gallery-page-links { gap: 4px; }
  .gallery-section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .gallery-section-head h2 { font-size: 2rem; }
  .gallery-section-head .btn { min-height: 44px; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gallery-page .page-hero.article-hero h1 { font-size: 2.15rem; }
  .gallery-page .page-hero.article-hero { padding-block: 36px 20px; }
  .gallery-page .article-layout { width: calc(100% - 32px); }
  .home-page .anniversary-cover::before { background-position: 68% top; }
}
