:root {
  color-scheme: dark;
  --navy-950: #020b12;
  --navy-900: #061622;
  --navy-800: #0a2433;
  --navy-700: #10384b;
  --water: #2f92ad;
  --water-bright: #69c6d7;
  --gold: #d8a55f;
  --gold-pale: #f0d19f;
  --cream: #f7f1e7;
  --muted: #afc0c7;
  --line: rgba(216, 165, 95, .28);
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 0, rgba(47, 146, 173, .16), transparent 34rem),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  font-family: Arial, Verdana, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: var(--gold-pale); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--water-bright); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 11, 18, .92);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.brand-name { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: .02em; }
.brand-tagline { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-home { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.gallery-home:hover { border-color: var(--gold); background: rgba(216, 165, 95, .1); }

main { width: min(1180px, calc(100% - 32px)); margin: auto; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2.5rem; text-align: center; }
.compact-hero { padding-bottom: 1rem; }
.eyebrow, .section-kicker { margin: 0 0 .45rem; color: var(--water-bright); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
h1 { margin: 0; color: var(--gold); font-size: clamp(3rem, 10vw, 7rem); line-height: .92; }
.hero-copy { max-width: 720px; margin: 1.3rem auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.year-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.year-list a { min-width: 60px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); text-decoration: none; }
.year-list a:hover, .year-list a[aria-current="page"] { border-color: var(--gold); color: var(--navy-950); background: var(--gold); }

.jump-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 2rem;
  padding: .8rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 22, 34, .94);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.jump-nav span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jump-nav a { padding: .35rem .7rem; border-radius: 999px; color: var(--cream); font-size: .84rem; text-decoration: none; white-space: nowrap; }
.jump-nav a:hover { color: var(--navy-950); background: var(--water-bright); }

.photo-section { scroll-margin-top: 140px; margin: 0 0 clamp(3rem, 8vw, 6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { max-width: 850px; margin: 0; color: var(--gold-pale); font-size: clamp(1.45rem, 4vw, 2.35rem); line-height: 1.12; }
.section-count { margin: 0; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: clamp(7px, 1.2vw, 14px); }
.photo-link { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; background: var(--navy-800); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.photo-link::after { content: "↗"; position: absolute; right: .4rem; bottom: .35rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: white; background: rgba(2, 11, 18, .72); opacity: 0; transform: translateY(5px); transition: .18s ease; }
.photo-link:hover::after, .photo-link:focus-visible::after { opacity: 1; transform: none; }
.photo-link img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.photo-link:hover img { transform: scale(1.035); filter: brightness(1.08); }
.back-to-top { display: block; width: max-content; margin: 1rem 0 0 auto; color: var(--muted); font-size: .82rem; text-decoration: none; }
.back-to-top:hover { color: var(--gold-pale); }

.year-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 2rem 0 5rem; padding: 1.2rem 0; border-block: 1px solid var(--line); text-align: center; }
.year-pagination a { text-decoration: none; }
.year-pagination .year-step:first-child { text-align: left; }
.year-pagination .year-step:last-child { text-align: right; }
.is-disabled { color: #61717a; }
.site-footer { padding: 2rem 16px 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

.year-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 2rem 0 6rem; }
.year-card { display: flex; min-height: 180px; flex-direction: column; justify-content: end; padding: 1.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: linear-gradient(145deg, var(--navy-800), var(--navy-900)); box-shadow: var(--shadow); text-decoration: none; }
.year-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.year-card-year { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; line-height: 1; }

body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(58px, 1fr) minmax(0, 1100px) minmax(58px, 1fr); align-items: center; background: rgba(0, 6, 10, .96); }
.lightbox-stage { min-width: 0; max-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 70px rgba(0, 0, 0, .55); }
.lightbox-details { width: 100%; min-height: 56px; display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .25rem 0; color: var(--cream); }
.lightbox-details p { margin: 0; }
[data-lightbox-counter] { color: var(--muted); white-space: nowrap; }
.lightbox button { border: 0; color: white; background: transparent; cursor: pointer; }
.lightbox-close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 52px; height: 52px; border-radius: 50% !important; font-size: 2.5rem; line-height: 1; }
.lightbox-close:hover, .lightbox-arrow:hover { color: var(--gold); background: rgba(255, 255, 255, .08); }
.lightbox-arrow { width: 58px; height: 86px; justify-self: center; border-radius: 12px !important; font-size: clamp(3rem, 8vw, 5rem); line-height: .7; }
.lightbox-previous { grid-column: 1; }
.lightbox-stage { grid-column: 2; }
.lightbox-next { grid-column: 3; }

@media (max-width: 680px) {
  .header-inner { min-height: 62px; gap: 10px; }
  .brand-tagline { display: none; }
  .gallery-home { padding: .5rem .65rem; font-size: 0; }
  .gallery-home::after { content: "Photo Gallery"; font-size: .74rem; }
  .jump-nav { top: 62px; margin-inline: -8px; border-radius: 10px; }
  .section-heading { align-items: start; flex-direction: column; gap: .45rem; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .year-pagination { grid-template-columns: 1fr 1fr; }
  .year-pagination > a:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 74px; padding: 52px 10px 8px; }
  .lightbox-stage { grid-column: 1 / -1; grid-row: 1; padding: 0; }
  .lightbox-stage img { max-height: calc(100vh - 190px); }
  .lightbox-previous { grid-column: 1; grid-row: 2; }
  .lightbox-next { grid-column: 2; grid-row: 2; }
  .lightbox-arrow { width: 92%; height: 60px; background: rgba(255, 255, 255, .06) !important; }
  .lightbox-details { min-height: 68px; align-items: start; font-size: .82rem; }
}

@media (max-width: 420px) {
  main { width: auto; margin-inline: 10px; }
  .header-inner { width: auto; margin-inline: 10px; }
  .photo-grid { gap: 5px; }
  .photo-link { border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
