/* Hide the stray "Item" heading at bottom of item pages */
body.item.resource.show h3 {
  display: none !important;
}

/* Enlarge text blocks directly following embedded media blocks */
.page .block-media + .block-text {
  font-size: 1.25rem !important;   /* ~20px */
  line-height: 1.6;
}

/* Optional: if there are multiple paragraphs */
.page .block-media + .block-text p {
  font-size: inherit;
  line-height: inherit;
}

/* Larger, proportional video and transcript boxes on two-column layouts */
.two-column .video-box iframe,
.two-column .transcript-box {
  width: 100% !important;
  aspect-ratio: 16 / 9;       /* Keep the same proportions as YouTube */
  min-height: 480px !important; /* Make taller (default 315 → now 480) */
}

/* Optional: larger screens, make it even taller */
@media (min-width: 1000px) {
  .two-column .video-box iframe,
  .two-column .transcript-box {
    min-height: 560px !important;
  }
}

/* Keep the transcript scrollable and styled */
.transcript-box {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  background: #fff;
  overflow: hidden;
}
.transcript-box section[role="region"] {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.transcript-box section[role="region"] > div:last-child {
  overflow: auto;
  flex: 1;
  padding: 1rem;
  line-height: 1.6;
}

/* Force the transcript box to be taller and ignore the inline padding-top */
.two-column .transcript-box {
  height: 560px !important;     /* make bigger (try 600–700px if you want) */
  padding-top: 0 !important;    /* cancel the inline 56.25% */
  position: relative !important;/* keep the absolute child working */
  width: 100% !important;
}

/* Make the inner section fill the box and scroll */
.transcript-box section[role="region"] {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
.transcript-box section[role="region"] > div:last-child {
  flex: 1 !important;
  overflow: auto !important;
  padding: 1rem !important;
  line-height: 1.6 !important;
}

/* Reduce the heavy side padding Papers adds to page content */
.page {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove padding inside content blocks */
.block {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make iframes (including StoryMap embeds) expand fully */
.block iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none;
}
/* Let embedded media break out of the Papers theme's inner column */
.page .block {
    margin-left: -1rem;  /* adjust until it aligns with the edges you want */
    margin-right: -1rem;
}

/* --- Faceted Browse layout for Papers theme --- */

/* Container */
#container {
  display: flex;
  gap: 2rem;
}

/* Left sidebar */
#section-sidebar {
  flex: 0 0 320px;
  max-width: 320px;
}

/* Results area */
#section-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Facet panel styling */
.facets-container,
#facets,
fieldset.facet {
  box-sizing: border-box;
}

.facets-container {
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 1rem;     /* keeps the box in view when scrolling */
}

fieldset.facet {
  border: 0;
  padding: 0 0 .75rem 0;
  margin: 0 0 .75rem 0;
  border-bottom: 1px solid #e6e6e6;
}

fieldset.facet:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

fieldset.facet legend {
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* Inputs inside facets */
fieldset.facet select,
fieldset.facet input[type="text"] {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  font-size: .95rem;
  background: #fff;
}

/* If the module renders a button or chosen.js widgets */
.facets-container .button,
.facets-container button,
.chosen-container { 
  width: 100% !important;
}

/* Table spacing */
#section-content table {
  width: 100%;
  border-collapse: collapse;
}

#section-content table th,
#section-content table td {
  padding: .6rem .5rem;
  border-bottom: 1px solid #eee;
}

#section-content .browse-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

/* Mobile: stack sidebar above results */
@media (max-width: 900px) {
  #container { 
    flex-direction: column; 
  }
  #section-sidebar {
    max-width: none;
    position: static;
  }
  .facets-container { 
    position: static; 
  }
}


/* ===== Faceted Browse layout for Papers theme ===== */

/* Make the Faceted Browse container two-column */
#container {
  display: flex;
  gap: 1.25rem;
}

/* Left sidebar (facets) */
#section-sidebar {
  width: 300px;
  flex: 0 0 300px;
  position: sticky;
  top: 1rem;            /* keep sidebar visible while scrolling */
  align-self: flex-start;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem;
}

/* Sidebar title */
#section-sidebar legend {
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Individual facet blocks */
.facet {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px dotted #ddd;
}

/* Facet labels */
.facet legend {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Inputs and selects full width */
.facet input[type="text"],
.facet select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .5rem .6rem;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
}

/* Multi-value list scroll if long */
.facet .values,
.facet .facet-values,
.facet select[multiple] {
  max-height: 260px;
  overflow: auto;
}

/* Buttons */
#section-sidebar .button,
#section-sidebar button {
  display: inline-block;
  margin-top: .5rem;
}

/* Right column: results */
#section-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Results table polish */
#section-content table {
  width: 100%;
  border-collapse: collapse;
}
#section-content table th,
#section-content table td {
  padding: .6rem .5rem;
  border-bottom: 1px solid #eee;
}
#section-content .browse-controls {
  margin-bottom: .75rem;
}

/* Small screens: stack */
@media (max-width: 900px) {
  #container {
    flex-direction: column;
  }
  #section-sidebar {
    position: static;
    width: 100%;
  }
}
/* Papers-friendly faceted browse styling */
#people-fb .browse-controls { margin: 1rem 0 1.25rem; }
#people-fb table { width: 100%; border-collapse: collapse; }
#people-fb thead th {
  text-align: left; font-weight: 700; padding: .6rem .5rem; border-bottom: 2px solid #eee;
}
#people-fb tbody td { padding: .6rem .5rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
#people-fb a.resource-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
#people-fb a.resource-link img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
#people-fb .facets-container { margin-bottom: 1rem; }
#people-fb fieldset.facet { margin: .5rem 0 1rem; }
#people-fb fieldset.facet legend { font-weight: 700; margin-bottom: .35rem; }
#people-fb select.value, #people-fb input.value {
  width: 100%; max-width: 520px; padding: .5rem .6rem; border: 1px solid #ddd; border-radius: 6px;
}
/* Pagination line-up */
#people-fb nav.pagination { display:flex; align-items:center; gap:.6rem; margin:.4rem 0; }
#people-fb .permalink.button { margin-left: .5rem; }

}



