@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #172033;
  --navy: #14315f;
  --navy-deep: #0c2348;
  --cream: #f6f1e6;
  --paper: #fffcf6;
  --sand: #e7dcc8;
  --gold: #e6b325;
  --gold-deep: #6b4a06;
  --pine: #0f6a42;
  --pine-deep: #0c4e32;
  --text: #1b2433;
  --muted: #314056;
  --line: #d5cbb8;
  --shadow: 0 16px 40px rgba(20, 36, 64, 0.12);
  --header: 4.5rem;
  --font-display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: Nunito, "Segoe UI", sans-serif;
  --radius: 1.4rem;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 8% -10%, rgba(230, 179, 37, 0.28), transparent 26rem),
    radial-gradient(circle at 110% 8%, rgba(15, 106, 66, 0.16), transparent 28rem);
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1.125rem;
  line-height: 1.55;
  font-synthesis: none;
}

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

a {
  color: var(--pine-deep);
}

a:hover {
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 252, 246, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(72rem, calc(100% - 1.5rem));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}

.brand img {
  width: 2.7rem;
  height: 2.9rem;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

.brand-name span {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine-deep);
}

.nav-toggle {
  margin-left: auto;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--paper);
  color: var(--navy-deep);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 800;
  border-radius: 0.7rem;
  padding: 0 0.4rem;
}

.site-nav a:hover {
  background: var(--cream);
}

.nav-join {
  display: none;
  white-space: nowrap;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy-deep);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 4.6rem);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  color: var(--navy);
}

.tagline li {
  display: inline;
}

.tagline li:not(:last-child)::after {
  content: "•";
  margin: 0 0.45rem;
  color: var(--gold-deep);
}

.lede {
  margin: 0.8rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  color: var(--navy);
}

.hero-copy > p:last-of-type,
.section p {
  margin: 0.7rem 0 0;
}

.hero-copy > .support {
  max-width: 38rem;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: #f0c44a;
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--navy-deep);
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 1.6rem 1.6rem 3.5rem;
  box-shadow: var(--shadow);
}

.hero-photo figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts {
  display: grid;
  gap: 0.7rem;
  margin: 0.5rem auto 0;
  padding-left: 0;
  list-style: none;
}

.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.fact span {
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: 2.6rem 0;
}

.welcome-grid,
.meeting-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.logo-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.logo-panel img {
  width: min(16rem, 70%);
}

.meeting-card {
  background: var(--navy-deep);
  color: #f7f4ee;
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.meeting-card h2,
.meeting-card .kicker {
  color: #fff;
}

.meeting-card .kicker {
  color: var(--gold);
}

.when {
  margin: 0.4rem 0 0;
}

.when .day,
.when .time {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.when .day {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.when .time {
  margin-top: 0.25rem;
  font-size: clamp(2.6rem, 8vw, 4rem);
  color: var(--gold);
}

.meeting-card address {
  font-style: normal;
  margin-top: 1rem;
  line-height: 1.4;
}

.meeting-card p {
  color: #f7f4ee;
}

.meeting-note {
  color: #d9e2ef;
  font-size: 1rem;
}

.cards {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}

.card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--pine);
}

.who {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

.who-list li {
  background: var(--cream);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.hike-feature {
  display: grid;
  gap: 0.2rem 1.2rem;
  margin-top: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hike-feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
}

.hike-feature figcaption {
  padding: 0.2rem 1.1rem 1.15rem;
}

.campout-feature {
  display: grid;
  gap: 0.2rem 1.2rem;
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.campout-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.campout-feature figcaption {
  padding: 0.2rem 1.1rem 1.15rem;
}

.den-roster {
  list-style: none;
  margin: 0.2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.den-roster li {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.den-roster .den {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--navy-deep);
}

.den-roster .grade {
  color: var(--muted);
}

.den-roster .leader {
  font-weight: 800;
  color: var(--navy-deep);
}

.soon {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, #f4efe4, #e5efe8);
  color: var(--navy-deep);
}

.soon p {
  margin: 0;
  max-width: 9rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.45rem;
  line-height: 1.15;
}

.leader-feature {
  display: grid;
  gap: 0.2rem 1.2rem;
  margin: 1rem 0 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.leader-feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.leader-feature figcaption {
  padding: 0.2rem 1.15rem 1.2rem;
}

.leader-feature .name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--navy-deep);
}

.leader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.leader-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.shot-rudy img {
  object-position: center 28%;
}

.gallery {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.shot {
  margin: 0;
  background: var(--paper);
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.shot-land img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.shot figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.98rem;
}

.band {
  background: var(--navy-deep);
  color: #f7f4ee;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
}

.band h2,
.band p {
  color: #f7f4ee;
}

.band .kicker {
  color: var(--gold);
}

.handle {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 650;
  margin: 0.4rem 0 0;
}

.phone {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  margin: 0.4rem 0 0;
}

.phone a {
  color: var(--navy-deep);
  text-decoration: none;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.site-footer a {
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 246, 0.97);
  border-top: 1px solid var(--line);
}

.mobile-bar .btn {
  min-height: 2.9rem;
  padding-inline: 0.6rem;
}

@media (max-width: 879px) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .shot-land {
    grid-column: span 2;
  }

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

  .den-roster li {
    grid-template-columns: 1.15fr 1.15fr 0.8fr;
    align-items: baseline;
    gap: 0.35rem 0.8rem;
  }

  .who-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .nav-toggle,
  .mobile-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .site-nav a {
    min-height: 2.5rem;
    padding: 0 0.65rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  .nav-join {
    display: inline-flex;
    margin-left: 0.4rem;
  }
}

@media (min-width: 880px) and (max-width: 1099px) {
  .site-header .wrap {
    gap: 0.4rem;
  }

  .site-nav ul {
    gap: 0;
  }

  .site-nav a {
    padding: 0 0.32rem;
    font-size: 0.9rem;
  }

  .nav-join {
    margin-left: 0.15rem;
    min-height: 2.6rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (min-width: 880px) {
  .hero-grid,
  .welcome-grid,
  .meeting-grid,
  .hike-feature {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem;
  }

  .hike-feature,
  .leader-feature,
  .campout-feature {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .campout-feature {
    grid-template-columns: 1.35fr 0.75fr;
  }

  .leader-feature figcaption {
    padding: 1.3rem 1.5rem 1.3rem 0.2rem;
  }

  .hike-feature figcaption,
  .campout-feature figcaption {
    padding: 1.2rem 1.4rem 1.2rem 0;
  }

  .den-roster li {
    grid-template-columns: 1.15fr 1.15fr 0.8fr;
    align-items: baseline;
    gap: 0.4rem 1rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .leader-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .shot-land {
    grid-column: span 2;
  }
}

.circus-spot {
  display: grid;
  gap: 1rem;
  margin: 0.8rem 0 1.6rem;
  align-items: center;
}

.circus-spot-play {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(20, 36, 64, 0.14);
}

.circus-spot .spot-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy-deep);
}

.circus-spot .moment-loop {
  background: transparent;
}

.circus-spot-play img,
.moment-play > img {
  z-index: 1;
}

.circus-spot-play.is-playing img,
.moment-play.is-playing > img {
  opacity: 0;
}

.moments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.7rem;
  margin: 0.8rem 0 1.4rem;
}

.moment {
  margin: 0;
}

.moment-play {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  cursor: pointer;
}

.moment img,
.moment-loop {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center center;
  background: var(--navy-deep);
}

/* Chrome uses a video's HTML height attribute as the used height, so a
   portrait 720x1280 file paints at 1280px even when aspect-ratio is set.
   Take the media out of flow and fill a fixed box instead. */
.moment-play .moment-loop,
.moment-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

/* The flyer is square. Two classes beat the 9:16 tile rule and the organic radius. */
.circus-spot .moment-play {
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(20, 36, 64, 0.14);
}

.event-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.event {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.event[hidden] {
  display: none;
}

.month-calendar {
  width: min(50rem, 100%);
  margin: 0.6rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-label {
  margin: 1.2rem 0 0.15rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.month-shot {
  background: #fff;
}

.dues-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.dues-note {
  margin-top: 1rem;
}

.dues-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
}

.dues-card h3,
.dues-card p {
  margin: 0;
}

.dues-card h3 + p,
.dues-amount + p {
  margin-top: 0.45rem;
}

.dues-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 650;
  line-height: 1;
  color: var(--navy-deep);
}

.dues-amount span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.flyer-link {
  display: block;
  background: var(--navy-deep);
}

.flyer-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.event-body {
  padding: 1rem 1.1rem 1.15rem;
}

.event-date {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.7rem;
  padding: 0.45rem 0.75rem 0.5rem;
  border-radius: 0.85rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.55rem;
  line-height: 1;
}

.event-date span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-meta {
  font-weight: 800;
  color: var(--navy-deep);
}

#flyer-dialog {
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

#flyer-dialog::backdrop {
  background: rgba(12, 23, 40, 0.78);
}

.flyer-scroll {
  overflow: auto;
}

#flyer-full {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 5.5rem);
  margin-inline: auto;
  background: #fff;
}

/* The October calendar is wide. Show it at its real pixel size and let
   a phone pan across it, instead of shrinking it smaller than the page. */
#flyer-dialog.flyer-large {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 1rem);
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
}

#flyer-dialog.flyer-large .moment-dialog-bar {
  flex: none;
}

#flyer-dialog.flyer-large .flyer-scroll {
  max-height: calc(100dvh - 5rem);
}

#flyer-dialog.flyer-large #flyer-full {
  width: 1369px;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
}

.moment-badge {
  position: absolute;
  z-index: 1;
  left: 0.5rem;
  bottom: 0.5rem;
  max-width: calc(100% - 1rem);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 35, 72, 0.9);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.moment figcaption {
  margin-top: 0.45rem;
  font-size: 0.98rem;
}

#moment-dialog {
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

#moment-dialog::backdrop {
  background: rgba(12, 23, 40, 0.78);
}

.moment-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.moment-dialog-bar p {
  margin: 0;
  font-weight: 800;
}

.moment-close,
.flyer-close {
  flex: none;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#moment-player {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 6.5rem);
  background: #000;
}

@media (min-width: 720px) {
  .event {
    grid-template-columns: 12.5rem 1fr;
  }

  .flyer-link img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 16rem;
  }

  .event-plain {
    grid-template-columns: 1fr;
  }

  .dues-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.month-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1369 / 1149;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

@media (min-width: 880px) {
  .circus-spot {
    grid-template-columns: 28rem 1fr;
    gap: 1.6rem;
  }

  .circus-spot-play {
    width: 28rem;
  }

  .moments {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.photo-browser {
  min-width: 0;
  max-width: 100%;
  margin-top: 1.1rem;
}

.photo-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.1rem 0.1rem 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.photo-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy-deep);
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.photo-chip[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0.8rem;
}

.photo-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}

.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-deep);
  cursor: pointer;
}

.photo-open img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-card figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.98rem;
}

.photo-card figcaption a {
  font-weight: 800;
}

.photo-empty {
  grid-column: 1 / -1;
  margin: 0;
}

#photo-more {
  margin-top: 0.95rem;
}

#photo-more[hidden] {
  display: none;
}

[data-photo-anchor]:empty {
  display: none;
}

#photo-dialog {
  width: min(52rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0 0 0.9rem;
  border: 0;
  border-radius: 1.1rem;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

#photo-dialog::backdrop {
  background: rgba(12, 23, 40, 0.78);
}

#photo-dialog .moment-dialog-bar {
  flex-wrap: wrap;
}

.photo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#photo-full {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 8rem);
  margin-inline: auto;
  background: #000;
}

#photo-dialog-caption {
  margin: 0.7rem 0.9rem 0;
  font-weight: 800;
}

@media (min-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
