:root {
  color-scheme: light;
  --ink: #16212f;
  --muted: #657084;
  --paper: #f7f3ea;
  --surface: #fffaf1;
  --line: #ded5c5;
  --blue: #0d4aa2;
  --blue-dark: #09316d;
  --green: #174f3f;
  --gold: #c89b3c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 29, 43, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

body.is-lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 155, 60, 0.55);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 28, 48, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 78px;
  place-items: center;
  padding: 5px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a:hover,
.site-nav .nav-cta {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.mobile-tabbar {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.88), rgba(8, 17, 31, 0.52) 52%, rgba(8, 17, 31, 0.18)),
    linear-gradient(0deg, rgba(8, 17, 31, 0.9), rgba(8, 17, 31, 0) 46%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.15rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.quick-actions a,
.quick-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.button.primary,
.quick-actions a,
.quick-actions button {
  background: var(--gold);
  color: #1f1b12;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button:hover,
.quick-actions a:hover,
.quick-actions button:hover {
  transform: translateY(-1px);
}

.next-event {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 44px;
  width: min(330px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.next-event span,
.tag,
time {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.next-event strong {
  display: block;
  margin: 8px 0;
  font-size: 1.5rem;
}

.next-event p,
.next-event small {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  background: var(--surface);
}

.intro-grid p,
.values p,
.member p,
.story-band p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-actions {
  justify-content: flex-end;
}

.quick-actions a,
.quick-actions button {
  box-shadow: 0 14px 32px rgba(18, 29, 43, 0.1);
}

.schedule-note {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: rgba(23, 79, 63, 0.07);
}

.schedule-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1.05rem;
}

.schedule-note p {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.schedule-note p:last-child {
  margin-bottom: 0;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--blue-dark);
}

.event-strip article {
  min-height: 0;
  padding: 24px 28px 26px;
  background: var(--blue-dark);
  color: var(--white);
  transition: background-color 0.2s ease;
}

.event-strip article:hover {
  background: #0c3b80;
}

.event-strip p {
  color: rgba(255, 255, 255, 0.74);
}

.news-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.section-head {
  position: static;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(18, 29, 43, 0.08);
}

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

.feature-story p,
.news-cards p {
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.news-cards {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-cards details,
.value-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
  min-width: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-cards details:hover,
.value-grid article:hover {
  background: var(--surface);
  border-color: rgba(200, 155, 60, 0.48);
}

.news-cards summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding-right: 28px;
}

.news-cards summary::-webkit-details-marker {
  display: none;
}

.news-cards summary::after {
  position: absolute;
  top: 2px;
  right: 0;
  content: "+";
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.news-cards details[open] summary::after {
  content: "-";
  color: var(--green);
}

.more-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.news-cards details[open] .more-link {
  color: var(--green);
}

.news-card-body {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.news-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.news-photo {
  margin: 4px 0;
}

.news-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.news-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.download-list a {
  display: block;
  padding: 11px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(13, 74, 162, 0.07);
  color: var(--blue);
  font-weight: 800;
}

.download-list a:hover {
  background: rgba(13, 74, 162, 0.12);
}

.activity-gallery {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: #152333;
  color: var(--white);
}

.activity-head {
  position: static;
  max-width: 760px;
  margin-bottom: 28px;
}

.activity-head p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.activity-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.activity-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.activity-grid a:nth-child(1),
.activity-grid a:nth-child(5) {
  grid-column: span 1;
}

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

.festival {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: #364e87;
  color: var(--white);
}

.festival-head {
  position: static;
  max-width: 880px;
  margin-bottom: 36px;
}

.festival-head p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.festival-day {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.festival-day:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.festival-day h3 {
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.festival-day p {
  color: rgba(255, 255, 255, 0.72);
}

.festival-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.festival-gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.festival-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.festival-gallery a:hover img {
  transform: scale(1.04);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: var(--ink);
}

.gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.gallery a:nth-child(2) img,
.gallery a:nth-child(3) img {
  height: 100%;
}

@media (min-width: 761px) {
  .activity-grid a:hover,
  .festival-gallery a:hover,
  .gallery a:hover {
    background: #0b1624;
    outline: 1px solid rgba(255, 255, 255, 0.34);
    outline-offset: -1px;
  }

  .activity-grid a:hover img,
  .festival-gallery a:hover img,
  .gallery a:hover img {
    object-fit: contain;
    transform: none;
  }
}

.values {
  background: var(--surface);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: var(--green);
  color: var(--white);
}

.story-intro {
  position: static;
}

.story-band p {
  color: rgba(255, 255, 255, 0.78);
}

.story-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.story-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-image p {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 0.92rem;
}

.story-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(24px, 4vw, 48px);
  padding-top: 10px;
}

.story-details {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.story-details summary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--white);
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.story-details summary::after {
  content: "+";
  margin-left: 10px;
  font-size: 1.2rem;
}

.story-details[open] summary::after {
  content: "–";
}

.story-details[open] .story-copy {
  margin-top: 24px;
}

.story-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.member {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  background: var(--surface);
}

.member-intro p {
  max-width: 580px;
}

.member-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 20px 54px rgba(18, 29, 43, 0.09);
}

.form-head {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.form-head strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.form-head span,
.debit-note {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.member-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.member-form input:focus {
  outline: 2px solid rgba(13, 74, 162, 0.24);
  border-color: var(--blue);
}

.form-wide {
  grid-column: span 2;
}

.debit-note {
  margin: 18px 0;
  font-size: 0.95rem;
}

.form-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 10px !important;
  margin-bottom: 20px;
  font-weight: 700 !important;
}

.form-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 0.95fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px);
  background: #111b28;
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-map {
  display: grid;
  gap: 10px;
}

.footer-map iframe {
  width: 100%;
  min-height: 235px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

.footer-map a {
  color: var(--white);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form strong {
  font-size: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-form .button {
  justify-self: start;
}

.lightbox[hidden] {
  display: none;
}

.calendar-modal[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px clamp(18px, 5vw, 80px);
  background: rgba(5, 12, 20, 0.92);
}

.lightbox.is-preview {
  pointer-events: none;
  background: rgba(5, 12, 20, 0.62);
}

.lightbox.is-preview figure {
  width: min(800px, calc(100vw - 80px));
}

.lightbox.is-preview img {
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.lightbox.is-preview .lightbox-close,
.lightbox.is-preview .lightbox-prev,
.lightbox.is-preview .lightbox-next,
.lightbox.is-preview figcaption {
  display: none;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 18, 32, 0.72);
  backdrop-filter: blur(12px);
}

.calendar-card {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(5, 12, 20, 0.28);
}

.calendar-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.calendar-card p:not(.eyebrow) {
  color: var(--muted);
}

.calendar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.calendar-actions .ghost {
  border-color: rgba(13, 74, 162, 0.28);
  color: var(--blue);
}

.lightbox figure {
  display: grid;
  gap: 14px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 54px;
  height: 74px;
  border-radius: 999px;
  font-size: 3.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    background: #101d2f;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 6px;
  }

  .hero {
    min-height: 800px;
  }

  .hero-content {
    width: min(680px, 100%);
  }

  .next-event {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 44px;
  }

  .intro-grid,
  .news-layout,
  .feature-story,
  .festival-day,
  .story-band {
    grid-template-columns: 1fr;
  }

  .section-head {
    position: static;
  }

  .story-intro {
    position: static;
  }

  .story-copy {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .event-strip,
  .value-grid {
    grid-template-columns: 1fr;
  }

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

  .activity-grid a,
  .festival-gallery a,
  .gallery a {
    min-height: 0;
  }

  .gallery a:nth-child(2) img,
  .gallery a:nth-child(3) img {
    height: 100%;
  }

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

  .activity-grid a:nth-child(1),
  .activity-grid a:nth-child(5) {
    grid-column: span 1;
  }

  .festival-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

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

  .mobile-tabbar {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(13, 28, 48, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    padding: 8px 6px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
  }

  .mobile-tabbar a::before {
    display: block;
    width: 6px;
    height: 6px;
    margin-bottom: 5px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
  }

  .mobile-tabbar a:hover,
  .mobile-tabbar a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

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

  .activity-grid,
  .festival-gallery,
  .gallery {
    gap: 6px;
    align-items: stretch;
  }

  .activity-grid a,
  .festival-gallery a,
  .gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    background: #101d2f;
  }

  .activity-grid img,
  .festival-gallery img,
  .gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 56px;
    padding: 4px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding-top: 110px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .button,
  .quick-actions a,
  .quick-actions button {
    width: 100%;
  }

  .form-grid,
  .form-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .member-form {
    width: 100%;
  }

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

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

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery img,
  .gallery a:nth-child(2) img,
  .gallery a:nth-child(3) img {
    height: 100%;
  }

  .lightbox {
    padding: 72px 14px 88px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    width: 58px;
    height: 48px;
    font-size: 2.4rem;
    transform: none;
  }
}
