@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@600;700&display=swap");

:root {
  --ink: #23211d;
  --muted: #6f675d;
  --paper: #f8f5ef;
  --soft: #ebe7e1;
  --line: #d8d0c4;
  --gold: #c9972f;
  --red: #9c3328;
  --green: #406f51;
  --logo-green: #406f51;
  --logo-blue: #003366;
  --logo-yellow: #FEDF00;
  --blue: #315f8d;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(41, 34, 22, 0.12);
  --display-font: "Noto Serif", "Times New Roman", serif;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.7rem, 1.5vw, 1.4rem);
  align-items: center;
  padding: 0.15rem clamp(1rem, 5vw, 6rem);
  background: rgb(255 253 248);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 6rem;
}

.site-logo {
  width: 5.75rem;
  height: 5.75rem;
  object-fit: contain;
  display: block;
}

.footer-logo {
  width: 9rem;
  height: 9rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.2rem, 0.7vw, 0.9rem);
  min-width: 0;
  color: var(--logo-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-trigger,
.language-button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.2rem 0.2rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-trigger {
  gap: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  font: inherit;
  text-transform: inherit;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-item > a:hover,
.nav-trigger:hover,
.language-button:hover {
  color: var(--logo-green);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 16rem;
  padding: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  display: grid;
}

.nav-menu a {
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  text-transform: none;
}

.nav-menu a:hover {
  background: var(--paper);
}

.language-button {
  border: 1px solid #d5bf00;
  background: var(--logo-yellow);
  color: var(--logo-blue);
  font-size: 0.74rem;
  font-weight: 700;
  padding-inline: 0.55rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.hero-carousel,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.temple-sign-slide {
  object-position: center 88%;
}

.hero-slide.statue-focus-slide {
  object-position: center 20%;
}

.hero-slide.indoor-statue-slide {
  object-position: center 36%;
}

.hero-slide.vesak-buddha-slide {
  object-position: center 28%;
}

.hero-slide.is-active {
  opacity: 1;
}

.opening-hours {
  padding: clamp(1.15rem, 2.5vw, 1.8rem) 1rem;
  background: var(--logo-yellow);
}

.opening-hours-inner {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  max-width: 36rem;
  margin-inline: auto;
  padding: clamp(0.9rem, 1.8vw, 1.35rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.opening-hours h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
  line-height: 1.15;
  color: var(--logo-blue);
}

.opening-hours p,
.opening-hours strong {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.35;
}

.opening-hours p {
  color: var(--logo-blue);
  font-weight: 700;
}

.opening-hours strong {
  margin-top: 0.25rem;
  padding: 0.3rem 1rem;
  color: var(--logo-blue);
  background: rgba(255, 253, 248, 0.62);
  border-radius: 999px;
  font-weight: 800;
}

.home-activity-section + .opening-hours {
  margin-top: 0;
}

.home-activity-section {
  background: var(--paper);
}

.feature-event {
  display: grid;
  grid-template-columns: minmax(16rem, 30rem) minmax(18rem, 38rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 8vw, 7rem);
  background: var(--soft);
}

.feature-media img,
.media-card img {
  width: 100%;
  object-fit: cover;
}

.feature-media img {
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.feature-copy h1 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.feature-copy p {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #7d291f;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 7vw, 6rem);
}

.page-hero + .section {
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.home-section-heading {
  margin-inline: auto;
  margin-bottom: 2.5rem;
  padding-top: 0.35rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.home-section-heading h2 {
  color: var(--logo-blue);
}

.page-hero {
  background: var(--paper);
  padding: 0 clamp(1rem, 7vw, 6rem) 0;
}

.page-hero-inner {
  max-width: 64rem;
  margin-inline: auto;
}

.page-hero h1 {
  margin: 2.5rem 0 0;
  font-family: var(--display-font);
  color: var(--logo-blue);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  background: var(--white);
  border: 1px solid var(--line);
}

.page-hero img.portrait-focus {
  object-position: center 36%;
}

.page-hero img.temple-sign-focus {
  height: 360px;
  object-position: center 78%;
}

.readable {
  max-width: 64rem;
  margin-inline: auto;
}

.readable p {
  font-size: 1.1rem;
  text-align: left;
}

.content-subheading {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  color: var(--green);
}

.bio-intro-title {
  margin: 0 0 1.25rem;
  font-family: var(--display-font);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  column-span: all;
}

.bio-intro-lines {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  column-span: all;
}

.balanced-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.balanced-columns > div {
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(41, 34, 22, 0.06);
}

.text-card {
  display: grid;
  gap: 0.5rem;
  min-height: 8rem;
  align-content: center;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.text-card span {
  font-size: 1.2rem;
  font-weight: 800;
}

.media-card img {
  height: 16rem;
}

.media-card img.focus-top {
  object-position: center top;
}

.media-card img.focus-left-text {
  object-position: 28% center;
}

.media-card.tall img {
  height: auto;
  max-height: 44rem;
}

.media-card div,
.album div {
  padding: 1.25rem;
}

.media-card h3,
.media-card h2,
.album h2 {
  margin: 0.35rem 0;
  line-height: 1.2;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.chip {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-decoration: none;
}

.chip:hover {
  border-color: #406f51;
  color: #406f51;
}

.chip.active {
  border-color: var(--red);
  background: #fff1ed;
  color: var(--red);
  font-weight: 700;
}

.activities-section {
  display: grid;
  gap: 1.5rem;
}

.activity-calendar-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(14rem, 18rem);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  max-width: 62rem;
  margin-inline: auto;
}

.activity-calendar-main {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 20rem;
}

.calendar-controls button,
.calendar-controls select,
.calendar-controls input {
  min-height: 2.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--logo-blue);
  font: inherit;
  font-weight: 700;
}

.calendar-controls button {
  width: 2.35rem;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.calendar-controls select {
  flex: 1 1 8rem;
  padding-inline: 0.55rem;
}

.calendar-controls input {
  width: 5.2rem;
  padding-inline: 0.5rem;
}

.calendar-filter-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calendar-filter-panel h2 {
  margin: 0 0 0.25rem;
  color: var(--logo-blue);
  font-family: var(--display-font);
  font-size: 1.25rem;
  line-height: 1.2;
}

.calendar-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.calendar-checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: #406f51;
}

.calendar {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calendar-title {
  padding: 0.7rem 0.85rem;
  background: var(--logo-blue);
  color: var(--white);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 0.45rem 0.2rem;
  color: var(--logo-blue);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.calendar-grid span {
  min-height: 2.65rem;
  padding: 0.22rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 0.72rem;
}

.calendar-grid small {
  display: block;
  margin-top: 0.15rem;
  color: #406f51;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.3;
}

.has-event {
  background: #f7fbf4;
}

.event-list {
  display: grid;
  gap: 1rem;
  max-width: 74rem;
}

.event-card {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.event-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

.event-card-image {
  display: block;
}

.event-card-title {
  color: inherit;
  text-decoration: none;
}

.event-card-title:hover {
  color: #406f51;
}

.event-detail {
  display: grid;
  gap: 2rem;
}

.event-detail-image {
  width: min(100%, 44rem);
  margin-inline: auto;
  display: block;
  border: 1px solid var(--line);
}

.event-detail-body {
  max-width: 50rem;
  margin-inline: auto;
}

.event-detail-heading {
  margin: 0 0 1.5rem;
  color: var(--logo-blue);
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
}

.announcement-subheading {
  margin-top: 0;
  text-align: center;
}

time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-folders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 74rem;
  margin-inline: auto;
}

.gallery-folder {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(41, 34, 22, 0.06);
}

.gallery-folder:hover h2 {
  color: #406f51;
}

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

.gallery-folder div {
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.gallery-folder h2 {
  margin: 0 0 0.45rem;
  color: var(--logo-blue);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.gallery-folder p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.album-page {
  display: grid;
  gap: 1.25rem;
}

.album-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--logo-blue);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.album-back:hover {
  color: #406f51;
}

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

.album-photo {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.album-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.album-photo:hover img {
  transform: scale(1.035);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(8, 18, 32, 0.92);
}

.lightbox figure {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  justify-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #111;
}

.lightbox figcaption {
  color: var(--white);
  font-weight: 800;
}

.lightbox-close,
.lightbox-arrow {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-arrow {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.lightbox-open {
  overflow: hidden;
}

.vegetarian-page {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  max-width: 74rem;
  margin-inline: auto;
}

.vegetarian-story {
  max-width: 64rem;
  margin-inline: auto;
}

.vegetarian-story p,
.vegetarian-story li {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.78;
}

.vegetarian-story p {
  margin: 0 0 1rem;
}

.vegetarian-story ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.vegetarian-story .vegetarian-closing {
  margin-top: 25px;
  color: #003366;
  font-family: var(--display-font);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.vegetarian-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.vegetarian-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.practice-page {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  max-width: 74rem;
  margin-inline: auto;
}

.practice-story {
  max-width: 64rem;
  margin-inline: auto;
}

.practice-story p,
.practice-story li {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.78;
}

.practice-story p {
  margin: 0 0 1rem;
}

.practice-intro {
  font-weight: 400;
}

.practice-story ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.practice-closing {
  margin-top: 25px;
  color: #406f51;
  font-family: var(--display-font);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.practice-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.practice-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 30rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.instruction-box,
.form-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.form-card {
  display: grid;
  gap: 0.9rem;
  box-shadow: var(--shadow);
}

.form-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.8rem;
  font: inherit;
  background: var(--paper);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

iframe {
  width: 100%;
  min-height: 20rem;
  border: 1px solid var(--line);
}

.site-footer {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 7vw, 6rem);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 0.7fr) minmax(16rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 74rem;
  margin-inline: auto;
}

.footer-grid h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
}

.footer-grid section:first-child {
  justify-self: start;
}

.footer-grid section:last-child {
  justify-self: end;
  text-align: left;
}

.footer-grid li {
  list-style: none;
  line-height: 1.45;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.social {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social:hover {
  background: #0f5fc8;
  transform: translateY(-1px);
}

.social svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .language-switch {
    grid-column: 4;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 4.5rem);
    overflow: auto;
    padding: 0.75rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
    justify-content: stretch;
  }

  .nav-item > a {
    width: 100%;
  }

  .nav-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
  }

  .feature-event,
  .split,
  .balanced-columns,
  .gallery-folders,
  .activity-calendar-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .activity-calendar-layout {
    max-width: 40rem;
  }

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

  .footer-grid section:first-child,
  .footer-grid section:last-child {
    justify-self: center;
    text-align: center;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
  }

  .brand {
    min-width: 0;
  }

  .site-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .language-button {
    min-height: 2.5rem;
    padding-inline: 0.65rem;
    font-size: 12px;
  }

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

  .event-card img {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .activity-calendar-layout {
    width: 100%;
    max-width: none;
    gap: 1rem;
  }

  .activity-calendar-main,
  .calendar-filter-panel {
    width: 100%;
  }

  .calendar-controls {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) 4.9rem 2.35rem;
    max-width: min(100%, 24rem);
  }

  .calendar-controls select,
  .calendar-controls input {
    min-width: 0;
    width: 100%;
  }

  .calendar {
    max-width: min(100%, 24rem);
  }

  .calendar-title {
    padding: 0.65rem 0.75rem;
    font-size: 1.1rem;
  }

  .calendar-weekdays span {
    padding: 0.4rem 0.1rem;
    font-size: 0.58rem;
  }

  .calendar-grid span {
    min-height: 4.8rem;
    padding: 0.3rem 0.25rem;
    font-size: 0.75rem;
  }

  .calendar-grid small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.46rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .calendar-filter-panel {
    max-width: min(100%, 24rem);
    margin-inline: auto;
  }

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

  .lightbox {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .lightbox-arrow {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.8rem;
  }

  .lightbox-close {
    width: 2.35rem;
    height: 2.35rem;
  }
}
