/* ============================================
   THE HERITAGE CENTER — OMEKA S CUSTOM CSS
   Built on the MTSU Digital History stylesheet.
   Paste into: Site admin > Theme > CSS Editor
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Noto+Serif:wght@700&display=swap");

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #004b7d;
  --primary-dark: #003660;
  --primary-contrast: #ffffff;
  --secondary: #004b7d;
  --secondary-dark: #003660;
  --secondary-contrast: #ffffff;
  --accent: #004b7d;
  --accent-dark: #003660;
  --hc-cream: #f8f6ee;
  --hc-rule: #dddddd;
  --hc-red: #8f1313;
}

/* ===== BASE ===== */
html { font-size: 18px !important; }

html, body {
  background-color: #f8f6ee !important;
  color: #000000 !important;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== HEADER ===== */
.main-header,
.main-header__main-bar.container {
  background-color: #f8f6ee !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 20px 0 0 0 !important;
  text-align: center !important;
}

.main-header__top-bar { display: none !important; }

/* Stack the title on top of the nav instead of side by side */
.main-header__main-bar,
.main-header__main-bar.container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== LOGO / SITE TITLE ===== */
.main-header__site-title {
  display: block !important;
  width: 100% !important;
  float: none !important;
  text-align: center !important;
  margin: 0 auto 14px auto !important;
}

/* Text title (shown when no logo image is set) */
.main-header__site-title,
.main-header__site-title a,
.main-header__site-title h1 {
  font-family: "Noto Serif", serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #000000 !important;
  text-decoration: none !important;
  text-align: center !important;
  justify-content: center !important;
}

.main-header__site-title a img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 500px !important;
  max-height: 160px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Two-line title, written by the CSS.
   The Omeka site title text is hidden and replaced with these two lines,
   so it works whatever the site title is set to. */
.main-header__site-title a {
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.main-header__site-title a > *:not(img) { display: none !important; }

.main-header__site-title a::before {
  content: "The Heritage Center" !important;
  display: block !important;
  font-family: "Noto Serif", serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #c30613 !important;
}

.main-header__site-title a::after {
  content: "of Murfreesboro and Rutherford County" !important;
  display: block !important;
  font-family: "Noto Serif", serif !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
  color: #000000 !important;
}

/* ----- Logo as a circle beside the two title lines -----
   Flexbox column-wrap: the logo fills column 1,
   the two title lines wrap into column 2. */
.main-header .main-header__site-title a {
  display: inline-flex !important;
  flex-direction: column !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-content: center !important;
  align-items: flex-start !important;
  height: 120px !important;
  text-align: left !important;
}

.main-header .main-header__site-title a img {
  order: 0 !important;
  display: block !important;
  width: 120px !important;
  height: 120px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 20px 0 0 !important;
  padding: 8px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background-color: #ffffff !important;
  border: 3px solid #004b7d !important;
  box-shadow: 0 4px 12px rgba(0, 75, 125, 0.2) !important;
  box-sizing: border-box !important;
}

.main-header .main-header__site-title a::before { order: 1 !important; text-align: left !important; }
.main-header .main-header__site-title a::after  { order: 2 !important; text-align: left !important; }

/* ===== NAVIGATION ===== */
.main-navigation {
  width: 100% !important;
  background-color: #f8f6ee !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 2px solid #004b7d !important;
  border-bottom: none !important;
}

.main-navigation .navigation {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.main-navigation .navigation > li { position: relative !important; }

.main-navigation .navigation > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  background-color: transparent !important;
  transition: color 0.2s ease !important;
}

.main-navigation .navigation > li > a:hover,
.main-navigation .navigation > li.active > a {
  color: #004b7d !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

/* ===== DROPDOWNS ===== */
.main-navigation .navigation > li > ul {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 220px !important;
  max-width: 320px !important;
  background-color: #ffffff !important;
  border: 1px solid #004b7d !important;
  border-top: 3px solid #004b7d !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12) !important;
  z-index: 9999 !important;
  padding: 4px 0 !important;
  margin: 0 !important;
}

.main-navigation .navigation > li:hover > ul { display: block !important; }

.main-navigation .navigation > li > ul > li > a {
  display: block !important;
  padding: 10px 16px !important;
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  background-color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.main-navigation .navigation > li > ul > li:last-child > a { border-bottom: none !important; }

.main-navigation .navigation > li > ul > li > a:hover {
  background-color: #f0f4f8 !important;
  color: #004b7d !important;
}

/* ===== CONTENT ===== */
#content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 20px 60px 20px !important;
  background-color: #f8f6ee !important;
  color: #000000 !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

#content a { color: #004b7d !important; text-decoration: none !important; }
#content a:hover { color: #003660 !important; text-decoration: underline !important; }

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5 { color: #000000 !important; font-weight: 700 !important; }
#content h1 { font-size: 2rem !important; margin-bottom: 16px !important; }
#content h2 { font-size: 1.4rem !important; margin-bottom: 12px !important; }
#content h3 { font-size: 1.1rem !important; margin-bottom: 8px !important; }

/* ===== PARAGRAPHS ===== */
#content p { margin-bottom: 16px !important; font-size: 1rem !important; line-height: 1.7 !important; }

/* ===== HIDE ELEMENTS ===== */
.banner,
nav.breadcrumbs, .breadcrumbs,
.site-page-pagination,
.sub-menu, nav.sub-menu, ul.sub-menu {
  display: none !important;
}

/* Keep HTML blocks full width; layouts come from the hc- classes below */
.blocks-inner .block,
.block-html > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* =====================================================
   HERITAGE CENTER COMPONENTS
   Used inside the HTML blocks on each page.
   ===================================================== */

/* ----- Hero banner (home page) ----- */
.hc-hero {
  position: relative !important;
  padding: 160px 40px 120px 40px !important;
  margin: 0 0 30px 0 !important;
  background-size: cover !important;
  background-position: 50% 50% !important;
  border-radius: 4px !important;
  text-align: center !important;
  overflow: hidden !important;
}

.hc-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

.hc-hero > * { position: relative !important; }

#content .hc-hero h1 {
  color: #ffffff !important;
  font-family: "Noto Serif", serif !important;
  font-size: 3.2rem !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

#content .hc-hero p {
  color: #ffffff !important;
  font-size: 1.3rem !important;
  margin: 10px 0 0 0 !important;
}

/* ----- Page title ----- */
.hc-page-title { text-align: center !important; margin-bottom: 24px !important; }
#content .hc-page-title h1 { font-family: "Noto Serif", serif !important; margin-bottom: 4px !important; }

/* ----- Small uppercase label (from the bio-role style) ----- */
.hc-eyebrow {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #004b7d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.9rem !important;
  padding-bottom: 0.8rem !important;
  border-bottom: 1px solid #dddddd !important;
}

/* ----- Section label (like FACULTY / AFFILIATE FACULTY) ----- */
.hc-section-label {
  display: block !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 36px 0 14px 0 !important;
}

/* ----- Two-column text + image ----- */
.block-html .hc-two-col {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
  align-items: flex-start !important;
  margin-bottom: 30px !important;
}

.hc-two-col > .hc-col-text { flex: 1 1 42% !important; }
.hc-two-col > .hc-col-media { flex: 1 1 50% !important; }

.hc-col-media img {
  display: block !important;
  width: 100% !important;
  max-height: 380px !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}

/* ----- Visit info strip ----- */
.block-html .hc-visit {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  border-top: 2px solid #004b7d !important;
  border-bottom: 1px solid #dddddd !important;
  padding: 20px 0 !important;
  margin: 10px 0 30px 0 !important;
  text-align: center !important;
}

.hc-visit strong {
  display: block !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #004b7d !important;
  margin-bottom: 4px !important;
}

#content .hc-visit p { margin: 0 !important; }

/* ----- Card grid (from the Collab page) ----- */
.block-html .hc-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  align-items: start !important;
}

.hc-card {
  display: block !important;
  border: 1px solid #dddddd !important;
  border-radius: 6px !important;
  padding: 16px !important;
  background-color: #ffffff !important;
  transition: transform 0.25s ease !important;
}

#content a.hc-card,
#content a.hc-card:hover { color: #000000 !important; text-decoration: none !important; }
a.hc-card:hover { transform: translateY(-8px) !important; }

.hc-card img {
  display: block !important;
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin-bottom: 8px !important;
}

#content .hc-card h4 {
  font-size: 1rem !important;
  color: #004b7d !important;
  margin: 8px 0 6px 0 !important;
}

#content .hc-card p { font-size: 0.9rem !important; margin: 0 !important; }

.hc-tag {
  display: inline-block !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
  background: #004b7d !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
}

.hc-tag--soon { background: #8f1313 !important; }

/* ----- Exhibit feature panel ----- */
.hc-feature {
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-left: 4px solid #004b7d !important;
  border-radius: 6px !important;
  padding: 20px 24px !important;
  margin-bottom: 24px !important;
}

/* ----- Document list ----- */
.hc-doc-list { list-style: none !important; margin: 0 0 20px 0 !important; padding: 0 !important; }

.hc-doc-list li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 20px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.hc-doc-list li:first-child { border-top: 3px solid #004b7d !important; }
.hc-doc-list li:hover { background: #f0f4f8 !important; }

.hc-doc-meta {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: #383838 !important;
  white-space: nowrap !important;
}

.hc-placeholder { color: #8f1313 !important; font-style: italic !important; }

/* ===== FOOTER ===== */
.main-footer {
  background-color: #004b7d !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main-footer__top {
  background-color: #004b7d !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.main-footer__top-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.main-footer__col1 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.main-footer__col1 img {
  height: 120px !important;
  width: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

.main-footer__col2,
.main-footer__copyright,
.main-footer__bottom { display: none !important; }

.main-footer__col3 {
  display: block !important;
  text-align: center !important;
  padding: 10px 0 !important;
  color: #ffffff !important;
}

.main-footer__col3 strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 12px !important;
}

.main-footer__col3 a { color: #ffffff !important; }

.main-footer__col3 div {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
}

img.partner-logo {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  transition: transform 0.25s ease !important;
}

img.partner-logo:hover { transform: translateY(-8px) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-navigation .navigation { flex-wrap: wrap !important; }
  .main-navigation .navigation > li > a { padding: 10px 12px !important; font-size: 0.8rem !important; }
  .main-header .main-header__site-title a { height: 72px !important; }
  .main-header .main-header__site-title a img { width: 72px !important; height: 72px !important; padding: 5px !important; margin-right: 12px !important; }
  .main-header__site-title,
  .main-header__site-title h1 { font-size: 1.6rem !important; }
  .main-header__site-title a::before { font-size: 1.6rem !important; }
  .main-header__site-title a::after { font-size: 0.95rem !important; }
  .hc-hero { padding: 90px 20px 70px 20px !important; }
  #content .hc-hero h1 { font-size: 2.1rem !important; }
  .hc-two-col > .hc-col-text,
  .hc-two-col > .hc-col-media { flex: 1 1 100% !important; }
  .block-html .hc-visit,
  .block-html .hc-cards { grid-template-columns: 1fr !important; }
  .hc-doc-list li { flex-direction: column !important; gap: 4px !important; }
}

/* ===== CENTERING FIXES =====
   Centers the logo + title group on any screen width,
   and centers the courthouse inside the circle. */
body .main-header .main-header__site-title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

body .main-header .main-header__site-title a {
  margin: 0 auto !important;
  justify-items: center !important;
}

body .main-header .main-header__site-title a img {
  object-position: center center !important;
  justify-self: center !important;
  align-self: center !important;
  vertical-align: middle !important;
}

body .main-header .main-header__site-title a::before,
body .main-header .main-header__site-title a::after {
  justify-self: start !important;
}

/* ===== NUDGE COURTHOUSE INSIDE THE CIRCLE =====
   Extra padding on the left/top pushes the image right and slightly down.
   To move it further right, raise the 4th number and lower the 2nd by the same amount. */
body .main-header .main-header__site-title a img {
  padding: 11px 3px 5px 13px !important;
}

@media (max-width: 768px) {
  body .main-header .main-header__site-title a img {
    padding: 7px 2px 3px 8px !important;
  }
}

/* ===== LARGER TITLE AND NAVIGATION ===== */
body .main-header .main-header__site-title a::before { font-size: 2.8rem !important; }
body .main-header .main-header__site-title a::after  { font-size: 1.5rem !important; }

/* Logo grows a little to stay in proportion with the bigger title */
body .main-header .main-header__site-title a img {
  width: 140px !important;
  height: 140px !important;
}

body .main-navigation .navigation > li > a {
  font-size: 0.95rem !important;
  padding: 14px 18px !important;
}

@media (max-width: 768px) {
  body .main-header .main-header__site-title a::before { font-size: 1.45rem !important; }
  body .main-header .main-header__site-title a::after  { font-size: 0.78rem !important; }
  body .main-header .main-header__site-title a img { width: 68px !important; height: 68px !important; }
  body .main-navigation .navigation > li > a { font-size: 0.9rem !important; padding: 10px 12px !important; }
}

/* Breathing room between the header and the nav line */
body .main-header .main-header__site-title { margin-bottom: 20px !important; }

/* ===== SOCIAL MEDIA POSTS (home page) =====
   Every post screenshot gets the same size frame. The whole post stays visible
   (nothing cropped); any leftover space is filled with the dark post color.
   To change the frame height, edit the 520px values. */
#content .media-embed .item img,
#content .block-media img,
#content .hc-social img {
  display: block !important;
  width: 100% !important;
  height: 520px !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #242526 !important;
  border-radius: 6px !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#content .media-embed .item a:hover img,
#content .block-media a:hover img,
#content .hc-social a:hover img,
#content .media-embed .item img:hover,
#content .block-media img:hover,
#content .hc-social img:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 768px) {
  #content .media-embed .item img,
  #content .block-media img,
  #content .hc-social img { height: 420px !important; }
}
/* ===== SOCIAL MEDIA: THREE POSTS IN A ROW ===== */
body #content .hc-social {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  align-items: start !important;
  margin: 10px 0 30px 0 !important;
}

body #content .hc-social-title {
  text-align: center !important;
  font-family: "Noto Serif", serif !important;
  font-size: 2rem !important;
  margin: 30px 0 20px 0 !important;
}

body #content .hc-social h3 {
  font-size: 1.3rem !important;
  margin: 0 0 14px 0 !important;
}

body #content .hc-social a { display: block !important; text-decoration: none !important; }

body #content .hc-social img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: initial !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body #content .hc-social img:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 768px) {
  body #content .hc-social { grid-template-columns: 1fr !important; gap: 30px !important; }
}
/* Uniform size: every post is the same shape (6:7), trimmed from the bottom/sides */
body #content .hc-social img {
  aspect-ratio: 6 / 7 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: top center !important;
}

/* Post 3 is much wider, so it is shown whole instead of trimmed;
   the space above/below is filled with Facebook's dark gray so it blends in */
body #content .hc-social > div:nth-child(3) img {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #242526 !important;
}
/* ===== FLIP CARDS (Educational Documents) ===== */
body #content .flip-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  gap: 30px !important;
  margin: 30px 0 !important;
}
body #content .flip-whole { perspective: 1400px; height: 100% !important; }
body #content .flip-card {
  display: grid !important;
  height: 100% !important;
  min-height: 440px !important;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
  outline: none;
}
body #content .flip-whole:hover .flip-card,
body #content .flip-card:focus,
body #content .flip-card:focus-within { transform: rotateY(180deg); }

body #content .flip-card-front,
body #content .flip-card-back {
  grid-area: 1 / 1 !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 75, 125, 0.2) !important;
}

/* Front: whole image, title bar underneath */
body #content .flip-card-front {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
}
body #content .flip-card-front .flip-img {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 12px 12px 0 12px !important;
}
body #content .flip-card-front .flip-img img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
body #content .flip-card-front .flip-title {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  padding: 10px 14px !important;
  background: #003660 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Back: whole description */
body #content .flip-card-back {
  transform: rotateY(180deg);
  display: flex !important;
  flex-direction: column !important;
  padding: 22px !important;
  background: #004b7d !important;
  color: #ffffff !important;
}
body #content .flip-card-back h4 {
  font-family: "Noto Serif", serif !important;
  font-size: 1.1rem !important;
  color: #ffffff !important;
  margin: 0 0 10px 0 !important;
}
body #content .flip-card-back p {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
}
body #content .flip-card-back a.flip-link {
  margin-top: auto !important;
  align-self: flex-start !important;
  padding: 8px 14px !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
}
body #content .flip-card-back a.flip-link:hover,
body #content .flip-card-back a.flip-link:focus {
  background: #ffffff !important;
  color: #004b7d !important;
  text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) { body #content .flip-card { transition: none; } }
@media (max-width: 768px) { body #content .flip-card { min-height: 400px !important; } }
/* Post headings always look the same, wherever the editor puts them */
body #content .hc-social h3,
body #content .hc-social h2 {
  font-family: "Noto Serif", serif !important;
  font-size: 1.3rem !important;
  text-align: left !important;
  margin: 0 0 14px 0 !important;
}
/* ===== REMOVE GAP UNDER THE HEADER ===== */
body .main-header,
body .main-navigation,
body .main-navigation .navigation {
  margin-bottom: 0 !important;
}

/* Space between the nav line and the page content.
   Change 10px to 0 for no gap at all, or raise it for more room. */
body #content {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

body #content .blocks,
body #content .blocks-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* The first block on every page (usually the page title) */
body #content .blocks-inner > .block:first-child,
body #content .blocks-inner > .block:first-child > *:first-child,
body #content .blocks-inner > .block:first-child h1,
body #content .blocks-inner > .block:first-child h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hidden top bar leaves a divider line behind */
body .main-header > hr.alignfull { display: none !important; }
/* ===== REMOVE GAP UNDER THE HERO BANNER ===== */
body #content .hc-hero {
  margin-bottom: 0 !important;
}

/* The block that holds the banner, and the block right after it */
body #content .block:has(.hc-hero) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body #content .block:has(.hc-hero) + .block {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Empty paragraphs the editor leaves behind */
body #content .hc-hero + p:empty,
body #content .block:has(.hc-hero) p:empty {
  display: none !important;
}
/* ===== TOP-OF-PAGE BANNERS: LOCKED SIZE =====
   Every banner is the same box: content width (max 1200px), 12:5 shape.
   The Home page photo (1200 x 500) fits exactly, uncropped. */

body #content .blocks-inner > .block:first-child:has(img),
body #content .blocks-inner > .block-pageTitle:first-child + .block:has(img) {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 20px auto !important;
  padding: 0 !important;
}

body #content .blocks-inner > .block:first-child:has(img) *,
body #content .blocks-inner > .block-pageTitle:first-child + .block:has(img) * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body #content .blocks-inner > .block:first-child img,
body #content .blocks-inner > .block-pageTitle:first-child + .block img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 12 / 5 !important;     /* locks the shape: 1200 wide = 500 tall */
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
}
/* ===== REMOVE DARK TINT FROM BANNER IMAGES ===== */
body #content .hc-hero::before,
body #content .hc-hero::after,
body #content .blocks-inner > .block:first-child::before,
body #content .blocks-inner > .block:first-child::after,
body #content .blocks-inner > .block:first-child *::before,
body #content .blocks-inner > .block:first-child *::after {
  background: none !important;
  display: none !important;
}

/* Keeps any white text on the banner readable without the tint */
body #content .hc-hero h1,
body #content .hc-hero p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}
/* ===== HEADER: LOGO + TITLE ALWAYS SIDE BY SIDE ===== */
html body .main-header .main-header__site-title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto 20px auto !important;
  float: none !important;
}

html body .main-header .main-header__site-title a {
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: clamp(10px, 2vw, 22px) !important;
  row-gap: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
}

/* Logo: circle spanning both title lines */
html body .main-header .main-header__site-title a img {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: clamp(58px, 13vw, 140px) !important;
  height: clamp(58px, 13vw, 140px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 8% 2% 4% 9% !important;     /* centers the courthouse in the circle */
  box-sizing: border-box !important;
  border-radius: 50% !important;
  border: 3px solid #004b7d !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 75, 125, 0.2) !important;
  object-fit: contain !important;
}

/* Line 1: The Heritage Center */
html body .main-header .main-header__site-title a::before {
  content: "The Heritage Center" !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: start !important;
  display: block !important;
  white-space: nowrap !important;
  font-family: "Noto Serif", serif !important;
  font-size: clamp(1.15rem, 5.2vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #c30613 !important;
  text-align: left !important;
  margin: 0 !important;
}

/* Line 2: of Murfreesboro and Rutherford County */
html body .main-header .main-header__site-title a::after {
  content: "of Murfreesboro and Rutherford County" !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: start !important;
  display: block !important;
  white-space: nowrap !important;
  font-family: "Noto Serif", serif !important;
  font-size: clamp(0.62rem, 2.75vw, 1.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #000000 !important;
  text-align: left !important;
  margin: 4px 0 0 0 !important;
}
/* ===== HOME PAGE BUTTONS ===== */
body #content .hc-btn-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 20px 0 30px 0 !important;
}

body #content a.hc-btn {
  display: inline-block !important;
  min-width: 200px !important;
  padding: 14px 28px !important;
  background: #004b7d !important;
  border: 2px solid #004b7d !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.06em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 75, 125, 0.2) !important;
  transition: transform 0.25s ease, background-color 0.25s ease !important;
}

body #content a.hc-btn:hover,
body #content a.hc-btn:focus {
  background: #c30613 !important;
  border-color: #c30613 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-4px) !important;
}

@media (max-width: 768px) {
  body #content a.hc-btn { width: 100% !important; }
}
/* ===== CENTER EACH BUTTON UNDER ITS IMAGE ===== */
body #content .hc-btn-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;   /* two columns, like the images */
  gap: 16px !important;
  justify-items: center !important;            /* centers each button in its column */
  margin: 20px 0 30px 0 !important;
}

@media (max-width: 768px) {
  body #content .hc-btn-row { grid-template-columns: 1fr !important; }
}
/* ===== REMOVE SPACE BETWEEN IMAGES AND BUTTONS ===== */
body #content .hc-btn-row {
  margin-top: -34px !important;
}

/* The block holding the buttons, and the block above it */
body #content .block:has(.hc-btn-row) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body #content .block:has(+ .block .hc-btn-row) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Empty paragraphs and trailing margins around them */
body #content .block:has(.hc-btn-row) p:empty,
body #content .block:has(+ .block .hc-btn-row) p:empty {
  display: none !important;
}
body #content .block:has(+ .block .hc-btn-row) > *:last-child,
body #content .block:has(+ .block .hc-btn-row) p:last-child {
  margin-bottom: 0 !important;
}/* ===== SHORTER TOP-OF-PAGE BANNERS, KEPT CLEAR OF TEXT =====
   To change the height, edit the 3 numbers in clamp():
   smallest height, height that grows with screen width, largest height. */
body #content .blocks-inner > .block:first-child img,
body #content .blocks-inner > .block-pageTitle:first-child + .block img {
  aspect-ratio: auto !important;
  height: clamp(160px, 25vw, 320px) !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  position: static !important;
  float: none !important;
  margin: 0 0 20px 0 !important;
  transform: none !important;
}

/* The banner block takes up only its own space; text below starts underneath it */
body #content .blocks-inner > .block:first-child:has(img),
body #content .blocks-inner > .block-pageTitle:first-child + .block:has(img) {
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  clear: both !important;
}

/* Text always draws on top of images */
body #content h1,
body #content h2,
body #content h3,
body #content p,
body #content .hc-btn-row {
  position: relative !important;
  z-index: 2 !important;
}
/* ===== BANNER BOX FITS THE PHOTO (no extra space) ===== */
body #content .hc-hero {
  display: grid !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

/* Photo and title share the same spot, title on top */
body #content .hc-hero > * {
  grid-area: 1 / 1 !important;
  position: relative !important;
  inset: auto !important;
}

body #content .hc-hero img {
  z-index: 0 !important;
  margin: 0 !important;
}

body #content .hc-hero h1,
body #content .hc-hero p {
  z-index: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 20px !important;
}

/* Remove the leftover gap around the banner block */
body #content .block:has(.hc-hero) {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

@media (max-width: 768px) {
  body #content .hc-hero { padding: 0 !important; }
}
/* ===== TOP BANNER: NO EXTRA SPACE, WHATEVER THE HTML SAYS ===== */
body #content .blocks-inner > .block:first-child:has(img),
body #content .blocks-inner > .block:first-child:has(img) *:not(img),
body #content .blocks-inner > .block-pageTitle:first-child + .block:has(img),
body #content .blocks-inner > .block-pageTitle:first-child + .block:has(img) *:not(img) {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Empty lines the editor leaves behind */
body #content .blocks-inner > .block:first-child:has(img) p:empty,
body #content .blocks-inner > .block:first-child:has(img) br,
body #content .blocks-inner > .block:first-child:has(img) + .block p:empty {
  display: none !important;
}

/* Small, even gap between the banner and the text below */
body #content .blocks-inner > .block:first-child:has(img) {
  margin-bottom: 20px !important;
}
body #content .blocks-inner > .block:first-child:has(img) + .block,
body #content .blocks-inner > .block:first-child:has(img) + .block > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =====================================================
   PHONE & CROSS-BROWSER FIXES (added Nov 22, 2026)
   ===================================================== */

/* Keep iPhones from enlarging text when the phone is turned sideways */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Partner logos: show the whole logo instead of cropping it */
.block-heading:has(#partners) + .block-html img {
  object-fit: contain !important;
  background-color: #fff !important;
}

@media (max-width: 768px) {
  /* Shorter partner-logo boxes on phones */
  .block-heading:has(#partners) + .block-html img { height: 120px !important; }

  /* Tighter header on phones so it takes less of the screen */
  body .main-header .main-header__main-bar.container { padding-top: 10px !important; }
  body .main-header .main-header__site-title { margin-bottom: 8px !important; }
  body .main-header .main-navigation__toggle { margin-top: 8px !important; margin-bottom: 8px !important; }
}

/* Cannonball exhibit: hide the Title row and match the photo's height to the description box */
.block-asset.grid-span-5 + .block-itemWithMetadata .property:first-child { display: none; }
@media screen and (min-width: 897px) {
  .block-asset.grid-span-5:has(+ .block-itemWithMetadata) { display: flex; flex-direction: column; }
  .block-asset.grid-span-5:has(+ .block-itemWithMetadata) .assets { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .block-asset.grid-span-5:has(+ .block-itemWithMetadata) .asset { flex: 1; display: flex; flex-direction: column; position: relative; }
  .block-asset.grid-span-5:has(+ .block-itemWithMetadata) .asset img { flex: 1 1 0; min-height: 0; width: 100%; max-height: none; object-fit: cover; }
  .block-asset.grid-span-5:has(+ .block-itemWithMetadata) .caption { position: absolute; top: 100%; left: 0; padding-top: 6px; }
}

/* Exhibits page: no extra space below the cannonball image block */
.block.flush-bottom {
  margin-bottom: 0;
}

/* Exhibits page: butter churn card styled to match the single-image carousel beside it */
#content .block.churn-block .churn-card {
  text-align: center;
}
#content .block.churn-block .churn-image {
  margin: 0 !important;
  line-height: 0 !important;
}
#content .block.churn-block .churn-image img {
  display: block;
  width: 100%;
  max-width: 406px !important;
  height: auto;
  margin: 0 auto;
}
#content .block.churn-block .churn-title {
  margin: 0 !important;
  padding: 10px 0 18px !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 18px !important;
  color: #004b7d;
}
#content .block.churn-block .churn-caption {
  margin: 0 0 16px !important;
  font-size: 18px !important;
  font-style: italic;
  line-height: 30.6px !important;
}

/* Exhibits page: one flip card with a picture on each side (Leaving for War / Coming Home) */
body #content .flip-grid.flip-grid-single {
  grid-template-columns: minmax(0, 772px) !important;
  grid-auto-rows: auto !important;
  justify-content: center !important;
}
body #content .flip-grid-single .flip-card {
  min-height: 0 !important;
}
body #content .flip-grid-single .flip-card-back {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: #ffffff !important;
  color: inherit !important;
  border: 1px solid #dddddd !important;
}
body #content .flip-grid-single .flip-img {
  position: relative !important;
  flex: 0 0 auto !important;
  aspect-ratio: 4 / 3;
  margin: 12px 12px 0 12px !important;
}
body #content .flip-grid-single .flip-img img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
body #content .flip-grid-single .flip-card-back .flip-title {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  padding: 10px 14px !important;
  background: #003660 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* About page: staff recommendation flip cards (front: whose recommendation; back: the recommendation) */
body #content .rec-card,
body #content .block-html > div.rec-card {
  perspective: 1000px;
  width: 100% !important;
  max-width: 360px !important;
  height: 190px;
  margin: 1.25rem 0;
  cursor: pointer;
  outline: none;
}
body #content .rec-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
body #content .rec-card:hover .rec-card-inner,
body #content .rec-card:focus .rec-card-inner,
body #content .rec-card:focus-within .rec-card-inner {
  transform: rotateY(180deg);
}
body #content .rec-card:focus-visible {
  outline: 2px solid #004b7d;
  outline-offset: 4px;
}
body #content .rec-card-front,
body #content .rec-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
body #content .rec-card-front {
  background: #004b7d;
  color: #ffffff;
}
body #content .rec-card-front .rec-card-title {
  font-family: "Noto Serif", serif;
  font-size: 1.3rem !important;
  font-weight: 700;
  line-height: 1.3 !important;
  color: #ffffff;
  margin: 0 0 0.5rem !important;
}
body #content .rec-card-front .rec-card-hint {
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
  margin: 0 !important;
}
body #content .rec-card-back {
  background: #ffffff;
  color: #000000;
  border: 3px solid #b3122b;
  transform: rotateY(180deg);
}
body #content .rec-card-back p {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
body #content .rec-card-back a {
  color: #004b7d;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  body #content .rec-card-inner { transition: none; }
}

/* About page flip cards — Safari fix: Safari can show the front's text through the back.
   Swap which side is visible halfway through the flip, and keep each side on its own layer. */
body #content .rec-card-inner {
  -webkit-transform-style: preserve-3d;
}
body #content .rec-card-front {
  -webkit-transform: rotateY(0deg) translateZ(1px);
  transform: rotateY(0deg) translateZ(1px);
  visibility: visible;
  transition: visibility 0s linear 0.3s;
}
body #content .rec-card-back {
  -webkit-transform: rotateY(180deg) translateZ(1px);
  transform: rotateY(180deg) translateZ(1px);
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
  -webkit-font-smoothing: antialiased;
}
body #content .rec-card:hover .rec-card-front,
body #content .rec-card:focus .rec-card-front,
body #content .rec-card:focus-within .rec-card-front {
  visibility: hidden;
}
body #content .rec-card:hover .rec-card-back,
body #content .rec-card:focus .rec-card-back,
body #content .rec-card:focus-within .rec-card-back {
  visibility: visible;
}
