/* ==========================================================
   JMR RESPONSIVE / MOBILE STYLES
   ========================================================== */


/* TABLETS + PHONES
-------------------------------------------------------------- */

@media screen and (max-width: 900px) {

  html body .float_contain {
    overflow: visible !important;
  }

  html body #Container,
  html body #Main,
  html body #Content,
  html body #SideBar,
  html body #ContactCol {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }


  /* Main site container */
  html body #Container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }


  /* Header */
  html body #Header {
    display: block !important;
    width: 100% !important;
    height: 125px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body #Header img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }


  /* Courthouse banner */
  html body #Rotating {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body #Rotating .photo_main {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }


  /* Navigation */
  html body #Navigation {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.9 !important;
  }

  html body #Navigation a {
    display: inline-block !important;
    font-size: 16px !important;
    margin: 3px 4px !important;
    white-space: nowrap !important;
  }


  /* Main mobile layout:
     Main Content -> Practice Areas -> Contact Us */
  html body #Main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clear: both !important;
  }


  /* Main Content FIRST */
  html body #Content {
    order: 1 !important;
    display: block !important;
    float: none !important;
    flex: none !important;
    position: static !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 28px 22px !important;

    box-sizing: border-box !important;
    overflow: visible !important;
  }


  /* Practice Areas SECOND */
  html body #SideBar {
    order: 2 !important;
    display: block !important;
    float: none !important;
    flex: none !important;
    position: static !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 26px 22px !important;

    box-sizing: border-box !important;
    overflow: visible !important;

    border-right: 0 !important;
    border-top: 1px solid #d9dee3 !important;
  }


  /* Contact Us THIRD */
  html body #ContactCol {
    order: 3 !important;
    display: block !important;
    float: none !important;
    flex: none !important;
    position: static !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 26px 22px !important;

    box-sizing: border-box !important;
    overflow: visible !important;

    border-left: 0 !important;
    border-top: 1px solid #d9dee3 !important;
  }


  /* Images */
  html body #Content img,
  html body #SideBar img {
    max-width: 100% !important;
    height: auto !important;
  }

  html body #ContactCol #ContextPhoto {
    display: block !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    margin: 0 auto 16px auto !important;
  }


  /* Contact form */
  html body #ContactBox {
    display: block !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body #ContactBox form {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body #ContactBox input,
  html body #ContactBox textarea,
  html body #ContactBox select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }


  /* Footer */
  html body #Footer {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    clear: both !important;
    overflow: visible !important;
  }

  html body #Footer .footer-inner {
    width: 100% !important;
    padding: 36px 25px 0 25px !important;
    box-sizing: border-box !important;
  }

  html body #Footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

}


/* SMALL PHONES
-------------------------------------------------------------- */

@media screen and (max-width: 600px) {

  html body #Header {
    height: 100px !important;
  }

  html body #Rotating {
    height: 145px !important;
  }

  html body #Navigation {
    padding: 12px 10px !important;
  }

  html body #Navigation a {
    font-size: 15px !important;
    margin: 2px 3px !important;
  }

  html body #Content {
    padding: 24px 18px !important;
  }

  html body #SideBar {
    padding: 24px 18px !important;
  }

  html body #ContactCol {
    padding: 24px 18px !important;
  }

  html body #Content h1 {
    font-size: 25px !important;
    line-height: 1.2 !important;
  }

  html body #Content h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  html body #Content p,
  html body #Content li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  html body #ContactBox {
    max-width: 100% !important;
  }

  html body #ContactCol #ContextPhoto {
    max-width: 100% !important;
  }

  html body #ContactBox input[type="submit"],
  html body #ContactBox .button,
  html body #ContactBox button {
    width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }

  html body #Footer .footer-inner {
    padding: 30px 20px 0 20px !important;
  }

}