/* Desktop keeps the approved theme. Extra controls are for narrow screens. */
.main .ML-video-wrapper {
  max-width: 100%;
  height: auto !important;
}

.main iframe[src*="youtube.com"] {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--ML-video-ratio, 16 / 9);
}

.ML-nav-toggle,
.ML-submenu-toggle {
  display: none;
}

@media screen and (max-width: 999px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .subWrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 962px;
    padding: 0 12px;
    background-image: none;
  }

  .noise {
    box-sizing: border-box;
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .bottom-shadow::after {
    content: none;
  }

  header.header,
  header .ML-header-area {
    height: auto;
  }

  header .ML-header-layout {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    grid-template-areas: ". remembering ." "left title right" ". years .";
    align-items: center;
    column-gap: 8px;
    padding: 14px 0 8px;
  }

  #site-header-content .ML-header-layer {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    height: auto;
    transform: none;
    text-align: center;
    white-space: normal;
  }

  #site-header-content .ML-header-remembering {
    grid-area: remembering;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  #site-header-content .ML-header-years {
    grid-area: years;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  #site-header-content .ML-header-title {
    grid-area: title;
    top: auto;
    left: auto;
    right: auto;
    display: block;
  }

  #site-header-content .ML-header-left {
    grid-area: left;
    position: static !important;
    width: 64px !important;
    height: auto !important;
  }

  #site-header-content .ML-header-right {
    grid-area: right;
    width: 36px;
    justify-self: center;
  }

  header .ML-header-layer-container,
  header .ML-header-text-container,
  header .ML-header-text {
    position: static;
    width: auto;
    height: auto;
    min-width: 0;
    white-space: normal;
  }

  header .ML-header-title .ML-bold {
    font-size: clamp(27px, 6.5vw, 60px) !important;
    line-height: 1.2;
  }

  header .ML-header-remembering span,
  header .ML-header-years span {
    font-size: 22px !important;
    line-height: 1.4;
  }

  header .ML-header-image {
    display: block;
    width: 100%;
    height: auto;
  }

  #nav {
    width: 100%;
    margin-top: 10px;
  }

  #nav .ML-nav-toggle,
  #nav .ML-submenu-toggle {
    box-sizing: border-box;
    border: 1px solid #776e3d;
    border-radius: 4px;
    background: #202020;
    color: #fff4a8;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }

  #nav.ML-nav-enhanced .ML-nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 6px 14px;
    text-align: left;
  }

  #nav.ML-nav-enhanced .ML-nav-toggle[aria-expanded="false"] + ul {
    display: none;
  }

  #nav > ul {
    padding: 4px 0;
  }

  #nav li,
  #nav li ul li {
    box-sizing: border-box;
    display: block;
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
    z-index: auto;
  }

  #nav li a,
  #nav li ul li a {
    box-sizing: border-box;
    display: block;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    padding: 10px 14px;
    margin: 0;
    line-height: 1.6;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  #nav li.has-children > a {
    padding-right: 66px;
  }

  #nav li ul {
    box-sizing: border-box;
    display: block !important;
    position: static;
    min-width: 0;
    max-width: none;
    margin: 0 0 6px;
    border-top: 1px solid #776e3d;
    padding: 0 0 0 18px;
  }

  #nav.ML-nav-enhanced li > ul,
  #nav.ML-nav-enhanced li:hover > ul,
  #nav.ML-nav-enhanced li:focus-within > ul {
    display: none !important;
  }

  #nav.ML-nav-enhanced li.ML-submenu-open > ul {
    display: block !important;
  }

  #nav.ML-nav-enhanced .ML-submenu-toggle {
    position: absolute;
    top: 1px;
    right: 6px;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 25px;
    line-height: 1;
  }

  #nav button:focus-visible,
  #nav a:focus-visible {
    outline: 3px solid #fff4a8;
    outline-offset: -3px;
  }

  .main .ML-body,
  .main .ML-sidebar,
  .main .ML-col {
    box-sizing: border-box;
    float: none;
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
  }

  .main .ML-row {
    display: flex;
    flex-direction: column;
  }

  .main .ML-text,
  .footer .ML-text {
    overflow-wrap: anywhere;
  }

  .main .ML-image-wrapper-1,
  .footer .ML-image-wrapper-1 {
    box-sizing: border-box;
    max-width: min(100%, var(--ML-image-width, 100%));
    height: auto !important;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  .main .ML-image-crop,
  .footer .ML-image-crop {
    height: auto;
  }

  .main .ML-frame,
  .footer .ML-frame {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .main .ML-image-crop img,
  .footer .ML-image-crop img {
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
  }

  /* Reserve the usual photo width while a later image is still loading. */
  .main .ML-image-crop img[loading="lazy"] {
    width: var(--ML-photo-width, auto) !important;
  }

  .main img,
  .footer img {
    max-width: 100%;
  }

  .main .ML-video-wrapper {
    box-sizing: border-box;
    width: 100% !important;
    max-width: var(--ML-video-width, 100%);
    height: auto !important;
  }

  .main iframe[src*="youtube.com"] {
    display: block;
    width: 100%;
    max-width: var(--ML-video-width, 100%);
    height: auto;
    aspect-ratio: var(--ML-video-ratio, 16 / 9);
    margin-left: auto;
    margin-right: auto;
  }

  .main audio,
  .main video {
    max-width: 100%;
  }

  .main .slideshow-container {
    box-sizing: border-box;
    max-width: min(100%, 250px);
  }

  .slideshow-container .text {
    box-sizing: border-box;
  }

  .main .ML-table-wrap,
  .main table {
    max-width: 100%;
    width: 100%;
  }

  .main table {
    table-layout: fixed;
  }

  .main td {
    overflow-wrap: anywhere;
  }

  .main #container {
    display: block !important;
    width: 100% !important;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main #container iframe {
    width: 100% !important;
    max-width: 100%;
  }

  .footer .ML-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer .ML-row > .ML-col {
    box-sizing: border-box;
    float: none;
    width: 50% !important;
    min-width: 0;
  }

  .footer .ML-container {
    padding-bottom: 14px;
  }
}

@media screen and (max-width: 599px) {
  .subWrapper {
    padding-left: 6px;
    padding-right: 6px;
  }

  header .ML-header-layout {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    column-gap: 6px;
  }

  #site-header-content .ML-header-left {
    width: 44px !important;
  }

  #site-header-content .ML-header-right {
    width: 28px;
  }

  header .ML-header-remembering span,
  header .ML-header-years span {
    font-size: 18px !important;
  }

  .footer .ML-row > .ML-col {
    width: 100% !important;
  }

  .main .ML-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .main blockquote {
    margin-left: 12px;
    margin-right: 12px;
  }

  .main table .ML-text,
  .main table .ML-text * {
    font-size: 16px !important;
    line-height: 1.45;
  }
}

@media screen and (max-width: 479px) {
  .useful-links .useful-link-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .useful-links .useful-link-logo {
    justify-self: center;
  }
}
