@charset "utf-8";

:root {
  --ohm-grey: #ededef;
  --ohm-red: #d71920;
  --ohm-text: #111111;
  --ohm-border: rgba(0, 0, 0, 0.08);
}

/* Injected museum header */
#ohm-site-header {
  background: var(--ohm-grey);
  border-bottom: 1px solid var(--ohm-border);
}

#ohm-site-header .ohm-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ohm-site-header .ohm-logo-link {
  display: inline-block;
}

#ohm-site-header .ohm-logo {
  display: block;
  width: 260px;
  max-width: 70vw;
  height: auto;
}

/* PastPerfect CSS often styles all linked images with borders/shadows */
#ohm-site-header a img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#ohm-site-header .ohm-menu {
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

#ohm-site-header .ohm-menu-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ohm-text);
  text-decoration: none;
  padding: 6px 8px;
}

#ohm-site-header .ohm-menu-link:hover,
#ohm-site-header .ohm-menu-link:focus-visible {
  color: var(--ohm-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ohm-site-header .ohm-active {
  color: var(--ohm-red);
}

/* Injected museum footer */
#ohm-site-footer {
  margin-top: 28px;
  font-family: Arial, Helvetica, sans-serif;
}

#ohm-site-footer .ohm-footer-top {
  background: #000000;
  color: #f3f3f3;
  padding: 44px 16px;
}

#ohm-site-footer .ohm-footer-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

#ohm-site-footer .ohm-footer-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ohm-site-footer .ohm-footer-text {
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

#ohm-site-footer .ohm-footer-link {
  color: rgba(255, 255, 255, 0.9);
}

#ohm-site-footer .ohm-footer-link:hover,
#ohm-site-footer .ohm-footer-link:focus-visible {
  color: #ffffff;
}

#ohm-site-footer .ohm-spacer {
  height: 18px;
}

#ohm-site-footer .ohm-kcdc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#ohm-site-footer .ohm-kcdc-logo {
  width: 170px;
  max-width: 70vw;
  height: auto;
}

#ohm-site-footer .ohm-footer-bottom {
  background: var(--ohm-red);
  color: rgba(255, 255, 255, 0.9);
  padding: 18px 16px;
}

#ohm-site-footer .ohm-footer-bottom-inner {
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  #ohm-site-footer .ohm-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  #ohm-site-header .ohm-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #ohm-site-header .ohm-menu-link {
    white-space: nowrap;
  }
}

/* PastPerfect mobile sanity */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

body {
  background: #ffffff !important;
}

#ohm-site-header + #wrapper {
  margin-top: 16px;
}

/* PastPerfect provides its own footer block; hide it in favor of Wix-like footer */
#wrapper > #footer {
  display: none !important;
}

#wrapper {
  box-sizing: border-box;
  display: flow-root;
  float: none !important;
  width: calc(100% - 24px) !important;
  max-width: 900px;
  margin: 16px auto !important;
}

/* Fallback clearfix for older engines */
#wrapper::after {
  content: "";
  display: block;
  clear: both;
}

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

/* PastPerfect list pages sometimes give .toc a red background */
.toc {
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

#content {
  background: #ffffff !important;
}

/* Make PastPerfect nav wrap instead of overflow */
.navigationul {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 10px !important;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigationli {
  float: none !important;
}

@media (max-width: 640px) {
  /* On small screens, PastPerfect source order puts text before image.
     Make the image appear first for a more natural layout. */
  #content {
    display: flex;
    flex-direction: column;
  }

  #datablock,
  #imageblock {
    float: none !important;
    clear: both !important;
    width: auto !important;
    margin: 10px !important;
  }

  #imageblock {
    order: 0;
  }

  #datablock {
    order: 1;
  }

  .image {
    float: none !important;
    clear: both !important;
    max-width: 160px;
    padding: 0 !important;
  }

  .title,
  .descrip,
  .objname,
  .objectid {
    float: none !important;
    width: auto !important;
    margin: 0 10px 8px !important;
  }

  /* Item record pages: avoid fixed-width float overflow */
  #datablock .datalabel,
  #datablock .datatext {
    float: none !important;
    width: auto !important;
    clear: none !important;
  }

  #datablock .datalabel {
    font-weight: 700;
    margin: 0 0 2px !important;
  }

  #datablock .datatext {
    margin: 0 0 10px !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
  }
}
