/* Allow hero to break out of Cozy container */
.oc-content .oc-content-inner,
#content {
  overflow: visible !important;
}

/* Remove Cozy width constraints ONLY for hero block */
.oc-content .oc-content-inner #content .blocks,
.oc-content .oc-content-inner #content .blocks-inner,
.oc-content .oc-content-inner #content .block.block-html {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

/* HERO WRAPPER */
.hero-heritage {
  width: 100vw;
  height: 80vh;
  

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  background-image: url("http://168.167.139.21/omeka-s/files/asset/f5183fde8ed3e1960fcccbb270428e790b4075c7.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;

  color: #f4efe6;
}

/* DARK GRADIENT OVERLAY */
.hero-heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.20) 85%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;

}

/* INNER CONTENT */
.hero-inner {
  position: relative;
  z-index: 2;

  padding: 4.5rem 6rem;
  max-width: 860px;
}

/* TITLE */
.hero-inner h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 4vw, 4.5rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,.55)}

/* DESCRIPTION */
.hero-inner p {
    font-size: 1.2rem;
  line-height: 1.75;
  max-width: 680px;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin-top: 1rem;
  padding-left: 1.2rem;
  border-left: 3px solid #c2a25a; /* heritage gold accent */
  max-width: 640px;
}

/* CTA BUTTON GROUP */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* PRIMARY BUTTON */
.hero-actions .btn-primary {
  background: #c2a25a;
  color: #1e1b14;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.hero-actions .btn-primary:hover {
  background: #d2b46b;
}

/* SECONDARY BUTTON */
.hero-actions .btn-secondary {
  background: transparent;
  color: #f4efe6;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(244,239,230,0.7);
  border-radius: 3px;
  transition: all 0.25s ease;
}

.hero-actions .btn-secondary:hover {
  background: rgba(244,239,230,0.12);
}

/* Hide default page title */
.block-pageTitle {
  display: none;
}
.hero-inner {
  backdrop-filter: blur(1.5px);
}


/* MOBILE */
@media (max-width: 768px) {
  .hero-inner {
    padding: 3rem 2rem;
  }

  .hero-inner h1 {
    font-size: 2.5rem;
  }

  .hero-inner p {
    font-size: 1.15rem;
  }
}


/* =========================================
   FEATURED COLLECTIONS (Browse Preview)
   Match Heritage Hero / Mockup
   ========================================= */

/* Section spacing & background */
.block-browsePreview {
  padding: 4.5rem 6rem !important;
  margin: 0 !important;
  background: #f6f1e7; /* warm parchment */
}

/* Constrain inner content to look intentional */
.block-browsePreview .preview-block {
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading style */
.block-browsePreview h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 2rem 0;
  color: #2a231a;
}

/* Remove default list styling */
.block-browsePreview ul.resource-list.preview {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Card base */
.block-browsePreview .resource-list .resource {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(42,35,26,0.12);
  border-radius: 8px;
  overflow: hidden;

  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Hover = museum polish */
.block-browsePreview .resource-list .resource:hover {
  transform: translateY(-3px);
  border-color: rgba(42,35,26,0.22);
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

/* Make the link block-level for clean click area */
.block-browsePreview a.resource-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail image */
.block-browsePreview a.resource-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

/* Title */
.block-browsePreview .resource-name {
  display: block;
  padding: 1rem 1.1rem 0.4rem 1.1rem;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #231c14;
}

/* Description */
.block-browsePreview .description {
  padding: 0 1.1rem 1.2rem 1.1rem;
  color: rgba(35, 28, 20, 0.75);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* If a collection has no image, give a nice “artifact” placeholder panel */
.block-browsePreview .resource-link:not(:has(img)) {
  padding-top: 3.2rem;
  background:
    linear-gradient(180deg, rgba(35,28,20,0.06), rgba(35,28,20,0.02));
}

/* Make “Browse all” look like a heritage link button */
.block-browsePreview .preview-block > a {
  display: inline-block;
  margin-top: 2.2rem;

  text-decoration: none;
  font-weight: 600;
  color: #1e1b14;

  padding: 0.85rem 1.3rem;
  border-radius: 4px;

  background: #c2a25a; /* same as hero primary */
  transition: background 0.2s ease;
}

.block-browsePreview .preview-block > a:hover {
  background: #d2b46b;
}

/* Mobile layout */
@media (max-width: 1024px) {
  .block-browsePreview {
    padding: 3.5rem 2.5rem !important;
  }
  .block-browsePreview ul.resource-list.preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .block-browsePreview {
    padding: 3rem 1.5rem !important;
  }
  .block-browsePreview ul.resource-list.preview {
    grid-template-columns: 1fr;
  }
  .block-browsePreview a.resource-link img {
    height: 200px;
  }
}

/* =========================================
   GLOBAL BACKGROUND OVERRIDE (COZY)
   ========================================= */

/* True page background */
html,
body {
  background-color: #f6f1e7 !important; /* warm parchment */
}

/* Cozy main wrappers */
.oc-content,
.oc-content-inner,
.page,
#content {
  background-color: #f6f1e7 !important;
}

/* Ensure blocks inherit background */
.blocks,
.blocks-inner {
  background-color: transparent !important;
}


/* ===============================
   HEADER OVER HERO (COZY)
   =============================== */

/* Header floats over hero */
header {
  position: absolute;
  top: 5;
  bottom:5;
  left: 0;
  right: 0;

  background: transparent;
  z-index: 300;
}

/* Remove Cozy divider line over hero */
header::after {
  display: none;
}

/* Subtle dark fade for readability */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.0)
  );
  z-index: -1;
}

/* Header text on hero */
header h1,
header .site-title,
header nav a {
  color: #f6f1e7;
}

/* Navigation tone */
header nav a {
  opacity: 0.85;
  border-bottom: 1px solid transparent;
}

header nav a:hover,
header nav .active > a {
  opacity: 1;
  border-color: #c2a25a; /* heritage gold */
}

/* Give hero space for header */
.hero-heritage {
  padding-top: 7rem;
}

/* =========================================
   FORCE HERO BACKGROUND IMAGE (OVERRIDE COZY)
   ========================================= */

.hero-heritage {
  background-color: transparent !important;
  background-image: url("http://168.167.139.21/omeka-s/files/asset/f5183fde8ed3e1960fcccbb270428e790b4075c7.png") !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}
/* Dark overlay for hero background */
.hero-heritage {
  position: relative;
}

.hero-heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* Ensure text stays above overlay */
.hero-heritage > * {
  position: relative;
  z-index: 2;
}


/* Bring back header search */
header #search-form {
  display: flex !important;
  gap: .5rem;
  align-items: center;
}

/* =========================================
   HEADER AS A BAR (NOT OVER HERO) — DESKTOP
   ========================================= */
@media (min-width: 901px) {
  header {
    position: relative !important;   /* stop overlay */
    background: #f6f1e7 !important;  /* parchment */
    padding: 1.3rem 4rem !important; /* top/bottom spacing */
    z-index: 400;
  }

  /* remove overlay gradient if you had one */
  header::before {
    display: none !important;
  }

  /* header text colors for bar mode */
  header .site-title,
  header h1 a,
  header nav a {
    color: #1e1b14 !important;
  }

  /* keep nav nicely spaced */
  .site-navigation--horizontal ul {
    gap: 1.8rem !important;
  }
}

/* Give the hero content breathing room since header is no longer on top */
@media (min-width: 901px) {
  .hero-heritage {
    padding-top: 0 !important;
  }
}

/* =========================================
   HORIZONTAL MENU ON MOBILE TOO
   ========================================= */
@media (max-width: 900px) {
  header {
    position: relative !important;
    background: #f6f1e7 !important;
    padding: 1rem 1.25rem !important;
  }

  header::before {
    display: none !important;
  }

  /* title + search stack nicely */
  header {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* show nav as horizontal row that wraps */
  .site-navigation {
    display: block !important;
  }

  .site-navigation--horizontal ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.9rem 1.2rem !important;
    justify-content: flex-start !important;
  }

  .site-navigation--horizontal a {
    color: #1e1b14 !important;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
  }

  .site-navigation--horizontal a:hover,
  .site-navigation--horizontal .active > a {
    border-color: #c2a25a;
  }

  /* Keep search visible and neat */
  #search-form {
    display: flex !important;
    gap: .5rem;
  }

  #search-form input[type="text"] {
    width: 100%;
  }
}

/* =========================================
   HIDE HAMBURGER ALWAYS (since you want full nav)
   ========================================= */
#oc-trigger,
#menu-button {
  display: none !important;
}


/* =========================================
   DESKTOP HEADER — ONE LINE LAYOUT
   (DOES NOT AFFECT MOBILE)
   ========================================= */
@media (min-width: 901px) {

  /* Header becomes a proper bar */
  header {
    position: relative !important;
    background: #f6f1e7 !important;
    padding: 1.5rem 4rem !important;   /* top / bottom space */
    z-index: 300;
  }

  /* Remove any hero overlay effects on desktop header */
  header::before {
    display: none !important;
  }

  /* Turn header into a single horizontal row */
  header {
    display: flex !important;
    align-items: center !important;
    gap: 2.5rem !important;
  }

  /* Site title stays left */
  header h1 {
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  header .site-title {
    color: #1e1b14 !important;
  }

  /* Menu sits in the middle */
  .site-navigation {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .site-navigation--horizontal ul {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
  }

  .site-navigation--horizontal a {
    color: #1e1b14 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }

  .site-navigation--horizontal a:hover,
  .site-navigation--horizontal .active > a {
    border-color: #c2a25a;
   border-bottom-color: rgba(167,122,57,0.65);   /* warm accent */
  }

  /* Search pushed to the far right */
  #search-form {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0;
  }

  #search-form input[type="text"] {
    width: 220px;
  }
}
@media (min-width: 901px) {

  /* Site title — authoritative serif */
  header h1,
  .site-title {
    font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  /* Menu — light, editorial */
  .site-navigation--horizontal a {
    font-family: "Libre Baskerville", "Georgia", serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 901px) {

  /* Search container */
  #search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  /* Search input */
  #search-form input[type="text"] {
    background: #ffffff;
    border: 1px solid #d6c9ad;
    padding: 0.55rem 0.75rem;
    font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 0.85rem;
    color: #1e1b14;
    width: 220px;
  }

  #search-form input::placeholder {
    color: #7b6f5a;
  }

  /* Search button */
  #search-form button {
    background: #1e1b14;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
     padding-right: 1.25rem;
        font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    white-space: nowrap;
  }

  #search-form button:hover {
    background: #3a3326;
  }
}
@media (min-width: 901px) {
  header {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

/* Fix clipped Search button text */
#search-form button {
  min-width: 90px;          /* guarantees full word fits */
  padding: 0.6rem 1.2rem;   /* comfortable horizontal padding */
  white-space: nowrap;     /* prevents text wrapping/clipping */
  line-height: 1.2;
}

/* ================================
   MOBILE HEADER CONSISTENCY (Cozy)
   ================================ */
@media (max-width: 768px) {

  /* Header container */
  header {
    background: #f3efe6;                 /* warm paper */
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  /* Site title (fix invisible text) */
  header h1 {
    margin: 0 0 12px;
    line-height: 1.15;
  }
  header h1 .site-title {
    color: #1f1a14 !important;           /* ink */
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-block;
  }

  /* Search layout: input + button aligned, consistent heights */
  #search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
  }

  #search-form input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.18);
    background: #fbf7ef;
    color: #1f1a14;
    font-size: 16px;                     /* prevents iOS zoom */
    outline: none;
  }

  #search-form input::placeholder {
    color: rgba(31,26,20,0.55);
  }

  #search-form button {
    height: 44px;
    min-width: 98px;                     /* keeps “Search” readable */
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.30);
    background: #1f1a14;
    color: #fbf7ef;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }

  /* Mobile menu row */
  nav.site-navigation {
    margin-top: 6px;
  }

  nav.site-navigation .navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0;
    padding: 8px 0 2px;
    justify-content: center;             /* feels deliberate on mobile */
    list-style: none;
  }

  nav.site-navigation .navigation a {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(31,26,20,0.78);
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 1px solid rgba(31,26,20,0.20); /* subtle rule like mockup */
  }

  nav.site-navigation .navigation .active > a,
  nav.site-navigation .navigation a:hover {
    color: #1f1a14;
    border-bottom-color: rgba(167,122,57,0.65);   /* warm accent */
  }
}

/* ================================
   SEARCH BUTTON – HERITAGE STYLE
   ================================ */

/* Button base (desktop + mobile) */
#search-form button {
  background: rgba(31, 26, 20, 0.88);      /* warm charcoal */
  color: #f6f1e7;                          /* parchment */
  border: 1px solid rgba(31, 26, 20, 0.45);
  border-radius: 8px;
  padding: 0 18px;
  min-width: 110px;
  height: 44px;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;

  cursor: pointer;
  transition: 
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

/* Hover (desktop) */
#search-form button:hover {
  background: #1f1a14;                    /* deeper ink */
  border-color: rgba(167, 122, 57, 0.75); /* heritage gold */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Active / pressed */
#search-form button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

/* Focus (keyboard accessibility) */
#search-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 122, 57, 0.35);
}

/* ================================
   HEADER DIVIDER (DESKTOP ONLY)
   ================================ */

@media (min-width: 1024px) {

  header {
    position: relative;
    padding-bottom: 28px; /* breathing room above divider */
  }

  header::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;

    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(167, 122, 57, 0.55),
      transparent
    );
  }

}


/* =========================================
   NAV UNDERLINE: REMOVE ALL, KEEP ACTIVE ONLY
   Targets: <ul class="navigation"> ... </ul>
   ========================================= */

/* 1) Remove any underline coming from LI */
.site-navigation ul.navigation > li,
ul.navigation > li {
  border: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* 2) Remove any underline coming from A */
.site-navigation ul.navigation > li > a,
ul.navigation > li > a {
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 3) If the theme draws lines using pseudo elements */
.site-navigation ul.navigation > li > a::after,
ul.navigation > li > a::after,
.site-navigation ul.navigation > li::after,
ul.navigation > li::after {
  content: none !important;
  display: none !important;
}

/* 4) Active only */
.site-navigation ul.navigation > li.active > a,
ul.navigation > li.active > a {
  border-bottom: 2px solid #a77a39 !important;
  padding-bottom: 6px;
}

.site-navigation ul.navigation > li > a:hover {
  color: #a77a39 !important; /* heritage gold */
}

.site-navigation ul.navigation > li > a {
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* === ABOUT THE MUSEUM SECTION === */

.about-museum{
  background: #f6f1e6; /* warm parchment */
  padding: clamp(3rem, 6vw, 6rem) 1.5rem;
}

.about-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* TEXT SIDE */
.about-text h2{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.about-text p{
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a342c;
  margin-bottom: 1.2rem;
  max-width: 520px;
}

/* ACTION BUTTONS */
.about-actions{
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* IMAGE SIDE */
.about-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  filter: sepia(.18) contrast(1.05) saturate(.95);
}

/* === MOBILE STACKING === */
@media (max-width: 900px){
  .about-inner{
    grid-template-columns: 1fr;
  }

  .about-text p{
    max-width: 100%;
  }

  .about-media{
    order: -1; /* image first on mobile */
  }
}

/* === GLOBAL BUTTON STYLES (HERITAGE THEME) === */

.btn-primary,
.btn-secondary,
#search-form button {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

/* PRIMARY BUTTON (Heritage Gold) */
.btn-primary {
  background: #8c6a2f; /* warm heritage gold */
  color: #fff;
  border-color: #8c6a2f;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #6f5325;
  border-color: #6f5325;
  transform: translateY(-1px);
}

/* SECONDARY BUTTON (Outlined / Subtle) */
.btn-secondary {
  background: transparent;
  color: #8c6a2f;
  border-color: #8c6a2f;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(140, 106, 47, 0.08);
  color: #6f5325;
  border-color: #6f5325;
  transform: translateY(-1px);
}

/* BUTTON SPACING WHEN GROUPED */
.hero-actions a,
.about-actions a {
  margin-top: 0.5rem;
}


/* SEARCH BUTTON MATCH */
#search-form button {
  background: #3a342c;
  color: #fff;
  border-color: #3a342c;
}

#search-form button:hover {
  background: #1f1b16;
  border-color: #1f1b16;
}

/* ===============================
   PUBLICATIONS SECTION (HOME)
   Works with Browse Preview block
   =============================== */

.pubs-intro {
  padding: clamp(2.8rem, 4vw, 4rem) 0 1.5rem;
  background: transparent;
}

.pubs-wrap {
  max-width: 1200px;
  margin: 0 auto;
margin-top: 80px;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.pubs-heading h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.pubs-heading p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.7;
  opacity: 0.92;
}

.pubs-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-botto: 50px;
}

/* Target only the Browse Preview block that follows Publications */
.block-browsePreview {
  padding: 2rem 0 4rem !important;
  background: transparent !important;
}

.block-browsePreview .preview-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hide the default Browse Preview title if it repeats */
.block-browsePreview .preview-block > h2 {
  display: none;
}

/* Publications grid */
.block-browsePreview ul.resource-list.preview {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

/* Publication card */
.block-browsePreview .resource-list .resource {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(42,35,26,0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.block-browsePreview .resource-list .resource:hover {
  transform: translateY(-3px);
  border-color: rgba(42,35,26,0.22);
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

/* Thumbnail as "book cover" */
.block-browsePreview a.resource-link img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,0.04);
}

/* Title */
.block-browsePreview .resource-name {
  display: block;
  padding: 0.95rem 1rem 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #231c14;
}

/* Description */
.block-browsePreview .description {
  padding: 0 1rem 1rem;
  color: rgba(35, 28, 20, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* "Browse all" link style */
.block-browsePreview .preview-block > a {
  display: inline-block;
  margin-top: 1.6rem;
  text-decoration: none;
  font-weight: 600;

  padding: 0.8rem 1.2rem;
  border-radius: 10px;

  background: rgba(31,26,20,0.88);
  color: #f6f1e7;
}

/* Responsive */
@media (max-width: 1024px) {
  .block-browsePreview ul.resource-list.preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pubs-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .block-browsePreview ul.resource-list.preview {
    grid-template-columns: 1fr;
  }

  .block-browsePreview a.resource-link img {
    height: 220px;
  }
}


/* ===============================
   VISIT THE MUSEUM (Heritage)
   =============================== */

.visit-museum{
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(42,35,26,0.10);
  border-bottom: 1px solid rgba(42,35,26,0.10);
}

.visit-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.visit-copy h2{
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.visit-lede{
  margin: 0 0 1.2rem;
  line-height: 1.75;
  opacity: 0.92;
  max-width: 62ch;
}

.visit-meta{
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: .65rem;
}

.visit-meta li{
  padding-left: 0;
  line-height: 1.55;
  color: rgba(35,28,20,0.90);
}

.visit-meta strong{
  color: rgba(35,28,20,0.98);
}

.visit-actions{
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

/* Right card */
.visit-card{
  background: rgba(246,241,231,0.75);
  border: 1px solid rgba(42,35,26,0.14);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
  overflow: hidden;
}

.visit-card-inner{
  padding: 1.4rem 1.4rem 1.2rem;
}

.visit-card h3{
  margin: 0 0 1rem;
  font-size: 1.1rem;
  letter-spacing: .02em;
}

.visit-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}

.visit-box{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(42,35,26,0.10);
  border-radius: 10px;
  padding: .85rem .9rem;
}

.visit-label{
  display: block;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .70;
  margin-bottom: .2rem;
}

.visit-value{
  display: block;
  font-weight: 700;
  color: rgba(35,28,20,0.95);
}

.visit-note{
  margin: 0;
  line-height: 1.6;
  opacity: .85;
}

/* Responsive */
@media (max-width: 900px){
  .visit-inner{
    grid-template-columns: 1fr;
  }
}

/* ===============================
   FOOTER FULL-WIDTH (same method as hero)
   =============================== */

footer{
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  background: #1f1a13;
  color: rgba(255,255,255,.78);

  padding: 3.5rem 0 2rem;
  box-sizing: border-box;
}

/* keep footer content aligned nicely */
footer .footer-inner,
footer .footer-bottom{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* layout + typography (matches your heritage tone) */
footer .footer-inner{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2rem;
}

footer .footer-col h4{
  margin: 0 0 1rem;
  color: #c2a25a; /* same gold as hero primary */
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .95rem;
}

footer .footer-col p,
footer .footer-col ul li{
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  font-size: .95rem;
}

footer .footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-col a{
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s ease;
}

footer .footer-col a:hover{
  color: #ffffff;
}

/* bottom strip */
footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 1.25rem;
  text-align: center;
}

footer .footer-bottom p{
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

/* responsive */
@media (max-width: 980px){
  footer .footer-inner{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  footer .footer-inner{ grid-template-columns: 1fr; }
  footer .footer-bottom{ text-align: left; }
}


/* ===============================
   FOOTER FULL-WIDTH OVERRIDE (FORCE)
   =============================== */

/* Force the footer breakout even inside oc-content-inner wrappers */
.oc-content-inner > footer,
.oc-content > footer,
.oc-pusher footer,
#oc-container footer,
footer {
  width: 100vw !important;
  max-width: none !important;

  position: relative !important;
  left: 50% !important;
  right: auto !important;

  transform: translateX(-50%) !important;

  margin: 0 !important;
  padding: 3.5rem 0 2rem !important;

  background: #1f1a13 !important;
  color: rgba(255,255,255,.78) !important;
  box-sizing: border-box !important;
}

/* Stop parent containers from clipping the breakout */
.oc-content-inner,
.oc-content,
.oc-container,
.oc-pusher {
  overflow-x: visible !important;
}

/* Prevent page-level horizontal scroll */
html, body {
  overflow-x: hidden !important;
}


/* ===============================
   FEATURED COLLECTIONS MATCH PUBLICATIONS
   =============================== */

.block-browsePreview .resource-list.preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.block-browsePreview .resource-list.preview li {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.block-browsePreview .resource-list.preview li:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.08);
}

.block-browsePreview .resource-list.preview img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.block-browsePreview .resource-name {
  display: block;
  padding: 1.25rem 1.25rem 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: #2b2418;
}

.block-browsePreview .description {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(43,36,24,.75);
  line-height: 1.6;
}

.block-browsePreview > a {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  background: #c2a25a;
  color: #1e1b14;
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
  transition: background .25s ease;
}

.block-browsePreview > a:hover {
  background: #d2b46b;
}


/* =========================================================
   ITEMS BROWSE PAGE REFINEMENT (Omeka S / Cozy)
   Makes browse list match your homepage card look
   ========================================================= */

/* Page background already warm; keep browse area consistent */
body.browse {
  background: #f3efe6;
}

/* Tidy the "Items" heading */
body.browse #content > h2,
body.browse #content h2:first-of-type {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
  color: #2b2418;
  margin-bottom: 1.25rem;
}

/* ===== Toolbar / controls (pagination + search + sort) ===== */
body.browse .pagination,
body.browse .browse-controls,
body.browse .browse-controls form {
  font-family: Georgia, "Times New Roman", serif;
}

/* Button style for Advanced search + other buttons */
body.browse a.advanced-search,
body.browse .browse-controls a,
body.browse .browse-controls button,
body.browse .browse-controls input[type="submit"],
body.browse .pagination a {
  display: inline-block;
  background: #2b2418;
  color: #f4efe6 !important;
  border: 1px solid rgba(255,255,255,.15);
  padding: .65rem 1rem;
  border-radius: 3px;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}

body.browse a.advanced-search:hover,
body.browse .browse-controls a:hover,
body.browse .browse-controls button:hover,
body.browse .browse-controls input[type="submit"]:hover,
body.browse .pagination a:hover {
  background: #3a3124;
  transform: translateY(-1px);
}

/* Make selects feel nicer */
body.browse .browse-controls select {
  padding: .55rem .7rem;
  border-radius: 3px;
  border: 1px solid rgba(43,36,24,.25);
  background: #fbf8f1;
}

/* ===== Convert list layout to grid cards ===== */
body.browse ul.resource-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Card */
body.browse ul.resource-list > li.resource {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
  padding: 0; /* remove default list padding */
}

body.browse ul.resource-list > li.resource:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,.08);
}

/* Make the whole card clickable feel (link block) */
body.browse ul.resource-list > li.resource a.resource-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail: force consistent height and crop */
body.browse ul.resource-list > li.resource img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Title */
body.browse ul.resource-list > li.resource .resource-name {
  display: block;
  padding: 1rem 1.1rem .4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: #2b2418;
}

/* Description / snippet */
body.browse ul.resource-list > li.resource .description {
  padding: 0 1.1rem 1.1rem;
  color: rgba(43,36,24,.72);
  font-size: .98rem;
  line-height: 1.6;
}

/* If there is no description, keep spacing clean */
body.browse ul.resource-list > li.resource .description:empty {
  display: none;
}

/* Remove old horizontal separators if theme adds them */
body.browse ul.resource-list > li.resource {
  border-bottom: none;
}

/* ===== Mobile tuning ===== */
@media (max-width: 520px) {
  body.browse ul.resource-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  body.browse ul.resource-list > li.resource img {
    height: 220px;
  }
}


/* ===== Fix select text vertical clipping (desktop Chrome) ===== */
.oc-content-inner form.sorting select,
.oc-content-inner form.sorting button[type="submit"]{
  height: auto !important;           /* remove forced small height */
  min-height: 44px !important;       /* consistent tap/desktop height */
  line-height: 44px !important;      /* centers text vertically */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* If the theme forces a tiny font-size, normalize it */
.oc-content-inner form.sorting select{
  font-size: 16px !important;
}

/* Optional: keep button aligned perfectly with selects */
.oc-content-inner form.sorting{
  align-items: center !important;
}

.pdf-viewer{
  margin: 2.25rem 0 0;
  padding: 1.5rem;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
}

.pdf-actions{
  display:flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pdf-iframe{
  width: 100%;
  height: 78vh;
  border: 0;
  border-radius: 10px;
  background: #fff;
}




/* =========================================================
   PREMIUM HERITAGE — ITEM PAGE (Cozy / Omeka S)
   Targets: body.item.show + your existing HTML structure
   ========================================================= */

/* --- Page spacing + typography baseline --- */
body.item.show #content {
  padding-top: 1.25rem;
}

body.item.show .resource-title,
body.item.show .resource-title h2,
body.item.show h2,
body.item.show h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

/* --- Reduce the "type" badge visual noise a bit --- */
body.item.show .resource-title .resource-type.label {
  background: #1f1a13;
  color: #f4efe6;
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .85rem;
  margin-left: .6rem;
}

/* =========================================================
   2-COLUMN CATALOG LAYOUT
   Left: media (sticky), Right: details/sets/media cards
   ========================================================= */
@media (min-width: 980px) {
  body.item.show .with-sidebar {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 2.25rem;
    align-items: start;
  }

  /* left column media becomes sticky, feels premium */
  body.item.show .with-sidebar .media-embeds {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* =========================================================
   MEDIA PANEL (LEFT)
   ========================================================= */
body.item.show .media-embeds {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* your media render wrapper */
body.item.show .media-embeds .media-render {
  position: relative;
  margin: 0;
}

/* image preview */
body.item.show .media-embeds img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Add a warm overlay + vignette feel (subtle) */
body.item.show .media-embeds .media-render::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.10) 65%,
    rgba(0,0,0,.18) 100%
  );
}

/* =========================================================
   MEDIA BADGE — VIEW + ICON
   ========================================================= */

body.item.show .media-embeds .media-render > a::before {
  content: "👁  VIEW";
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: .5rem;

  background: #8b6a2a;   /* heritage gold */
  color: #f7f1e6;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);

  padding: .85rem 1.2rem;
  border-radius: 999px;

  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.item.show .media-embeds .media-render > a:hover::before {
  background: #9b7630;
  transform: translateY(-1px);
}

/* =========================================================
   RIGHT COLUMN = CARDS (Details / Item sets / Media list)
   ========================================================= */
body.item.show .with-sidebar > dl,
body.item.show dl.item-sets,
body.item.show dl.media-list {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 18px;
  padding: 1.6rem 1.6rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
  margin: 0 0 1.25rem 0;
}

/* make the first dl (Title/Description) feel like a main details card */
body.item.show .with-sidebar > dl:not(.item-sets):not(.media-list) {
  padding: 1.8rem 1.8rem;
}

/* DT labels = small caps style */
body.item.show dl dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  opacity: .72;
  margin-bottom: .35rem;
}

/* DD values = comfortable reading */
body.item.show dl dd.value {
  margin: 0 0 1.1rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Title value styling */
body.item.show dl .property:first-child dd.value .value-content {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: .01em;
  color: #1f1a13;
}

/* Description value a bit softer */
body.item.show dl .property dd.value .value-content {
  color: rgba(31,26,19,.90);
}

/* =========================================================
   ITEM SETS AS “TAGS” (fills white space horizontally)
   ========================================================= */
body.item.show dl.item-sets dd.value {
  margin: .65rem .6rem 0 0;
  display: inline-block;
}

body.item.show dl.item-sets dd.value a {
  display: inline-block;
  padding: .62rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
  color: rgba(31,26,19,.92);
  font-weight: 600;
}

body.item.show dl.item-sets dd.value a:hover {
  background: rgba(155,118,48,.14);
  border-color: rgba(155,118,48,.35);
}

/* =========================================================
   MEDIA LIST = BIG CTA BUTTON(S)
   (Your HTML: dl.media-list dd.value a.resource-link ...)
   ========================================================= */
body.item.show dl.media-list dd.value {
  margin: .85rem 0 0 0;
}

body.item.show dl.media-list a.resource-link {
  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.1rem;
  border-radius: 14px;

  background: #8b6a2a; /* heritage gold */
  color: #f7f1e6 !important;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

body.item.show dl.media-list a.resource-link:hover {
  background: #9b7630;
  transform: translateY(-1px);
}

body.item.show dl.media-list a.resource-link img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
}

body.item.show dl.media-list a.resource-link .resource-name {
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.05rem;
}

/* =========================================================
   ITEM PAGE: FORCE WIDER LAYOUT + FIX "TINY" DETAILS COLUMN
   (Cozy theme overrides)
   ========================================================= */

/* 1) Let the item page content area be wider (theme often caps it) */
@media (min-width: 980px) {
  body.item.show .oc-content-inner,
  body.item.show #content {
    max-width: 1400px !important;  /* increase/decrease if you want */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 2) Turn the item area into a proper 2-column grid */
@media (min-width: 980px) {
  body.item.show .with-sidebar {
    display: grid !important;
    grid-template-columns: minmax(480px, 46%) minmax(520px, 54%) !important;
    align-items: start !important;
    gap: 2.25rem !important;
  }

  /* Left: media */
  body.item.show .with-sidebar .media-embeds {
    grid-column: 1 !important;
  }

  /* Right: ALL metadata blocks */
  body.item.show .with-sidebar > dl,
  body.item.show .with-sidebar dl.item-sets,
  body.item.show .with-sidebar dl.media-list {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1.25rem 0 !important;
  }
}

/* 3) If Cozy is applying a max-width/min-width to dl/property wrappers, kill it */
body.item.show .with-sidebar dl,
body.item.show .with-sidebar .property,
body.item.show .with-sidebar dd.value,
body.item.show .with-sidebar .value-content {
  max-width: none !important;
  min-width: 0 !important;
}

/* 4) Optional: make the right column feel “premium” and not cramped */
@media (min-width: 980px) {
  body.item.show .with-sidebar > dl,
  body.item.show .with-sidebar dl.item-sets,
  body.item.show .with-sidebar dl.media-list {
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 30px rgba(0,0,0,.06);
  }

  body.item.show .with-sidebar dt {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .78rem;
    opacity: .75;
    margin-bottom: .5rem;
  }

  body.item.show .with-sidebar dd.value {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    line-height: 1.55;
  }
}

/* ===================================================
   ITEM PAGE — CLEAN 2 COLUMN NO GAP LAYOUT
   =================================================== */

@media (min-width: 980px) {

  body.item.show .with-sidebar {
    display: grid !important;
    grid-template-columns: 48% 52%;
    gap: 2rem;
    align-items: start;
  }

  /* LEFT SIDE — MEDIA */
  body.item.show .media-embeds {
    grid-column: 1;
  }

  /* RIGHT SIDE — STACK EVERYTHING */
  body.item.show .with-sidebar > dl,
 body.item.show .with-property,
  body.item.show .with-sidebar dl.item-sets,
  body.item.show .with-sidebar dl.media-list {
    grid-column: 2;
    width: 100%;
    margin: 0 0 1.5rem 0;
        margin-bottom: 1.25rem;
  }

  /* THIS FIXES THE BIG GAP ISSUE */
  body.item.show .with-sidebar {
    grid-auto-rows: auto !important;
  }

  body.item.show .with-sidebar > * {
    align-self: start !important;
  
  }
}



.resource-show .property {
  margin-bottom: 10px;
}

.resource-show dt {
  margin-bottom: 2px;
  font-size: 0.85rem;
  opacity: .7;
  letter-spacing: .05em;
}

.resource-show dd {
  margin: 0;
}

/* =========================================================
   FIX: Remove large vertical gap by stacking right column
   independently from left media in the grid.
   ========================================================= */

@media (min-width: 980px) {
  /* 1) Keep the main 2-col grid */
  body.item.show .with-sidebar {
    display: grid !important;
    grid-template-columns: minmax(480px, 46%) minmax(520px, 54%) !important;
    column-gap: 2.25rem !important;
    row-gap: 0 !important; /* key */
    align-items: start !important;
  }

  /* 2) Make ALL right-side blocks flow in one column without
        being forced into grid rows with the left media */
  body.item.show .with-sidebar > dl,
  body.item.show .with-sidebar dl.item-sets,
  body.item.show .with-sidebar dl.media-list {
    grid-column: 2 !important;
  }

  /* 3) FORCE them to stack tightly */
  body.item.show .with-sidebar > dl { 
    margin-top: 0 !important;
  }

  /* 4) The real trick: don't let grid rows be defined by left media */
  body.item.show .with-sidebar .media-embeds {
    grid-row: 1 / span 99 !important; /* left spans down */
  }

  body.item.show .with-sidebar > dl,
  body.item.show .with-sidebar dl.item-sets,
  body.item.show .with-sidebar dl.media-list {
    grid-row: auto !important;         /* right stacks naturally */
    align-self: start !important;
  }
}

/* =========================================================
   MEDIA PAGE — MATCH ITEM PAGE PREMIUM HERITAGE STYLE
   ========================================================= */

/* Wider layout like item page */
@media (min-width: 980px) {
  body.media.show .oc-content-inner,
  body.media.show #content {
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.media.show .with-sidebar {
    display: grid !important;
    grid-template-columns: minmax(480px, 46%) minmax(520px, 54%) !important;
    column-gap: 2.25rem !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  /* Left = media */
  body.media.show .with-sidebar .media-embeds,
  body.media.show .with-sidebar .media-render {
    grid-column: 1 !important;
    position: sticky;
    top: 120px;
  }

  /* Right = metadata cards */
  body.media.show .with-sidebar > dl,
  body.media.show .with-sidebar dl {
    grid-column: 2 !important;
    margin: 0 0 1.25rem 0 !important;
  }

  /* Make left span so right stacks tight */
  body.media.show .with-sidebar .media-embeds {
    grid-row: 1 / span 99 !important;
  }
}

/* =========================================================
   MEDIA PANEL (LEFT)
   ========================================================= */

body.media.show .media-embeds,
body.media.show .media-render {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

body.media.show .media-render img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   METADATA CARDS (RIGHT)
   ========================================================= */

body.media.show dl {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 30px rgba(0,0,0,.06);
}

body.media.show dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .75;
  margin-bottom: .5rem;
}

body.media.show dd.value {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Media title styling */
body.media.show dl .property:first-child dd.value .value-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: .01em;
}

/* =========================================================
   MEDIA PAGE — Vertically center first metadata card
   ========================================================= */

@media (min-width: 980px) {

  /* Make right column a flex column */
  body.media.show .with-sidebar {
    align-items: stretch !important;
  }

  /* Target first metadata block (Title card) */
  body.media.show .with-sidebar > dl:first-of-type {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

}

/* =========================================================
   MEDIA PAGE — MOBILE TITLE FIX
   ========================================================= */
@media (max-width: 979px) {

  /* Reduce the big title text inside the first metadata card */
  body.media.show dl .property:first-child dd.value .value-content {
    font-size: 1.55rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Tighten spacing so "TITLE" label + value don't overlap */
  body.media.show dl dt {
    margin-bottom: .35rem !important;
  }

  body.media.show dl dd.value {
    margin: 0 !important;
  }

  /* Make the card padding a bit tighter on mobile */
  body.media.show dl {
    padding: 1.1rem 1.15rem !important;
  }
}


@media (max-width: 979px) {
  body.media.show dl .property:first-child dd.value {
    text-align: center;
  }
}


/* =========================================================
   BROWSE PAGE INTRO STYLING
   ========================================================= */

.archive-intro {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.archive-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: .01em;
}

.archive-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: .85;
}

/* =========================================================
   BROWSE PAGE SHORTCUT BUTTONS
   ========================================================= */

.browse-shortcuts {
  margin: 2rem auto 3rem auto;
  text-align: center;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .85rem 1.4rem;
  margin: .5rem .6rem;

  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;

  text-decoration: none;
  transition: all .25s ease;
}

/* PRIMARY — Heritage Gold */
.browse-btn.primary {
  background: #8b6a2a;
  color: #f7f1e6;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
}

.browse-btn.primary:hover {
  background: #9b7630;
  transform: translateY(-2px);
}

/* SECONDARY — Soft Institutional */
.browse-btn.secondary {
  background: rgba(255,255,255,.35);
  color: #1f1a13;
  border: 1px solid rgba(0,0,0,.15);
}

.browse-btn.secondary:hover {
  background: rgba(155,118,48,.12);
  border-color: rgba(155,118,48,.4);
  transform: translateY(-2px);
}

/* Mobile stack */
@media (max-width: 600px) {
  .browse-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: .6rem auto;
  }
}

/* =========================================================
   BROWSE PAGE (block-browsePreview) — PREMIUM CARD FIX
   Targets: .preview-block > ul.resource-list.preview > li.item.resource
   ========================================================= */

.block-browsePreview .preview-block .resource-list.preview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 1.6rem !important;
  margin: 1.25rem 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Card */
.block-browsePreview .preview-block .resource-list.preview > li.item.resource {
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Hover */
.block-browsePreview .preview-block .resource-list.preview > li.item.resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,.10);
  border-color: rgba(155,118,48,.25);
}

/* Make the whole top area clickable and structured */
.block-browsePreview .preview-block .resource-list.preview a.resource-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.block-browsePreview .preview-block .resource-list.preview a.resource-link img {
  width: 100%;
  height: 220px;        /* consistent height */
  object-fit: cover;
  display: block;
}

/* Title */
.block-browsePreview .preview-block .resource-list.preview a.resource-link .resource-name {
  display: block;
  padding: 1rem 1.15rem .15rem 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #1f1a13;
}

/* Description */
.block-browsePreview .preview-block .resource-list.preview > li.item.resource .description {
  padding: 0 1.15rem 1.15rem 1.15rem;
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
  opacity: .82;
}

/* If an item has no description, keep bottom padding consistent */
.block-browsePreview .preview-block .resource-list.preview > li.item.resource:not(:has(.description)) a.resource-link .resource-name {
  padding-bottom: 1rem;
}

/* Browse all link styling */
.block-browsePreview .preview-block > a[href*="/item"] {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.35);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}

.block-browsePreview .preview-block > a[href*="/item"]:hover {
  background: rgba(155,118,48,.12);
  border-color: rgba(155,118,48,.35);
  transform: translateY(-1px);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .block-browsePreview .preview-block .resource-list.preview a.resource-link img {
    height: 190px;
  }
}

.block-browsePreview 
.resource-list.preview 
a.resource-link {
  display: flex;
  flex-direction: column;
}

.block-browsePreview 
.resource-list.preview 
a.resource-link img {
  display: block;
}

.block-browsePreview 
.resource-list.preview 
a.resource-link .resource-name {
  padding: 1rem 1.15rem 0 1.15rem;
}

.block-browsePreview .resource-list.preview a.resource-link .resource-name {
  display: block;
  padding: 1.1rem 1.15rem 0.2rem 1.15rem;  /* top padding creates the gap */
}

/* Space between image and title on browse cards */
.block-browsePreview .resource-list.preview a.resource-link img {
  display: block;                 /* removes inline gap issues */
}

.block-browsePreview .resource-list.preview a.resource-link .resource-name {
  display: block;                 /* allows vertical spacing */
  padding-top: 0.85rem;           /* space below image */
}


/* =========================================================
   GLOBAL BROWSE PAGE FONT FIX
   Matches premium Browse-archive styling
   ========================================================= */

/* Target default /item browse page */
body.items.browse .resource-list .resource-name,
body.items.browse .resource-list h4,
body.items.browse .resource-list .resource-link .resource-name {

  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
  color: #1f1a13 !important;
}

/* Description under title */
body.items.browse .resource-list .description {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  opacity: .82 !important;
  color: #1f1a13 !important;
}

/* Ensure consistent padding */
body.items.browse .resource-list .resource-name {
  display: block;
  padding: 1rem 1.15rem .2rem 1.15rem;
}

body.items.browse .resource-list .description {
  padding: 0 1.15rem 1.15rem 1.15rem;
}

/* =========================================================
   FORCE Browse-archive card title to match GLOBAL browse fonts
   (preview-block cards inside block-browsePreview)
   ========================================================= */

.block-browsePreview .preview-block ul.resource-list.preview li.item.resource
a.resource-link .resource-name {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
  font-weight: 500 !important;
  color: #1f1a13 !important;

  /* keep your spacing between image and title */
  display: block !important;
  padding: 1.1rem 1.15rem 0.2rem 1.15rem !important;
}

.block-browsePreview .preview-block ul.resource-list.preview li.item.resource .description {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  opacity: .82 !important;
  color: #1f1a13 !important;
  padding: 0 1.15rem 1.15rem 1.15rem !important;
}

/* =========================================================
   BROWSE-ARCHIVE — FIX "Browse all" + Page "Prev" button styles
   ========================================================= */

/* --- Browse all (inside preview block) --- */
.block-browsePreview .preview-block > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin-top: 2rem !important;
  padding: 0.85rem 1.35rem !important;
  border-radius: 999px !important;

  background: rgba(31, 26, 20, 0.88) !important; /* warm charcoal */
  color: #f6f1e7 !important;                      /* parchment */
  border: 1px solid rgba(31, 26, 20, 0.45) !important;

  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;

  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease !important;
}

.block-browsePreview .preview-block > a:hover {
  background: #1f1a14 !important;
  border-color: rgba(167, 122, 57, 0.75) !important; /* heritage gold */
  box-shadow: 0 10px 22px rgba(0,0,0,0.15) !important;
  transform: translateY(-2px) !important;
}


/* --- Page Prev/Next buttons (site page pagination) --- */
.site-page-pagination {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1.5rem;
}

.site-page-pagination a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0.85rem 1.35rem !important;
  border-radius: 999px !important;

  background: rgba(255,255,255,.35) !important;
  color: #1f1a14 !important;
  border: 1px solid rgba(0,0,0,.15) !important;

  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;

  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease !important;
}

.site-page-pagination a:hover {
  background: rgba(155,118,48,.12) !important;
  border-color: rgba(155,118,48,.40) !important;
  transform: translateY(-2px) !important;
}

/* Mobile: full-width buttons */
@media (max-width: 600px) {
  .block-browsePreview .preview-block > a,
  .site-page-pagination a {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 4 columns desktop */
@media (min-width: 1200px) {
  .block-browsePreview .preview-block .resource-list.preview {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 3 columns tablet */
@media (min-width: 900px) and (max-width: 1199px) {
  .block-browsePreview .preview-block .resource-list.preview {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* 2 columns small tablet */
@media (min-width: 600px) and (max-width: 899px) {
  .block-browsePreview .preview-block .resource-list.preview {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 1 column mobile */
@media (max-width: 599px) {
  .block-browsePreview .preview-block .resource-list.preview {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   ABOUT PAGE — HERITAGE LAYOUT
   ========================================================= */

.about-hero {
  padding: clamp(3rem, 5vw, 5rem) 1.5rem;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(42,35,26,0.10);
  border-radius: 16px;
  max-width: 1200px;
  margin: 2rem auto 2.5rem auto;
  box-shadow: 0 18px 30px rgba(0,0,0,.06);
}

.about-hero-inner h2 {
  margin: 0 0 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: .01em;
  color: #1f1a14;
}

.about-hero-inner p {
  margin: 0;
  max-width: 70ch;
  line-height: 1.75;
  opacity: .88;
  font-size: 1.08rem;
}

.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 16px 28px rgba(0,0,0,.06);
}

.about-card.wide {
  padding: 1.7rem 1.8rem;
}

.about-card h3 {
  margin: 0 0 .9rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
  color: #1f1a14;
}

.about-card p {
  margin: 0 0 1rem 0;
  line-height: 1.75;
  opacity: .9;
}

.about-card p.muted {
  opacity: .75;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.75;
  opacity: .9;
}

.about-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   ABOUT PAGE — CLEAN SPACING + CARD RHYTHM FIX
   ========================================================= */

/* Section spacing */
.about-section {
  margin-bottom: 2.5rem;
}

/* Grid gap tuning */
.about-grid {
  gap: 2rem !important;
  margin-bottom: 2.5rem;
}

/* Make cards consistent height + spacing */
.about-card {
  padding: 2rem 2.2rem !important;
  margin: 0;
}

/* Ensure cards align perfectly */
.about-grid .about-card {
  height: 100%;
}

/* Headings spacing */
.about-card h3 {
  margin-bottom: 1.2rem !important;
}

/* Paragraph rhythm */
.about-card p {
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

/* List spacing clean up */
.about-list {
  margin-top: .5rem;
  padding-left: 1.2rem;
}

.about-list li {
  margin-bottom: .75rem;
  line-height: 1.6;
}

/* Full width cards below grid */
.about-card.wide {
  margin-bottom: 2.5rem;
}

/* =========================================
   CONTACT PAGE — HERITAGE STYLE
   ========================================= */

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.contact-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: .85;
}

/* Two-column layout */
.contact-layout {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

/* Left info card */
.contact-info {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(0,0,0,.06);
}

.contact-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.contact-note {
  margin-top: 2rem;
  font-size: .95rem;
  opacity: .75;
}

/* Google Form card */
.contact-form {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 30px rgba(0,0,0,.06);
}

.contact-form iframe {
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.institution-note {
  background: #efe8db;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.institution-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Institutional note – lighter tone on dark footer */
footer .footer-bottom {
    padding: 30px 30px;
    margin-top: 30px;
    color: rgba(255,255,255,0.88);  /* lighter than normal footer text */
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    border-top: 1px solid rgba(255,255,255,0.12);
}

/* ================================
   ABOUT PAGE — HERO SPACING FIX
   ================================ */

body.site-page-About .about-hero-inner p {
  margin-bottom: 2.2rem;   /* adjust 1.8–2.5rem if you want more/less */
}


/* =========================================
   EXHIBITIONS — 2x2 GRID + FULL-WIDTH FEATURE
   ========================================= */

.exhibitions-section{
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) 1.5rem clamp(3rem, 5vw, 5rem);
}

.exhibitions-header{
  margin-bottom: 1.75rem;
}

.exhibitions-header h2{
  margin: 0 0 .65rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  letter-spacing: .01em;
  color: #1f1a13;
}

.exhibitions-header p{
  margin: 0;
  max-width: 72ch;
  line-height: 1.7;
  color: rgba(31,26,19,.82);
  font-size: 1.05rem;
}

/* ===== Grid Layout ===== */
.exhibitions-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* ===== Card Base ===== */
.exhibit-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.55rem 1.6rem;
  box-shadow: 0 16px 32px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.exhibit-card h3{
  margin: 0 0 .65rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
  color: #1f1a13;
}

.exhibit-card p{
  margin: 0 0 1rem 0;
  line-height: 1.7;
  color: rgba(31,26,19,.84);
}

/* Lists inside cards */
.exhibit-list{
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: .55rem;
  color: rgba(31,26,19,.82);
}

.exhibit-list li{
  line-height: 1.6;
}

/* ===== Full-width feature card (spans both columns) ===== */
.exhibit-feature{
  grid-column: 1 / -1;
  padding: 1.85rem 1.85rem;
}

/* Tags */
.exhibit-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .6rem;
}

.exhibit-tag{
  display: inline-flex;
  align-items: center;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(0,0,0,.12);
  color: rgba(31,26,19,.92);
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  font-size: .95rem;
}

/* Buttons row */
.exhibit-actions{
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .exhibitions-grid{
    grid-template-columns: 1fr;
  }

  .exhibit-feature{
    grid-column: auto;
  }
}

@media (max-width: 640px){
  .exhibit-card{
    padding: 1.25rem 1.2rem;
    border-radius: 16px;
  }
  .exhibit-feature{
    padding: 1.35rem 1.25rem;
  }
}

/* =========================================
   EXHIBITIONS SECTION IMAGE HEADER
   ========================================= */

.exhibitions-hero{
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 28px 60px rgba(0,0,0,.18);
}

.exhibitions-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

/* Heritage overlay */
.exhibitions-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.15) 75%,
    rgba(0,0,0,0) 100%
  );
}

/* Text inside image */
.exhibitions-hero-text{
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  max-width: 600px;
  color: #f6f1e7;
}

.exhibitions-hero-text h2{
  margin: 0 0 .8rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: .01em;
}

.exhibitions-hero-text p{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .92;
}

/* Responsive */
@media (max-width: 768px){
  .exhibitions-hero{
    height: 320px;
  }

  .exhibitions-hero-text{
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 90%;
  }
}

/* =========================================
   ARCHIVES & RESEARCH PAGE
   ========================================= */

.archives-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) 1.5rem clamp(3rem, 5vw, 5rem);
}

/* Hero */
.archives-hero{
  margin-bottom: 2.5rem;
}

.archives-hero h2{
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin: 0 0 .75rem 0;
}

.archives-hero p{
  max-width: 70ch;
  line-height: 1.75;
  font-size: 1.05rem;
  color: rgba(31,26,19,.85);
  margin: 0;
}

/* Grid */
.archives-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.archive-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.archive-card h3{
  margin: 0 0 .6rem 0;
  font-family: Georgia, "Times New Roman", serif;
}

.archive-card p{
  margin: 0 0 1rem 0;
  line-height: 1.7;
}

.archive-card ul{
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

/* Policy + Digital blocks */
.archive-policy,
.archive-digital{
  margin-bottom: 2rem;
}

.archive-policy h3,
.archive-digital h3{
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: .6rem;
}

.archive-policy p,
.archive-digital p{
  line-height: 1.75;
  margin-bottom: .9rem;
  color: rgba(31,26,19,.85);
}

/* CTA */
.archive-actions{
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .archives-grid{
    grid-template-columns: 1fr;
  }
}


/* =========================================
   VISIT + CONTACT PAGE
   ========================================= */

.visit-contact-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) 1.5rem clamp(3rem, 5vw, 5rem);
}

/* Hero */
.visit-hero{
  margin-bottom: 2.5rem;
}

.visit-hero h2{
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: .75rem;
}

.visit-hero p{
  max-width: 70ch;
  line-height: 1.75;
  color: rgba(31,26,19,.85);
}

/* Grid */
.visit-contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.visit-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.visit-card h3{
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: .75rem;
}

.visit-list{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  line-height: 1.7;
}

.visit-note{
  margin-bottom: 1.2rem;
  color: rgba(31,26,19,.85);
}

/* Map */
.visit-map h3{
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px){
  .visit-contact-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE MENU (CSS-ONLY) — clean, single-row scroll menu
   + compact header, no giant wrapping
   ========================================================= */
@media (max-width: 900px){

  /* Header container */
  header{
    background: #f6f1e7 !important;
    padding: 14px 14px 10px !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }

  /* Title */
  header h1{
    margin: 0 0 10px !important;
    line-height: 1.1 !important;
  }
  header .site-title{
    color: #1f1a14 !important;
    font-family: "Libre Baskerville", Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    display: inline-block !important;
  }

  /* Search stays neat */
  header #search-form{
    margin: 0 0 10px !important;
  }

  /* NAV: single row, scrollable, no wrap */
  nav.site-navigation{
    margin: 0 !important;
    width: 100% !important;
  }

  nav.site-navigation ul.navigation{
    display: flex !important;
    flex-wrap: nowrap !important;           /* <- stops wrapping */
    overflow-x: auto !important;            /* <- enables horizontal scroll */
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding: 6px 2px 10px !important;
    margin: 0 !important;
    list-style: none !important;

    scrollbar-width: none;                  /* Firefox hide scrollbar */
  }

  nav.site-navigation ul.navigation::-webkit-scrollbar{
    display: none;                          /* Chrome/Safari hide scrollbar */
  }

  /* Nav links as pills */
  nav.site-navigation ul.navigation > li{
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    flex: 0 0 auto !important;
  }

  nav.site-navigation ul.navigation > li > a{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 10px 12px !important;
    border-radius: 999px !important;

    font-family: "Libre Baskerville", Georgia, serif !important;
    font-size: 12px !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;

    color: rgba(31,26,20,0.80) !important;
    background: rgba(255,255,255,0.55) !important;
    border: 1px solid rgba(31,26,20,0.12) !important;

    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Active */
  nav.site-navigation ul.navigation > li.active > a{
    color: #1f1a14 !important;
    border-color: rgba(167,122,57,0.55) !important;
    background: rgba(167,122,57,0.10) !important;
  }

  nav.site-navigation ul.navigation > li > a:hover{
    border-color: rgba(167,122,57,0.45) !important;
    background: rgba(167,122,57,0.08) !important;
  }
}

/* =========================================================
   HERO READABILITY — MOBILE
   Stronger overlay + readable text panel + better spacing
   ========================================================= */
@media (max-width: 900px){

  /* Give hero breathing room below header on mobile */
  .hero-heritage{
    min-height: 70vh !important;
    height: auto !important;
    padding-top: 12px !important;
    align-items: flex-end !important;
    margin-bottom: 50px;
  }

  /* Stronger overlay for contrast */
  .hero-heritage::before{
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.62) 45%,
      rgba(0,0,0,0.34) 75%,
      rgba(0,0,0,0.10) 100%
    ) !important;
  }

  /* Inner layout */
  .hero-inner{
    padding: 22px 16px 22px !important;
    max-width: 92vw !important;
  }

  /* Put content on a readable panel (subtle glass) */
  .hero-inner{
    background: rgba(0,0,0,0.32) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* Title */
  .hero-inner h1{
    font-size: 2.2rem !important;
    line-height: 1.05 !important;
    margin: 0 0 12px !important;
    color: #f6f1e7 !important;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
  }

  /* Main paragraph */
  .hero-inner p{
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin: 0 0 14px !important;
    color: rgba(246,241,231,0.92) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  }

  /* If you have a “hero-sub” / second paragraph blockquote style, this improves it */
  .hero-sub,
  .hero-inner .hero-sub,
  .hero-inner p.hero-sub{
    margin-top: 10px !important;
    padding: 12px 12px 12px 14px !important;
    border-left: 3px solid rgba(194,162,90,0.95) !important;
    background: rgba(0,0,0,0.18) !important;
    border-radius: 10px !important;
    color: rgba(246,241,231,0.95) !important;
  }

  /* Buttons stack nicely and stay readable */
  .hero-actions{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary{
    width: 100% !important;
    justify-content: center !important;
  }
}
/* ==========================================
   MOBILE NAV — Horizontal Scroll Only
   ========================================== */
@media (max-width: 900px){

  /* Prevent wrapping */
  nav.site-navigation ul.navigation{
    display: flex !important;
    flex-wrap: nowrap !important;      /* critical */
    overflow-x: auto !important;       /* scrolls horizontally */
    overflow-y: hidden !important;     /* prevents vertical scroll */
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;

    white-space: nowrap !important;
    padding: 10px 12px !important;
    margin: 0 !important;

    scrollbar-width: none; /* Firefox */
  }

  /* Hide scrollbar (clean look) */
  nav.site-navigation ul.navigation::-webkit-scrollbar{
    display: none;
  }

  nav.site-navigation ul.navigation > li{
    flex: 0 0 auto !important;
  }

  nav.site-navigation ul.navigation > li > a{
    white-space: nowrap !important;
  }
}

nav.site-navigation ul.navigation{
  scroll-snap-type: x mandatory;
}

nav.site-navigation ul.navigation > li{
  scroll-snap-align: start;
}

/* =========================================================
   MOBILE HEADER: remove the giant blank space + keep pills tight
   ========================================================= */
@media (max-width: 900px){

  /* Kill any forced grid layout / large gaps from earlier rules */
  header{
    display: block !important;
    position: relative !important;
    background: #f6f1e7 !important;
    padding: 12px 14px 10px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Title spacing */
  header h1{
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.1 !important;
  }

  header .site-title{
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Search spacing */
  header #search-form{
    margin: 0 0 8px !important;
    padding: 0 !important;
  }

  /* Nav spacing (this is usually the main culprit) */
  header nav.site-navigation{
    margin: 0 !important;
    padding: 0 !important;
  }

  header nav.site-navigation ul.navigation{
    margin: 0 !important;              /* remove theme margin */
    padding: 6px 2px 8px !important;   /* controlled padding */
    list-style: none !important;
    border: 0 !important;
  }

  /* Keep the menu as one scrollable row */
  header nav.site-navigation ul.navigation{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    scrollbar-width: none;
  }
  header nav.site-navigation ul.navigation::-webkit-scrollbar{ display:none; }

  header nav.site-navigation ul.navigation > li{
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  /* Make sure content doesn't get extra top padding from wrappers */
  .oc-content,
  .oc-content-inner,
  #content{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* If Cozy adds a rule line/margin above content, soften it */
  #content::before{
    display: none !important;
  }
}

/* =========================================================
   MOBILE HEADER: remove the giant blank space + keep pills tight
   ========================================================= */
@media (max-width: 900px){

  /* Kill any forced grid layout / large gaps from earlier rules */
  header{
    display: block !important;
    position: relative !important;
    background: #f6f1e7 !important;
    padding: 12px 14px 10px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Title spacing */
  header h1{
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.1 !important;
  }

  header .site-title{
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Search spacing */
  header #search-form{
    margin: 0 0 8px !important;
    padding: 0 !important;
  }

  /* Nav spacing (this is usually the main culprit) */
  header nav.site-navigation{
    margin: 0 !important;
    padding: 0 !important;
  }

  header nav.site-navigation ul.navigation{
    margin: 0 !important;              /* remove theme margin */
    padding: 6px 2px 8px !important;   /* controlled padding */
    list-style: none !important;
    border: 0 !important;
  }

  /* Keep the menu as one scrollable row */
  header nav.site-navigation ul.navigation{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    scrollbar-width: none;
  }
  header nav.site-navigation ul.navigation::-webkit-scrollbar{ display:none; }

  header nav.site-navigation ul.navigation > li{
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  /* Make sure content doesn't get extra top padding from wrappers */
  .oc-content,
  .oc-content-inner,
  #content{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* If Cozy adds a rule line/margin above content, soften it */
  #content::before{
    display: none !important;
  }
}

/* =========================
   MOBILE NAV SPACING FIX
   ========================= */

@media (max-width: 900px){

  /* Space ABOVE nav (between logo/search and nav) */
  header nav.site-navigation{
    margin-top: 18px !important;
  }

  /* Space BELOW nav (between nav and hero/content) */
  header nav.site-navigation{
    margin-bottom: 18px !important;
  }

  /* Optional: increase vertical padding inside nav */
  header nav.site-navigation ul.navigation{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

}
.site-page-pagination{
  display: none !important;
}

/* ===============================
   QUICK INFO – MOBILE FIX
================================= */
@media (max-width: 768px){

  /* Tighten outer card spacing */
  .visit-card{
    padding: 1.75rem 1.25rem !important;
  }

  .visit-card-inner{
    padding: 0 !important;
  }

  /* Make grid tighter */
  .visit-grid{
    gap: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  /* Fix small box spacing */
  .visit-box{
    padding: 1rem .9rem !important;
    border-radius: 16px !important;
  }

  /* Reduce space between label + value */
  .visit-label{
    display:block;
    margin-bottom: .35rem;
  }

  .visit-value{
    font-size: 1.1rem !important;
  }

  /* Improve paragraph spacing */
  .visit-note{
    margin-top: 1rem !important;
    line-height: 1.6 !important;
  }
}

/* =========================================================
   ACCESS NOTICE — Heritage Login Prompt
   ========================================================= */

.access-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(139, 106, 42, 0.25);
  border-left: 3px solid #8b6a2a;
  border-radius: 10px;

  padding: 0.85rem 1.25rem;
  margin: 0 0 1.5rem 0;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(31, 26, 19, 0.88);

  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.access-notice a {
  color: #8b6a2a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 106, 42, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.access-notice a:hover {
  color: #6f5325;
  border-bottom-color: rgba(111, 83, 37, 0.6);
}

/* Mobile */
@media (max-width: 768px) {
  .access-notice {
    display: flex;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* =========================================================
   ACCESS NOTICE — Heritage Login Prompt
   Matches site gold, parchment, and Baskerville type
   ========================================================= */

.access-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  max-width: 860px;
  margin: 0 auto 2rem auto;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(139, 106, 42, 0.22);
  border-left: 3px solid #8b6a2a;
  border-radius: 10px;

  padding: 1rem 1.4rem;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(31, 26, 19, 0.88);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.access-notice a {
  color: #8b6a2a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 106, 42, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.access-notice a:hover {
  color: #6f5325;
  border-bottom-color: rgba(111, 83, 37, 0.6);
}

/* =========================================================
   GUEST LOGIN / REGISTER PAGES
   Matches heritage card style
   ========================================================= */

body.guest #content,
body.guest-login #content,
body.guest-register #content {
  max-width: 520px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Card wrapper */
body.guest form,
#guest-login form,
#guest-register form {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Form heading */
body.guest h2,
body.guest h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: #1f1a13;
  letter-spacing: 0.01em;
}

/* Labels */
body.guest form label,
#guest-login label,
#guest-register label {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  opacity: 0.72;
  margin-bottom: 0.4rem;
  margin-top: 1.1rem;
}

/* Inputs */
body.guest form input[type="text"],
body.guest form input[type="email"],
body.guest form input[type="password"],
#guest-login input,
#guest-register input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fbf7ef;
  color: #1f1a13;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.guest form input:focus,
#guest-login input:focus,
#guest-register input:focus {
  outline: none;
  border-color: rgba(139, 106, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 106, 42, 0.12);
}

/* Submit button */
body.guest form input[type="submit"],
body.guest form button[type="submit"],
#guest-login input[type="submit"],
#guest-register input[type="submit"] {
  width: 100%;
  height: 48px;
  margin-top: 1.75rem;
  border-radius: 8px;
  border: none;
  background: #8b6a2a;
  color: #f7f1e6;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.guest form input[type="submit"]:hover,
body.guest form button[type="submit"]:hover {
  background: #6f5325;
  transform: translateY(-1px);
}

/* Links below form (register / forgot password) */
body.guest .login-links,
body.guest .register-links,
body.guest p a {
  color: #8b6a2a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 106, 42, 0.3);
}

body.guest p a:hover {
  color: #6f5325;
}

/* =========================================================
   403 / RESTRICTED PAGE MESSAGE STYLING
   ========================================================= */

.restricted-message,
.access-forbidden {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.restricted-message h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f1a13;
}

.restricted-message p {
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .access-notice {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  body.guest form {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
}

/* =========================================================
   PDF PROTECTED VIEWER — Full width, scrollable
   ========================================================= */
.pdf-protected-wrapper {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  margin: 1.5rem 0;
  user-select: none;
  -webkit-user-select: none;
  grid-column: 1 / -1;
  clear: both;
}

/* Toolbar */
.pdf-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #1f1a13;
  color: #f6f1e7;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

.pdf-toolbar-title {
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.pdf-toolbar-note {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* Toolbar actions row */
.pdf-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Fullscreen button */
.pdf-fullscreen-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f6f1e7;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.pdf-fullscreen-btn:hover {
  background: rgba(255,255,255,0.22);
}

/* Watermark — pointer-events none so scroll works through it */
.pdf-watermark {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: calc(100% - 44px);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-watermark span {
  display: block;
  transform: rotate(-35deg);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 106, 42, 0.10);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  text-shadow:
    0 200px 0 rgba(139,106,42,0.10),
    0 400px 0 rgba(139,106,42,0.10),
    0 -200px 0 rgba(139,106,42,0.10),
    0 -400px 0 rgba(139,106,42,0.10);
}

/* iframe */
.pdf-iframe {
  width: 100%;
  height: 85vh;
  border: none;
  display: block;
  position: relative;
  z-index: 1;
}

/* Shield — blocks right-click, allows scroll via pointer-events none */
/* We use a narrow right-edge shield instead of full cover */
.pdf-shield {
  position: absolute;
  top: 44px;
  right: 0;
  width: 40px;
  height: calc(100% - 44px);
  z-index: 10;
  background: transparent;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

/* Force full width on item show pages */
.resource-show .primary,
body.show .primary {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fullscreen mode */
.pdf-fullscreen-active {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.pdf-fullscreen-active .pdf-iframe {
  height: calc(100vh - 44px) !important;
}

.pdf-fullscreen-active .pdf-watermark {
  height: calc(100vh - 44px) !important;
}

.pdf-fullscreen-active .pdf-shield {
  height: calc(100vh - 44px);
}

/* Mobile */
@media (max-width: 768px) {
  .pdf-iframe {
    height: 70vh;
  }

  .pdf-toolbar-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.78rem;
  }


}

.pdf-shield {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: calc(100% - 44px);
  z-index: 10;
  background: transparent;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: all;
}

.pdf-fullscreen-active .pdf-shield {
  height: calc(100vh - 44px);
}

/* Hide all page content behind fullscreen PDF viewer */
body.pdf-fullscreen-mode > * {
    visibility: hidden;
}

body.pdf-fullscreen-mode .pdf-fullscreen-active {
    visibility: visible !important;
}

body.pdf-fullscreen-mode .pdf-fullscreen-active * {
    visibility: visible !important;
}

/* Block print / Save as PDF */
@media print {
    body * { display: none !important; }
    body::after {
        display: block !important;
        content: "Printing is disabled. This document is protected by the Khama III Memorial Museum.";
        font-family: Georgia, serif;
        font-size: 1.2rem;
        padding: 3rem;
        text-align: center;
    }
}


/* Hide media title*/

/* Hide media list block on item pages */
dl.media-list {
    display: none !important;
}



