:root {
  --cream: #efd5a6;
  --cream-dark: #e4c48a;
  --brown: #8e5900;
  --brown-dark: #6d4400;
  --ink: #2a1a00;
  --yellow: #ffde00;
  --white: #fff8ee;
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #efd5a6;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--brown-dark); text-decoration: underline; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-banner {
  background: #efd5a6;
  text-align: center;
  width: 100%;
}
.banner-rule {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: stretch;
  margin: 0;
  padding: 0;
  background: #efd5a6;
}
.banner-rule span {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  align-self: center;
  height: 1px;
  border: 0;
  background: #000;
  margin: 0;
}
.banner-logo {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.banner-logo a {
  display: block;
  width: min(1170px, 100%);
  margin: 0 auto;
}
.banner-logo img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.site-header {
  background: #8e5900;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: stretch;
  min-height: 80px;
  padding: 0 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #8e5900;
  box-shadow: none;
  box-sizing: border-box;
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
  padding: 0 16px;
  line-height: 80px;
}
.nav {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #8e5900;
}
.nav a, .nav .drop-btn {
  color: #fff;
  font-size: 21px;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 80px;
  height: 80px;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav .drop-btn:hover {
  color: #fff;
  background-color: #494d4e;
  text-decoration: none;
}
.nav a.is-active,
.drop.is-current > .drop-btn {
  color: #fff;
  background-color: #8e5900;
  text-decoration: none;
}
.nav .drop { position: relative; display: flex; align-items: stretch; }
.drop-arrow {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  vertical-align: 2px;
}
.nav .drop ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #313435;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
  z-index: 5;
  text-align: left;
}
@media (min-width: 901px) {
  .nav .drop:hover ul,
  .nav .drop:focus-within ul,
  .nav .drop.is-open ul { display: block; }
}
.nav .drop ul a {
  display: block;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.3;
  height: auto;
  text-transform: uppercase;
}
.nav .drop ul a:hover {
  background-color: #2aa5fa;
}

/* Cream band + light rule under nav (before hero), matching Motocms spacer */
.after-nav {
  background: #efd5a6;
  width: 100%;
}
.after-nav-rule {
  width: 100%;
  height: 1px;
  background: #d0d5dc;
  border: 0;
  margin: 0;
}
.after-nav-spacer {
  height: 30px;
  width: 100%;
  background: #efd5a6;
}

.hero-layout {
  background: #3a2808;
}
.hero-layout-img {
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
}

.welcome-block {
  padding: 24px 0 12px;
  background: #efd5a6;
}
.welcome-wrap {
  width: min(1200px, calc(100% - 30px));
  margin: 0 auto;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.welcome-copy {
  text-align: center;
  padding: 12px 20px;
}
.welcome-crest {
  text-align: center;
  padding: 12px 20px;
}
.fr-logo {
  width: min(227px, 70%);
  max-width: 227px;
  height: auto;
  margin: 0 auto;
}
.croeso {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #000;
}
.welcome-text p {
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  color: #000;
  text-align: center;
}
.welcome-text p:last-child { margin-bottom: 0; }
.pony-strip {
  margin-top: 28px;
  overflow: hidden;
  text-align: center;
}
.pony-strip img {
  width: min(646px, 90%);
  max-height: none;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.pony-strip.wow-slide {
  visibility: hidden;
}
.pony-strip.wow-slide.is-in {
  visibility: visible;
  animation: rgSlideInLeft 1s ease both;
}
@keyframes rgSlideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pony-strip.wow-slide {
    visibility: visible;
    animation: none;
  }
}

.next-exhibition {
  text-align: center;
  padding: 40px 16px 48px;
  background: transparent;
}
.next-ex-label {
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin: 0 0 10px;
}
.next-ex-line {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 22px;
}
.next-ex-actions { margin: 18px 0 0; }

/* Motocms countdown (moto-preset-default) */
.countdown {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  line-height: normal;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
}
.countdown-item {
  display: flex;
  align-items: center;
}
.countdown-box {
  position: relative;
  width: 120px;
  height: 120px;
  background-color: #8e5900;
  border: 6px solid #000;
  border-radius: 74px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.countdown-box-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 4px;
}
.countdown-amount {
  display: block;
  color: #ffde00;
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: normal;
}
.countdown-unit {
  display: block;
  color: #ffde00;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  text-transform: capitalize;
  position: relative;
  bottom: 5px;
}
.countdown-delimiter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-size: 30px;
  font-weight: 400;
  color: #ffde00;
  line-height: normal;
}

.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--brown-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--brown-dark);
  border: 2px solid var(--brown);
}
.btn-ghost:hover { background: var(--brown); color: #fff; }

.section { padding: 36px 0 48px; }
.page-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brown-dark);
  margin: 0 0 18px;
}
.prose .lede, .lede { margin: 0 0 14px; }
.map-figure { margin: 28px 0 0; }
.map-figure img { margin: 0 auto; border: 3px solid var(--brown); }

.rg-gallery {
  column-count: 3;
  column-gap: 14px;
  margin-top: 20px;
}
.rg-gallery-item {
  break-inside: avoid;
  display: block;
  margin: 0 0 14px;
  overflow: hidden;
}
.rg-gallery-item img {
  width: 100%;
  transition: transform .25s ease;
}
.rg-gallery-item:hover img { transform: scale(1.03); }

/* Home page: four pictures in one row, full image visible */
.home-gallery .wrap {
  width: min(1200px, calc(100% - 24px));
}
.rg-gallery-row {
  column-count: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  align-items: center;
}
.rg-gallery-row .rg-gallery-item {
  margin: 0;
  background: rgba(0, 0, 0, .06);
}
.rg-gallery-row .rg-gallery-item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.rg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 0, .92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.rg-lightbox[hidden] { display: none !important; }
.rg-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}
.rg-lightbox-close,
.rg-lightbox-prev,
.rg-lightbox-next {
  position: absolute;
  background: rgba(255,222,0,.9);
  border: 0;
  color: #1a1200;
  font-size: 28px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 2px;
}
.rg-lightbox-close { top: 16px; right: 16px; }
.rg-lightbox-prev { left: 16px; }
.rg-lightbox-next { right: 16px; }

.contact-section {
  background: rgba(142,89,0,.07);
  border-top: 1px solid rgba(142,89,0,.2);
  border-bottom: 1px solid rgba(142,89,0,.2);
  text-align: center;
}
.contact-section .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-section h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--brown-dark);
  margin: 0 0 8px;
  text-align: center;
}
.contact-section .lede,
.contact-section .notice {
  text-align: center;
  max-width: 560px;
}
.contact-form {
  max-width: 560px;
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}
.contact-form label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: .92rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(142,89,0,.35);
  background: #fffaf0;
  font: inherit;
  color: var(--ink);
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}
.notice {
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: 2px;
}
.notice.ok { background: #dff5d8; color: #1d5a12; }
.notice.err { background: #f8d8d4; color: #7a1f14; }

.audio-bar {
  background: var(--brown-dark);
  color: #fff;
  padding: 18px 0;
}
.audio-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.audio-title { margin: 0; font-weight: 700; letter-spacing: .04em; }
.audio-bar audio { width: min(420px, 100%); }

.diary-sub {
  margin: 28px 0 12px;
  color: var(--brown-dark);
  font-size: 1.25rem;
}
.diary-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(142,89,0,.25);
}
.diary-line { margin: 0; font-weight: 600; }
.diary-list.past .diary-line { opacity: .75; font-weight: 500; }

.links-group-title {
  margin: 28px 0 12px;
  color: var(--brown-dark);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.links-list li { margin: 0 0 8px; }
.links-list a { word-break: break-all; }

.site-footer {
  background: var(--brown);
  color: #fff;
  text-align: center;
  padding: 28px 16px;
  margin-top: 24px;
}
.site-footer a { color: var(--yellow); }
.footer-note { opacity: .85; font-size: .92rem; margin: 6px 0 0; }

@media (max-width: 1039px) {
  .header-inner { padding: 0 5px; }
  .nav a, .nav .drop-btn { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .nav a, .nav .drop-btn {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  .banner-rule { height: 28px; }
  .banner-logo { padding: 0 10px; }
  .site-header { padding: 0; }
  .header-inner { min-height: 56px; position: relative; padding: 0 10px; }
  .nav-toggle { display: block; line-height: 56px; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #313435;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .drop-btn {
    font-size: 14px;
    line-height: 34px;
    height: auto;
    padding: 0 16px;
    justify-content: flex-start;
  }
  .nav .drop ul {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,.15);
    min-width: 0;
  }
  .nav .drop.is-open ul { display: block; }
  .welcome-grid { grid-template-columns: 1fr; }
  .croeso { font-size: 30px; }
  .welcome-text p { font-size: 18px; }
  .fr-logo { width: min(200px, 55%); }
  .pony-strip { display: none; }
  .rg-gallery { column-count: 2; }
  .rg-gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .rg-gallery-row .rg-gallery-item img {
    max-height: 220px;
    height: auto;
    object-fit: contain;
  }
  .countdown-box {
    width: 72px;
    height: 72px;
    border-width: 4px;
    border-radius: 44px;
  }
  .countdown-amount { font-size: 20px; }
  .countdown-unit { font-size: 12px; bottom: 2px; }
  .countdown-delimiter { font-size: 20px; min-width: 12px; }
}
@media (max-width: 560px) {
  .rg-gallery { column-count: 1; }
  .rg-gallery-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rg-gallery-row .rg-gallery-item img {
    max-height: 160px;
    height: auto;
    object-fit: contain;
  }
  .banner-rule { height: 20px; }
}
