/* Loaded after the archived theme so the original fixed-width rules can adapt. */
@media (max-width: 980px) {
  #nav {
    float: none;
    display: block;
    height: auto;
    min-height: 40px;
    overflow: visible;
    white-space: normal;
    text-align: center;
    /* The 10x80 theme strip is 40px normal + 40px hover. Repeat only
       the normal 40px half so wrapped rows keep the original band. */
    background-image: url("/recovered/nav-top-40.png");
    background-repeat: repeat;
  }

  #nav li {
    display: inline;
    height: auto;
    line-height: 40px;
  }

  #nav a {
    display: inline-block;
    height: auto;
    padding: 0 11px;
    line-height: 40px;
  }
}

@media (max-width: 800px) {
  #title {
    width: 100%;
    height: 88px;
    margin-top: 28px;
    line-height: 88px;
    font-size: 2em;
    letter-spacing: 4px;
    background-size: contain;
  }

  #wrapper {
    width: auto;
    max-width: 732px;
    margin: 0 10px;
    border-width: 10px;
    border-bottom: none;
  }

  #wrapper .content {
    margin: 16px;
    min-height: 0;
    height: auto;
  }

  #footer {
    border-top-width: 30px;
  }
}

@media (max-width: 600px) {
  #wrapper .content span[style*="float:"] {
    float: none !important;
    display: block;
  }

  #wrapper .weebly-splitpane-2 > .column {
    width: 100% !important;
    float: none !important;
    left: auto !important;
  }

  #wrapper .weebly-splitpane-2 > .column + .column {
    margin-top: 20px !important;
  }
}

@media (max-width: 420px) {
  #title {
    height: 72px;
    margin-top: 20px;
    line-height: 72px;
    font-size: 1.7em;
    letter-spacing: 3px;
  }

  #wrapper {
    margin: 0 6px;
    border-width: 7px;
  }

  #wrapper .content {
    margin: 12px;
  }

  #footer {
    border-top-width: 20px;
  }

  .lightbox-overlay {
    padding: 12px;
  }

  .lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 96px);
  }
}
