@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #fafafa;
  --surface: #ffffff;
  --accent: #a31f34;
  --accent-soft: #f7eef0;
  --green: #0b7a45;
  --font: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --max: 1080px;
  --nav: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 0.75rem);
}

html.home-snap {
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--nav);
  --halo-bloom: 1;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}



/* Italian flag halo — site-wide base + stronger bloom behind the dome */
.italy-halo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 8% 35%, rgba(0, 146, 70, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 60% at 50% 20%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(ellipse 55% 70% at 92% 40%, rgba(206, 43, 55, 0.14), transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(163, 31, 52, 0.05), transparent 50%);
}

.italy-halo-bloom {
  position: absolute;
  inset: 0;
  opacity: var(--halo-bloom, 0);
  transition: opacity 0.45s var(--ease);
  background:
    radial-gradient(ellipse 70% 85% at 22% 42%, rgba(0, 146, 70, 0.42), transparent 62%),
    radial-gradient(ellipse 55% 70% at 48% 28%, rgba(255, 255, 255, 0.95), transparent 58%),
    radial-gradient(ellipse 70% 85% at 78% 45%, rgba(206, 43, 55, 0.38), transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-wordmark {
  height: 2.6rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
}

/* —— Split dome hero —— */
.dome-hero {
  min-height: calc(100svh - var(--nav));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  position: relative;
}

.home-snap .snap-panel {
  scroll-snap-align: start;
}

.home-snap .dome-hero {
  height: calc(100svh - var(--nav));
  min-height: calc(100svh - var(--nav));
  max-height: calc(100svh - var(--nav));
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 2rem) 1rem 3.5rem;
  scroll-snap-stop: always;
}

/* About is a soft landing target only — snap turns off once it reaches the top */
.home-snap .purpose-panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.snap-hint {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: snapHint 1.8s var(--ease) infinite;
}

.snap-hint::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
}

@keyframes snapHint {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

.dome-hero-grid {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  justify-items: center;
}

.dome-hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.dome-hero-mark {
  width: min(100%, 480px);
  height: auto;
  max-height: min(78vh, 680px);
  object-fit: contain;
  animation: rise 0.9s var(--ease) both;
}

.dome-hero-copy {
  text-align: left;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}

.dome-line {
  margin: 0;
}

.dome-line-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.85rem;
  animation: welcomeIn 0.9s 0.2s var(--ease) both;
}

.dome-line-3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  animation: welcomeIn 0.95s 0.45s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: -18px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes welcomeIn {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 860px) {
  .dome-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dome-hero-copy {
    text-align: center;
  }

  .dome-hero-mark {
    max-height: min(52vh, 420px);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-soft:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0;
}

.section-head a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  white-space: nowrap;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

/* —— Events list —— */
.event-list {
  display: grid;
  gap: 0;
}

.event-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 200ms var(--ease);
}

.event-row:last-child {
  border-bottom: 1px solid var(--line);
}

.event-row:hover {
  padding-left: 0.35rem;
}

.event-row time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.event-row h3 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Gallery —— */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.gallery-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.75rem;
}

.gallery-rail {
  display: flex;
  gap: 0.85rem;
  overflow: hidden;
  min-width: 0;
}

.gallery-preview--overflow .gallery-rail {
  padding-right: 2.5rem;
  mask-image: linear-gradient(to right, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
}

.gallery-rail .album-tile {
  flex: 0 0 clamp(9.5rem, 16vw, 12.5rem);
}

.album-tile--ghost {
  pointer-events: none;
  opacity: 0.55;
}

.gallery-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 4.25rem;
  height: 4.25rem;
  min-height: 0;
  align-self: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.gallery-more:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateX(2px);
}

.gallery-more-arrow {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}

.gallery-more-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd;
  text-decoration: none;
  color: #fff;
  border-radius: 0.75rem;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.album-tile:hover img {
  transform: scale(1.05);
}

.album-tile .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.album-tile h3 {
  font-size: 1.35rem;
  margin: 0 0 0.15rem;
}

.album-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.album-hero .album-hero-inner {
  text-align: left;
  max-width: none;
}

.album-hero .lead {
  max-width: min(52rem, 100%);
}

.album-layout {
  display: grid;
  justify-items: center;
  gap: 2.5rem;
}

.event-coverflow {
  display: grid;
  gap: 1rem;
  width: min(100%, 920px);
}

.event-stage-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  height: min(70vh, 36rem);
  transition: height 200ms var(--ease);
}

.event-stage-wrap.is-portrait {
  /* Taller frame so vertical photos read as vertical, not tiny in a wide box */
  height: min(78vh, 42rem);
  width: min(100%, 28rem);
  margin-inline: auto;
}

.event-stage {
  width: 100%;
  height: 100%;
  background: #111;
  display: grid;
  place-items: center;
}

.event-main {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}

.event-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition:
    background 160ms var(--ease),
    transform 160ms var(--ease);
}

.event-nav:hover {
  background: #fff;
  transform: scale(1.05);
}

.event-nav-prev {
  left: 0.75rem;
}

.event-nav-next {
  right: 0.75rem;
}

.event-slideshow {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.event-slideshow:hover {
  background: #fff;
  transform: translateY(-1px);
}

.event-slideshow-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.event-slideshow[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.event-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.event-thumb {
  position: relative;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 5.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  opacity: 0.7;
  scroll-snap-align: start;
  transition:
    opacity 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.event-thumb img,
.event-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: #1a1a1a;
}

.event-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.event-thumb-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.event-coverflow-hint {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.album-flickr {
  margin: 0.75rem 0 0;
}

.album-flickr a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.event-tweet-wrap {
  width: min(100%, 550px);
  justify-self: center;
}

.event-tweet-wrap .twitter-tweet {
  margin: 0 auto !important;
}

.related-media {
  width: min(100%, 920px);
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.related-media-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}

.related-media-desc {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.related-media .event-tweet-wrap {
  margin-top: 0.5rem;
  justify-self: start;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e5e5e5;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

/* —— People / content —— */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.person {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
}

.person img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.person h3 {
  font-size: 1.2rem;
  margin: 0 0 0.15rem;
}

.person p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split img {
  width: 100%;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.9rem;
  background: var(--surface);
}

.board-years {
  display: grid;
  gap: 2.5rem;
  max-width: 40rem;
}

.board-year h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.board-year-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.board-year-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.board-year-name {
  font-weight: 600;
}

.board-year-role {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: 40rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

.prose h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 700;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose ul ul {
  margin-top: 0.45rem;
}

/* —— Accordion —— */
.accordion {
  max-width: 46rem;
  display: grid;
  gap: 0.65rem;
}

.acc {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
}

.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.acc > summary > span:first-child {
  flex: 1;
}

.acc > summary::-webkit-details-marker {
  display: none;
}

.acc > summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  order: 3;
}

.acc[open] > summary::after {
  content: '−';
}

.acc-pdf {
  order: 2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--accent-soft);
}

.acc-pdf:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.acc > summary:hover {
  color: var(--accent);
}

.acc-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}

.acc.nested {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.acc.nested > summary {
  font-size: 0.98rem;
  padding: 0.85rem 0;
}

.acc.nested .acc-body {
  padding: 0 0 1rem;
  border-top: 0;
}

.acc.nested[open] > summary {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-grid input,
.form-grid textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.45rem;
}

.form-grid textarea {
  min-height: 8rem;
  resize: vertical;
}

.calendar-frame {
  width: 100%;
  min-height: 560px;
  border: 0;
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.cta-band {
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  width: min(100% - 2rem, var(--max));
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--ink);
  color: #fff;
  border-radius: 1rem;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin: 0;
  font-size: 0.95rem;
}

.link-row a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.link-row a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: min(90vh, 900px);
  max-width: min(94vw, 1100px);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 0.45rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 860px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }

  .gallery-rail .album-tile {
    flex-basis: clamp(8.5rem, 38vw, 11rem);
  }

  .gallery-more {
    width: 3.75rem;
    height: 3.75rem;
  }

  .split,
  .people {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {

  .album-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.home-snap {
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  

  

  .snap-hint {
    animation: none;
  }

  .italy-halo-bloom {
    transition: none;
  }
}
