@import url(foundation.min.css);
@import url(jquery.fancybox.css);
@import url(slick.css);
@import url("https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

@media screen and (max-width: 715px) {
  html,
  body {
    overflow-x: clip;
  }
}

[data-lift] {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.35s ease;
}
[data-lift]:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: reduce) {
  [data-lift] {
    transition: none;
  }
  [data-lift]:hover {
    transform: none;
  }
}

/* ==========================================================================
   museumOS design system (ported from All the html/_ds/organic-.../styles.css)
   ========================================================================== */

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 300;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --color-error: #ef6461;
}

.currentWeatherIcon.ng-scope {
    margin-top: -10px !important;
    margin-bottom: -14px !important;
}

.washed {
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* — rules — */
.hr {
  height: 1px;
  border: 0;
  margin: var(--space-4) 0;
  background: var(--color-divider);
}



/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg {
  display: block;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover {
  background: var(--color-accent-600);
}
.btn-primary:active {
  background: var(--color-accent-700);
}
.btn-secondary {
  border-color: var(--color-divider);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.btn-secondary:active {
  background: color-mix(in srgb, var(--color-text) 14%, transparent);
}
.btn-ghost {
  color: var(--color-accent);
  padding-inline: var(--space-1);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.btn-ghost:active {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}
.btn-block {
  width: 100%;
  margin-top: var(--space-2);
}

/* — forms — */
.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}
textarea.input {
  min-height: 90px;
  resize: vertical;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.radio input,
.seg-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.radio .dot {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot {
  border-color: var(--color-accent);
}
.radio input:checked + .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.seg-opt + .seg-opt {
  border-left: 1px solid var(--color-divider);
}
.seg-opt:has(input:checked) {
  background: var(--color-accent);
  color: var(--color-bg);
}
.seg-opt:not(:has(input:checked)):hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.seg-opt:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* — cards — */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.2;
}
.card-body {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm {
  box-shadow: var(--shadow-sm);
}
.elev-md {
  box-shadow: var(--shadow-md);
}
.elev-lg {
  box-shadow: var(--shadow-lg);
}

/* — tags — */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}
.tag-accent-2 {
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-800);
}
.tag-neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}
.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* — ds navigation — */
.ds-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.ds-nav-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  margin-right: auto;
}
.ds-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.ds-nav a:hover,
.ds-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* — tables — */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}

/* — dialog — */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body {
  font-size: 14px;
  opacity: 0.85;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* — rounded frame: everything softens, small controls go pill — */
.card,
.dialog {
  border-radius: calc(var(--radius-lg) * 1.15);
}
.btn,
.tag,
.seg,
.input {
  border-radius: 999px;
}
.input {
  padding-inline: 14px;
}

/* Keep inline CMS grid cards inside their tracks at narrow widths. */
.mos-home div[style*="grid-template-columns"] > * {
  min-width: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Site nav (museumOS design) — replaces Foundation's top-bar markup/JS
   entirely with a plain flex bar + native <details> mobile menu, matching
   SiteNav.dc.html. position2 (menu module) and position3 (language switcher
   module) still render their own markup; only the surrounding chrome and
   breakpoints live here.
  Desktop (>=1450px): centered links, mobile "Menu" toggle hidden.
  Tablet/mobile (<=1449px): centered links hidden, "Menu" toggle shown.
   Small phones (<=559px): CTA button hidden to save space.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(46, 43, 37, 0.93) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-neutral-800);
  box-shadow: none !important;
  padding: 0 !important;
}

body.homepage main,
body.innerpage main {
  padding-top: 74px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px 32px;
  box-sizing: border-box;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  min-width: 305px;
}
.site-nav__wordmark {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-neutral-100);
}

.site-nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.site-nav__links ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-neutral-300);
  text-decoration: none;
  transition: color 0.25s;
}
.site-nav__links a:hover {
  color: var(--color-accent-300);
}

.homepage .home-active ul li:nth-child(1) a,
.site-nav__links a.active,
.site-nav__sheet a.active {
  color: var(--color-accent-300);
  border-bottom: 2px solid var(--color-accent-700);
  padding-bottom: 3px;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.site-nav__mobile {
  display: none;
  position: relative;
}
.site-nav__mobile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-neutral-700);
  color: var(--color-neutral-200);
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.site-nav__mobile-btn::-webkit-details-marker {
  display: none;
}
.site-nav__sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 78px;
  z-index: 80;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-800);
  border: 1px solid var(--color-neutral-700);
  box-shadow: var(--shadow-lg);
}
.site-nav__sheet ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__sheet a {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-neutral-200);
  text-decoration: none;
}
.site-nav__sheet a:hover {
  color: var(--color-accent-300);
}

.site-nav__cta a {
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--color-accent-700);
  color: var(--color-neutral-100) !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s;
}
.site-nav__cta a:hover {
  background: var(--color-accent-800);
}

.site-header .lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-neutral-800);
}
.site-header .lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-neutral-400);
  text-decoration: none;
  transition:
    color 0.25s,
    background 0.25s;
}
.site-header .lang-switch__item:hover {
  color: var(--color-accent-300);
}
.site-header .lang-switch__item--active,
.site-header .lang-switch__item--active:hover {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
}

@media screen and (max-width: 1449px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__mobile {
    display: block;
  }

  .grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .site-nav__brand {
    min-width: 0px;
  }
}
@media screen and (max-width: 715px) {
  .site-nav__cta {
    display: none;
  }

  .site-nav {
    padding: 15px 10px;
  }

  .grid-responsive,
  .mos-home div[style*="grid-template-columns"],
  #contact .field-row {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ==========================================================================
   Homepage hero (museumOS design) — decorative motion used by the isHome()
   sections in page.php.
   ========================================================================== */

@keyframes om-rise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-blob-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(6%, -4%, 0) scale(1.18);
  }
  66% {
    transform: translate3d(-4%, 5%, 0) scale(0.92);
  }
}
@keyframes om-blob-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  40% {
    transform: translate3d(-7%, 4%, 0) scale(0.9);
  }
  75% {
    transform: translate3d(5%, -6%, 0) scale(1.2);
  }
}
@keyframes om-blob-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  50% {
    transform: translate3d(4%, 6%, 0) scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  #top [style*="animation"] {
    animation: none !important;
  }
}

/* ==========================================================================
   Font-family fix — the sitewide reset forces "Open Sans" directly onto
   a/button/input/label/textarea/select (not just inherited), which wins
   over inherited var(--font-body) from an ancestor. Re-assert the
   museumOS body font on those tags within the redesigned chrome only.
   ========================================================================== */

.site-header a,
.site-header button,
.site-footer a,
.site-footer button,
.mos-home a,
.mos-home button,
.mos-home input,
.mos-home textarea,
.mos-home select,
.mos-home label,
.static-hero a,
.static-hero button,
.mos-page a,
.mos-page button,
.mos-page input,
.mos-page textarea,
.mos-page select,
.mos-page label {
  font-family: var(--font-body) !important;
}

/* ==========================================================================
   Static page hero (museumOS design) — shared by _staticpage.php across
   about/why/features/technology/etc. $page['title'] becomes the small
   kicker; the big heading + intro paragraph come from the admin's WYSIWYG
   $page['description'], styled here so authors don't need inline styles.
   The page image (if set) now renders below, in its own framed section.
   ========================================================================== */

@keyframes om-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate3d(3%, -4%, 0) scale(1.12);
  }
}

body {
  margin: 0;
}

a {
  text-decoration: none;
}
a {
  color: var(--color-accent-300);
}
.static-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-neutral-900);
  color: var(--color-neutral-100);
  font-family: var(--font-body);
}
.static-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    110% 80% at 12% 0%,
    var(--color-accent-900) 0%,
    var(--color-neutral-900) 60%
  );
  pointer-events: none;
}
.static-hero__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: -14vw;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    var(--color-accent-2-700) 0%,
    transparent 70%
  );
  filter: blur(46px);
  opacity: 0.4;
  animation: om-glow 22s ease-in-out infinite;
  pointer-events: none;
}
.static-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 32px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.static-hero__kicker {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2-300);
}

.static-page__content h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.04;
  margin: 0 0 4px;
  max-width: 900px;
  text-wrap: pretty;
  color: var(--color-neutral-100);
  font-size: clamp(38px, 4.2vw, 62px);
}

.static-hero .static-page__content h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.04;
  margin: 0 0 4px;
  max-width: 900px;
  text-wrap: pretty;
  color: var(--color-neutral-100);
}
.static-hero .static-page__content p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-neutral-200);
  max-width: 720px;
}
.static-hero .static-page__content p + p {
  margin-top: 16px;
}

/* Admin-managed story text (positions 13/16/21 - plain <p> tags typed into
   a CMS module, no inline styles). The last paragraph becomes the accent
   pull-quote wherever .story-text--quote is used. */
.story-text p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-neutral-300);
}
.story-text p + p {
  margin-top: 22px;
}
.story-text--quote p:last-of-type {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 27px;
  line-height: 1.25;
  color: var(--color-accent-300);
}

/* ==========================================================================
   Article body (museumOS design) — used by _article.php for the full
   $page['description'] rich text below the hero image. Kicker/title/intro
   reuse .static-hero .static-page__content h1/p above the image already.
   ========================================================================== */

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-neutral-300);
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  color: var(--color-neutral-100);
  margin: 40px 0 16px;
}
.article-body h2 {
  font-size: 30px;
}
.article-body h3 {
  font-size: 24px;
}
.article-body h4 {
  font-size: 19px;
}
.article-body p {
  margin: 0 0 20px;
}
.article-body a {
  color: var(--color-accent-300);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 24px 0;
}
.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--color-accent-700);
  background: var(--color-neutral-800);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-accent-300);
}
.article-body :first-child {
  margin-top: 0;
}
.article-body :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pagination (museumOS design) — CI's pagination library output
   (<ul class="pagination">...</ul>), used at the bottom of _category.php.
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination li {
  display: flex;
}
.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-neutral-300);
  background: var(--color-neutral-800);
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}
.pagination li a:hover {
  background: var(--color-neutral-700);
  color: var(--color-neutral-100);
}
.pagination li.current a,
.pagination li.current span {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  font-weight: 600;
  cursor: default;
}
.pagination li.unavailable a,
.pagination li.unavailable span {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.static-hero-image {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 80px;
}
.static-hero-image__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-neutral-800);
  box-shadow: var(--shadow-lg);
}
.static-hero-image__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/* Admin-managed photo positions (12/14/15/17/18/19/etc.) — the wrapper sets
   the aspect-ratio/frame, but whatever the admin pastes in (usually a plain
   <img>) has no size constraint of its own, which was overflowing the grid.
   Force it to fill the frame regardless of the source image's dimensions. */
.photo-frame {
  min-width: 0;
}
.photo-frame img,
.photo-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .static-hero__glow {
    animation: none !important;
  }
}

/* ==========================================================================
   Contact form (museumOS design) — used by _contactForm.php. Generic
   selectors so the markup can stay plain (label > input/select/textarea +
   small.error), instead of repeating inline styles per field.
   ========================================================================== */

#contact {
  max-width: 640px;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-neutral-800);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
#contact .field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 18px;
}
#contact label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--color-neutral-300);
  transition: color 0.2s;
}
#contact input,
#contact select,
#contact textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-neutral-700);
  background: var(--color-neutral-900);
  color: var(--color-neutral-100);
  font-family: var(--font-body);
  font-size: 17px;
  transition: border-color 0.2s;
}
#contact textarea {
  border-radius: 20px;
  padding: 16px 20px;
  resize: vertical;
}
#contact input:focus-visible,
#contact select:focus-visible,
#contact textarea:focus-visible {
  outline: 2px solid var(--color-accent-300);
  outline-offset: 2px;
}
#contact button[type="submit"] {
  padding: 18px 32px;
  border: none;
  border-radius: 999px;
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}
#contact button[type="submit"]:hover {
  background: var(--color-accent-800);
}
#contact .form-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-neutral-500);
}
#contact [data-alert] {
  margin-top: -4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}
#contact [data-alert].success {
  background: color-mix(
    in srgb,
    var(--color-accent-2) 20%,
    var(--color-neutral-800)
  );
  color: var(--color-accent-2-200);
}
#contact [data-alert].warning {
  background: color-mix(
    in srgb,
    var(--color-error) 20%,
    var(--color-neutral-800)
  );
  color: var(--color-neutral-100);
}
#contact [data-alert] #close {
  float: right;
  cursor: pointer;
  opacity: 0.7;
}
#contact [data-alert] #close:hover {
  opacity: 1;
}



/* error state — Foundation Abide adds .error to the label[for] matching the field */
#contact small.error {
  display: none;
  margin-top: -4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-error);
}
#contact label.error {
  color: var(--color-error);
}
#contact label.error small.error {
  display: block;
}
#contact label.error input,
#contact label.error select,
#contact label.error textarea {
  border-color: var(--color-error);
}
