.entryContent img { max-width: 100%; height: auto; }
.entryContent iframe { max-width: 100%; }
/* Text-link underlines must not change thumbnail heights and reflow floated rows. */
.entryContent .ngg-gallery-thumbnail a,
.entryContent .ngg-gallery-thumbnail a:hover,
.entryContent .ngg-gallery-thumbnail a:focus,
.entryContent .ngg-gallery-thumbnail a:active,
.entryContent .ngg-album-link a,
.entryContent .ngg-album-link a:hover,
.entryContent .ngg-album-link a:focus,
.entryContent .ngg-album-link a:active { border: 0; }
.entryContent .digilib-map { clear: both; margin: 1.5rem 0; }
.entryContent .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entryContent .gallery .gallery-item { float: none !important; width: auto !important; margin: 0 !important; }
.entryContent .gallery br { display: none; }
.entryContent .gallery img { box-sizing: border-box; max-width: 100%; }
.tml { max-width: 100%; }
.tml input:not([type=checkbox]):not([type=submit]) { box-sizing: border-box; width: 100%; max-width: 100%; font-size: 16px; padding: 8px; }
.tml .tml-field-wrap { margin-bottom: 12px; }
.digilib-viewer { box-sizing: border-box; max-width: 96vw; max-height: 96vh; padding: 16px; border: 0; background: #201b16; color: white; }
.digilib-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.digilib-viewer img { display: block; max-width: 88vw; max-height: 75vh; object-fit: contain; margin: auto; }
.digilib-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.digilib-viewer button { cursor: pointer; min-height: 44px; padding: 8px 14px; font-size: 16px; }
.digilib-viewer button:focus-visible, a:focus-visible { outline: 3px solid #a36c16; outline-offset: 3px; }
@media (max-width: 1000px) {
  .mainCont, .footer .inner, .footer .footer-widget { width: 100%; box-sizing: border-box; }
  .bodyContent { padding-left: 20px; padding-right: 20px; }
  .leftPanel { width: calc(100% - 265px); }
  .header { padding-left: 20px; }
  .header .logo { max-width: 100%; }
  .header .logo img { max-width: 100%; height: auto; }
}
@media (max-width: 760px) {
  body { background-color: #d5bd91; background-repeat: repeat-y; }
  .body-bg { background-position: center top; background-size: 100% auto; }
  .body-top, .body-bottom { background-size: 100% 100%; }
  .bodyContent { padding: 0 16px 20px; }
  .leftPanel, .rightPan { float: none; width: 100%; box-sizing: border-box; }
  .rightPan { margin-top: 25px; }
  .rightPan .inner { padding: 12px; background: none; }
  .header { padding: 10px 16px; }
  .header-menu { height: auto; min-height: 45px; padding: 0 8px; background-size: 100% 100%; }
  .header-menu > ul { display: flex; flex-wrap: wrap; height: auto; }
  .header-menu > ul > li { float: none; }
  .header-menu > ul > li > a { height: auto; min-height: 36px; box-sizing: border-box; }
  .header-menu ul li a { white-space: normal; }
  .header-menu ul li:focus-within > ul { display: block; }
  .entryContent { overflow-wrap: anywhere; }
  .entryContent table { max-width: 100%; width: 100% !important; table-layout: fixed; }
  .entryContent td { overflow-wrap: anywhere; }
  .entryContent .wp-caption { max-width: 100%; }
  .entryContent .alignleft, .entryContent .alignright { max-width: 100%; }
  .footer .inner { padding: 20px 16px; min-height: 0; }
  .footer .footer-widget.center { margin: 0; }
  .entryContent .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
