:root {
  color-scheme: light;
  --navy: #082f5b;
  --deep: #041d38;
  --blue: #0879bd;
  --gold: #a87b30;
  --ink: #153a5d;
  --muted: #5f7182;
  --paper: #faf9f6;
  --line: #dbe2e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, .collection-button { touch-action: manipulation; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.page-width { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 14px 18px; transform: translateY(-160%); background: white; color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; }
.brand img { width: 180px; height: 70px; object-fit: contain; object-position: left center; }
.header-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.header-link span { font-size: 1.4rem; font-weight: 400; }
.header-link:hover { color: var(--blue); }

.opening { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; padding-block: 56px 64px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
h1 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.5rem, 4.25vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; }
h1 em { font-weight: 400; color: var(--blue); }
.event-details { margin: 25px 0 0; font-size: .8rem; line-height: 1.8; color: var(--muted); }
.opening-note { margin-top: 42px; }
.note-rule { display: block; height: 2px; width: 42px; background: var(--gold); margin-bottom: 22px; }
.thank-you { margin: 0; max-width: 440px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.05vw, 1.75rem); line-height: 1.42; letter-spacing: -.02em; }
.photo-credit { margin: 25px 0 0; color: var(--muted); font-size: .76rem; }
.opening-photo { width: 100%; margin: 0; }
.opening-photo > a { position: relative; display: block; overflow: hidden; background: var(--paper); border-radius: 4px; }
.opening-photo img { width: 100%; height: auto; aspect-ratio: auto; }
.enlarge-mark { display: grid; place-items: center; position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; background: rgba(4,29,56,.87); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.enlarge-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.opening-photo figcaption { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-block: 14px 0; color: var(--muted); font-size: .66rem; line-height: 1.6; }
.photo-hint { white-space: nowrap; }
.photo-hint span { padding-left: 6px; }

.photo-section { padding-block: 26px 90px; scroll-margin-top: 28px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.gallery-heading .eyebrow { margin-bottom: 12px; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--navy); font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.03em; }
.gallery-count { font-size: .73rem; color: var(--muted); white-space: nowrap; margin: 0 0 4px; }
.photo-gallery { display: flex; flex-direction: column; gap: 20px; }
.gallery-row { display: flex; align-items: flex-start; gap: 20px; }
.gallery-photo { display: block; position: relative; flex: var(--ratio) 1 0%; min-width: 0; overflow: hidden; background: var(--paper); }
.gallery-photo img { width: 100%; height: auto; transition: opacity 180ms ease; }
.gallery-photo:hover img { opacity: .92; }
.gallery-photo .enlarge-mark { width: 34px; height: 34px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(3px); transition: opacity 180ms ease, transform 180ms ease; }
.gallery-photo:hover .enlarge-mark, .gallery-photo:focus-visible .enlarge-mark { opacity: 1; transform: translateY(0); }
.gallery-photo .enlarge-mark svg { width: 16px; height: 16px; }

.collection-section { background: var(--paper); border-block: 1px solid #e7e7e0; }
.collection-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 58px 60px; }
.collection-inner .eyebrow { margin-bottom: 12px; }
.collection-inner p:not(.eyebrow) { margin: 16px 0 0; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.collection-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-height: 54px; padding: 16px 23px; white-space: nowrap; text-decoration: none; background: var(--navy); color: #fff; font-size: .83rem; font-weight: 700; transition: background 160ms ease; }
.collection-button:hover { background: var(--blue); }
.collection-button svg { width: 23px; height: 23px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; color: var(--muted); font-size: .7rem; }
.site-footer > a:first-child { text-decoration: none; font-weight: 700; color: var(--navy); }
.site-footer p { margin: 0; }
.back-top { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; text-decoration: none; }

.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); border: 0; background: #041729; color: white; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #041729; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: max(10px, env(safe-area-inset-top)); }
.lightbox-bar h2 { font: 400 .78rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: .03em; color: #d1dde8; padding-left: 10px; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 12px; border: 1px solid transparent; background: transparent; color: #fff; border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: #ffffff15; }
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox :focus-visible { outline-color: #75c7e8; outline-offset: -3px; }
.lightbox-image-wrap { position: relative; display: grid; place-items: center; min-height: 0; padding: 12px; }
.lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-image-wrap[aria-busy="true"] { opacity: .6; }
.lightbox-error { position: absolute; max-width: 420px; margin: 30px; padding: 20px; background: #082f5b; line-height: 1.6; text-align: center; }
.lightbox-bottom { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 8vw, 140px); padding: 4px 0 max(14px, env(safe-area-inset-bottom)); }
.lightbox-caption { text-align: center; min-width: 180px; }
.lightbox-caption p { color: #9db0c2; font-size: .65rem; margin: 6px 0; }
.lightbox-caption .lightbox-position { font-size: .82rem; color: #fff; }

@media (max-width: 1000px) {
  .page-width { width: calc(100% - 64px); }
  .opening { gap: 36px; padding-top: 48px; }
  h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
  .thank-you { font-size: 1.3rem; }
  .event-details > span:last-child { display: inline-block; }
  .gallery-row, .photo-gallery { gap: 14px; }
}

@media (max-width: 680px) {
  .page-width { width: calc(100% - 36px); }
  .header-inner { min-height: 83px; gap: 12px; }
  .brand img { width: 143px; height: 59px; }
  .header-link { gap: 9px; font-size: .68rem; }
  .header-link span { font-size: 1.2rem; }
  .opening { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 30px; }
  .eyebrow { font-size: .61rem; letter-spacing: .16em; margin-bottom: 15px; }
  h1 { font-size: clamp(2.25rem, 9vw, 3.6rem); }
  .event-details { margin-top: 17px; font-size: .74rem; }
  .event-details > span:last-child { display: block; }
  .event-details > span[aria-hidden] { display: none; }
  .opening-note { margin-top: 25px; }
  .note-rule { display: none; }
  .thank-you { max-width: 470px; font-size: 1.2rem; line-height: 1.4; }
  .photo-credit { margin-top: 14px; font-size: .69rem; }
  .opening-photo { margin-inline: auto; }
  .opening-photo figcaption { padding: 12px 0 0; font-size: .64rem; }
  .opening-photo figcaption > span:first-child { display: none; }
  .photo-hint { width: 100%; text-align: right; }
  .enlarge-mark { width: 36px; height: 36px; right: 14px; bottom: 14px; }
  .photo-section { padding-block: 16px 42px; }
  .gallery-heading { display: block; margin-bottom: 25px; }
  .gallery-heading h2 { font-size: 1.9rem; }
  .gallery-count { margin-top: 13px; font-size: .67rem; }
  .gallery-row { display: contents; }
  .photo-gallery { gap: 18px; }
  .gallery-photo { flex: initial; }
  .gallery-photo .enlarge-mark { opacity: 1; transform: none; width: 31px; height: 31px; right: 10px; bottom: 10px; }
  .collection-inner { display: block; padding-block: 38px; }
  .collection-inner h2 { font-size: 2rem; }
  .collection-inner p:not(.eyebrow) { font-size: .83rem; max-width: 330px; }
  .collection-button { margin-top: 25px; min-width: 210px; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; padding-block: 21px; font-size: .66rem; }
  .site-footer > a:first-child { width: 100%; }
  .site-footer .back-top { margin-left: auto; min-height: 36px; }
  .lightbox { padding-inline: 8px; }
  .lightbox-bar h2 { font-size: .65rem; }
  .lightbox-image-wrap { padding: 8px 0; }
  .lightbox-bottom { gap: 15px; }
  .lightbox-caption { min-width: 155px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
