.moments-page { background: #fff; color: #173d2b; }
.moments-page [hidden], .moments-viewer [hidden] { display: none !important; }
.moments-page a:focus-visible { outline: 3px solid #187541; outline-offset: 5px; }
.moments-intro {
  position: relative;
  padding: 130px 0 44px;
  border-bottom: 1px solid #e0ebe5;
  background:
    radial-gradient(ellipse at 90% 10%, #dcf4e6, transparent 55%),
    linear-gradient(120deg, #f6faf7, #eff9f3);
}
.moments-heading { max-width: 920px; margin: 0 auto; text-align: center; }
.moments-eyebrow { display: block; margin-bottom: 14px; color: #168246; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: .13em; }
.moments-intro h1 { margin: 0 0 14px; color: #18212e; font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.moments-intro h1 span { color: #168246; }
.moments-page .moments-intro-text { margin: 0; color: #676767 !important; font-size: 18px; font-weight: 400 !important; line-height: 1.6; }
#gallery-photos { scroll-margin-top: 110px; }
.moments-library { padding: 40px 0 72px; }
.moments-highlights { margin-bottom: 20px; }
.moments-highlights .moment-card + .moment-card { margin-top: 24px; }
.moments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.moment-card { width: 100%; min-width: 0; margin: 0; }
.moment-photo { aspect-ratio: 16 / 9; position: relative; display: block; overflow: hidden; border-radius: 8px; background: #e7eee7; }
.moment-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.moments-featured .moment-photo { aspect-ratio: auto; }
.moments-featured img { height: auto; }
.moment-card-tall .moment-photo { height: 350px; aspect-ratio: auto; }
.moment-expand { position: absolute; right: 12px; bottom: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #ffffff80; border-radius: 50%; color: #173d2b; background: #fff; font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.moment-photo:hover .moment-expand, .moment-photo:focus-visible .moment-expand { color: #fff; background: #187541; }

.gallery-viewer-open { overflow: hidden; }
.moments-viewer:not([open]) { display: none; }
.moments-viewer { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #ffffff30; border-radius: 12px; color: #fff; background: #14241b; }
.moments-viewer::backdrop { background: #08110cf0; }
.moments-viewer-panel { padding: 18px 24px 24px; }
.moments-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; font-size: 16px; }
#viewer-count { margin-left: auto; color: #c2d2c8; font-size: 14px; }
.moments-viewer button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff45; border-radius: 50%; color: #fff; background: transparent; font-size: 18px; }
.moments-viewer button:hover { background: #ffffff20; }
.moments-viewer button:disabled { opacity: .3; cursor: default; }
.moments-viewer :is(button, a):focus-visible { outline: 2px solid #c9e7ae; outline-offset: 4px; }
.moments-viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; }
.moments-viewer-image { display: grid; place-items: center; min-height: 180px; }
.moments-viewer-image > * { grid-area: 1 / 1; }
.moments-viewer-image img { display: block; width: 100%; height: min(65vh, 720px); height: min(65dvh, 720px); object-fit: contain; }
.moments-viewer-image p { max-width: 300px; margin: 0; padding: 20px; color: #dbe6df !important; font-size: 16px; text-align: center; }
.moments-viewer-footer { display: flex; align-items: center; justify-content: flex-end; margin: 12px 60px 0; }
.moments-viewer-footer a { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; padding: 10px 0; color: #c9e7ae; font-size: 14px; }

@media (max-width: 991px) {
  .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .moments-intro { padding: 110px 0 32px; }
  .moments-eyebrow { font-size: 12px; }
  .moments-page .moments-intro-text { font-size: 17px; }
  .moments-featured { margin-top: 20px; }
}

@media (max-width: 575px) {
  .moments-page .container { padding-right: 20px; padding-left: 20px; }
  .moments-library { padding: 28px 0 40px; }
  .moments-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .moments-viewer { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .moments-viewer-panel { padding: 12px; }
  .moments-viewer-toolbar { gap: 10px; }
  .moments-viewer-stage { grid-template-columns: 1fr 1fr; gap: 14px; }
  .moments-viewer-image { grid-column: 1 / -1; grid-row: 1; }
  .moments-viewer-image img { height: 52vh; height: 52dvh; }
  #viewer-prev { justify-self: end; }
  #viewer-next { justify-self: start; }
  .moments-viewer-footer { margin: 12px 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
}
