@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --ink: #2b241d;
  --muted: #6c5f53;
  --accent: #8c4f2b;
  --accent-dark: #6d3a1d;
  --leaf: #3d5c45;
  --line: #d8c9b6;
  --shadow: 0 16px 38px rgba(43, 36, 29, 0.12);
  --radius: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fcf7ef 0%, var(--bg) 42%, #efe4d6 100%);
  line-height: 1.55;
}

body.has-compact-header {
  padding-top: var(--compact-header-height, 0px);
}

body.has-modal-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Alegreya", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header.is-compact {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.announcement {
  background: var(--leaf);
  color: #f9f4eb;
  font-size: 0.95rem;
  padding: 0.45rem 0;
  text-align: center;
}

.announcement a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 244, 235, 0.45);
}

.announcement a:hover {
  border-bottom-color: #f9f4eb;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  transition: padding 0.24s ease;
}

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

.brand img {
  width: clamp(280px, 34vw, 460px);
  height: auto;
  object-fit: contain;
  transition: width 0.24s ease;
}

.site-header.is-compact .header-main {
  padding: 0.55rem 0;
}

.site-header.is-compact .brand img {
  width: clamp(160px, 20vw, 250px);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  position: relative;
}

.main-navigation > a:not(.button),
.main-navigation > .menu-item > a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
  border-bottom: 2px solid transparent;
}

.main-navigation > a:not(.button):hover,
.main-navigation > a:not(.button).is-active,
.main-navigation > .menu-item > a:hover,
.main-navigation > .menu-item > a.is-active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.menu-item {
  position: relative;
}

.menu-item.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.menu-item.has-submenu > a::after {
  content: "\25BE";
  font-size: 0.75em;
  line-height: 1;
}

.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefb;
  box-shadow: var(--shadow);
  z-index: 110;
  flex-direction: column;
  gap: 0.2rem;
}

.menu-item.has-submenu:hover .submenu,
.menu-item.has-submenu:focus-within .submenu {
  display: flex;
}

.submenu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.submenu a:hover,
.submenu a.is-active {
  background: #f5e9d8;
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  width: 46px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bar {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.home-carousel {
  position: relative;
  width: 100vw;
  margin: 0 0 1.25rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #1f1712;
}

.home-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.home-carousel-track::-webkit-scrollbar {
  display: none;
}

.home-carousel-track.is-dragging {
  cursor: grabbing;
}

.home-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 320px;
  max-height: 560px;
}

.home-carousel-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
}

.home-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-carousel-slide img.home-carousel-img-top {
  object-position: center top;
}

.home-carousel-slide img.home-carousel-img-bottom {
  object-position: center bottom;
}

.home-carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  background: linear-gradient(
    180deg,
    rgba(24, 17, 12, 0.08) 0%,
    rgba(24, 17, 12, 0.52) 55%,
    rgba(24, 17, 12, 0.9) 100%
  );
}

.home-carousel-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 3.3vw, 2.7rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.home-carousel-overlay p {
  margin: 0;
  color: #f7eee1;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  max-width: 58ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.home-carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.home-carousel-nav,
.home-carousel-dot {
  pointer-events: auto;
}

.home-carousel-nav {
  border: 1px solid rgba(255, 248, 238, 0.45);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.12rem;
  color: #fff;
  background: rgba(24, 17, 12, 0.5);
  cursor: pointer;
}

.home-carousel-dots {
  display: inline-flex;
  gap: 0.42rem;
  background: rgba(24, 17, 12, 0.5);
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 999px;
  padding: 0.36rem 0.45rem;
}

.home-carousel-dot {
  border: 0;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.58);
  cursor: pointer;
}

.home-carousel-dot.is-active {
  width: 1.2rem;
  background: #fff;
}

main {
  padding: 2rem 0 3.5rem;
}

body[data-page="home"] main {
  padding-top: 0;
}

.section,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

body[data-page="news"] .hero {
  display: block;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.home-hero .hero-copy {
  min-width: 0;
}

.home-hero .hero-copy p {
  max-width: none;
}

.home-hero .hero-media {
  margin-top: 0;
  max-width: none;
}

.home-hero .hero-media img {
  height: 100%;
  min-height: 320px;
}

.pick-bow-hero-copy {
  min-width: 0;
}

.pick-bow-hero-copy p {
  max-width: none;
}

.pick-bow-hero-photo {
  margin: 0;
}

.pick-bow-hero-photo img {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.about-intro-copy {
  min-width: 0;
}

.about-intro-copy p {
  max-width: none;
}

.about-intro-photo {
  margin: 0;
}

.about-intro-photo img {
  aspect-ratio: 6 / 5;
  object-position: center top;
}

.gathering-hero-copy {
  min-width: 0;
}

.gathering-hero-photo {
  margin: 0;
}

.gathering-hero-photo img {
  aspect-ratio: 6 / 5;
  object-position: center;
}

.hero p {
  max-width: 72ch;
  color: var(--muted);
}

.section,
.panel {
  padding: clamp(1.25rem, 3.2vw, 2rem);
  margin-top: 1.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.card h3,
.card h4,
.card h5 {
  margin-bottom: 0.45rem;
}

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

.program-logo-link {
  display: inline-block;
  margin: 0.1rem 0 0.7rem;
}

.program-logo {
  width: min(100%, 330px);
  height: auto;
  display: block;
}

.program-photo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0.1rem 0 0.75rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.65rem;
}

.webb-gallery-strip {
  width: 100vw;
  margin: 1.25rem calc(50% - 50vw) 0;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
}

.webb-gallery {
  columns: 3 300px;
  column-gap: 0.9rem;
}

.webb-gallery-item {
  margin: 0 0 0.9rem;
  break-inside: avoid;
}

.webb-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.webb-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  aspect-ratio: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webb-gallery-trigger:hover img,
.webb-gallery-trigger:focus-visible img {
  transform: scale(1.025);
  box-shadow: 0 18px 36px rgba(43, 36, 29, 0.18);
}

.webb-gallery-trigger:focus-visible {
  outline: none;
}

.photo-card {
  margin: 0;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.photo-card.full-photo img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #e8dbc9;
}

.photo-card.tall img {
  aspect-ratio: 2 / 3;
}

.photo-card figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.section-media {
  margin-top: 0.9rem;
}

.hero-media {
  max-width: 680px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.contents-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contents-nav a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff9ef;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
}

.contents-nav a:hover {
  background: #f5e9d8;
}

.info-list {
  margin: 0.35rem 0 0.9rem;
  padding-left: 1.1rem;
}

.info-list li {
  margin: 0 0 0.3rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.board-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 48px rgba(43, 36, 29, 0.18);
}

.board-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.board-card-body {
  padding: 0.9rem 1rem 1rem;
}

.board-name {
  margin: 0;
  font-size: 1.18rem;
}

.board-role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.program-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card h3 {
  margin-bottom: 0.45rem;
}

.program-card h3 a {
  color: inherit;
  text-decoration: none;
}

.program-card h3 a:hover {
  text-decoration: underline;
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.program-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 48px rgba(43, 36, 29, 0.18);
}

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

.news-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.news-image-wrap {
  background: #e9dbc8;
}

.news-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
}

.news-card-content {
  padding: 1.1rem 1.25rem 1.2rem;
}

.news-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.32rem, 2.2vw, 1.85rem);
}

.news-title a {
  color: var(--ink);
  text-decoration: none;
}

.news-title a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.news-meta {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.15rem 0 0.75rem;
}

.news-tag {
  display: inline-block;
  border: 1px solid #caa582;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: #f7ebdc;
  color: #5a3622;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.news-excerpt p {
  color: var(--muted);
}

.news-excerpt p:last-child {
  margin-bottom: 0.85rem;
}

.news-actions {
  margin-top: 0.35rem;
}

.mini-news-feed {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.news-mini-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.news-mini-image {
  background: #e9dbc8;
}

.news-mini-image img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: block;
  object-fit: cover;
}

.news-mini-body {
  padding: 0.85rem 1rem 1rem;
}

.news-mini-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.news-mini-title a {
  color: var(--ink);
  text-decoration: none;
}

.news-mini-title a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.news-mini-meta {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-mini-excerpt {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccb8a1;
  border-radius: 10px;
  padding: 0.65rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 15, 10, 0.66);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, 94vw);
  max-height: min(88vh, 880px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
}

.modal-close {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  border: 1px solid var(--line);
  background: #fff8ee;
  color: var(--ink);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.modal-form {
  margin-top: 0.5rem;
}

.gallery-modal-dialog {
  width: min(96vw, 1400px);
  max-height: 92vh;
  padding: 0.8rem;
  background: rgba(255, 250, 241, 0.98);
}

.gallery-modal-image {
  width: 100%;
  max-height: calc(92vh - 1.6rem);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #e9dbc8;
  color: #2c2218;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.7rem 0;
}

.footer-grid h2 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0 0 0.3rem;
}

.footer-grid a {
  color: inherit;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-name {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-art {
  text-align: center;
}

.footer-art img {
  width: min(100%, 220px);
  height: auto;
}

.footer-bottom {
  padding: 0.25rem 0 1.4rem;
  text-align: center;
}

.footer-art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0 0.5rem;
}

.footer-art img {
  width: min(100%, 760px);
  height: auto;
  display: block;
  border-radius: 12px;
}

.floating-donate {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.72rem 1.05rem;
  box-shadow: 0 10px 28px rgba(43, 36, 29, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.floating-donate:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.highlight-quote {
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-carousel-slide {
    aspect-ratio: 16 / 8;
    min-height: 270px;
  }

  .news-card {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }

  .news-mini-card {
    grid-template-columns: minmax(145px, 200px) 1fr;
  }

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

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

  .webb-gallery {
    columns: 2 260px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .pick-bow-hero-photo {
    max-width: 500px;
    width: 100%;
    justify-self: center;
  }

  .pick-bow-hero-photo img {
    aspect-ratio: 4 / 5;
  }

  .about-intro-photo {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }

  .gathering-hero-photo {
    max-width: 680px;
    width: 100%;
    justify-self: center;
  }

  .home-hero .hero-media {
    max-width: 680px;
    width: 100%;
    justify-self: center;
  }

  .home-hero .hero-media img {
    min-height: 0;
  }

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

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

@media (max-width: 780px) {
  .home-carousel-slide {
    aspect-ratio: 16 / 10;
    min-height: 235px;
  }

  .home-carousel-controls {
    bottom: 0.5rem;
    gap: 0.45rem;
  }

  .home-carousel-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.02rem;
  }

  .home-carousel-dots {
    padding: 0.32rem 0.4rem;
  }

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

  .news-image-wrap img {
    min-height: 210px;
  }

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

  .news-mini-image img {
    min-height: 180px;
  }

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

  .webb-gallery {
    columns: 1;
  }

  .header-main {
    padding: 0.85rem 0;
  }

  .brand img {
    width: clamp(220px, 58vw, 340px);
  }

  .site-header.is-compact .header-main {
    padding: 0.55rem 0;
  }

  .site-header.is-compact .brand img {
    width: clamp(165px, 42vw, 220px);
  }

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

  .main-navigation {
    display: none;
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffefb;
    box-shadow: var(--shadow);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .menu-item {
    width: 100%;
  }

  .main-navigation > .menu-item > a {
    width: 100%;
  }

  .submenu {
    display: flex;
    position: static;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.1rem 0 0.15rem 0.85rem;
  }

  .submenu a {
    width: 100%;
  }

  .grid.two,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .floating-donate {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.65rem 0.95rem;
  }
}

@media (max-width: 620px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-main,
  .brand img,
  .home-carousel-track {
    transition: none;
  }

  .home-carousel-track {
    scroll-behavior: auto;
  }
}
