/* Shared mobile layout for Media Elementals chrome. Desktop (above 720px) is unchanged. */
@media (max-width: 720px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  #wrapper,
  #container-top,
  #container-top-inner,
  #container-content,
  #container-bottom,
  #content-inner,
  #header,
  #header-inner,
  #top,
  #footer,
  #bottom,
  #bottom-glow {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .centercolumn,
  .centercolumn-products {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  #header-top,
  #header-inner #header-top,
  #header #header-top,
  #logo,
  #slogan,
  #top-navigation,
  #topnav,
  #top-search {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #slogan { display: none; }
  #top-search { display: none; }

  #logo img,
  #header #logo img {
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #top-navigation { padding: 8px 0 4px; }
  #topnav { padding: 0; }
  #topnav > li {
    float: none !important;
    display: inline-block;
    margin: 0 10px 6px 0;
  }
  #top-navigation li a {
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500 !important;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 4px !important;
  }

  /* Home slider was a fixed 940/918px stage */
  #slides_container,
  #header #slides_container {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    box-sizing: border-box;
  }
  #slider,
  #header #slider,
  #slideflash,
  #slider ul,
  #slider li {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #slider img,
  #slider li img {
    max-width: 100% !important;
    height: auto !important;
  }

  #page-title h1 {
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    background-image: none;
  }

  #page-content,
  #page-content-full,
  .col-left,
  .side-right,
  .aasti-page,
  .release-page {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-right: 0;
  }

  body,
  p, li, td, dd, dt, label, blockquote, .styled,
  .service-lead, .service-intro, .case-note, .card-meta,
  #contact_form, #release-form {
    font-family: "Outfit", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
  }

  h1, h2, h3, h4, h5, h6,
  h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
  .styledbold, .serve-heading, .item-title {
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500 !important;
  }

  #contact_form label,
  #release-form label.field-label,
  #release-form .check-row label {
    float: none !important;
    display: block;
    width: auto !important;
    font-size: 17px !important;
  }

  #contact_form .input,
  #contact_form textarea.input,
  #contact_form input[type="text"],
  #contact_form input[type="email"],
  #release-form input[type="text"],
  #release-form input[type="email"],
  #release-form input[type="date"],
  input.input, textarea.input {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
    padding: 12px;
    font-size: 17px !important;
    font-family: "Outfit", "Helvetica Neue", Arial, sans-serif !important;
  }

  #contact_form .button,
  #contact_form input.button,
  #release-form .button,
  #release-form input.button,
  input.button, .button, a.button-link {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 17px !important;
    box-sizing: border-box;
    display: inline-block;
  }

  #release-form input[type="checkbox"],
  #contact_form input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-right: 10px;
    vertical-align: middle;
  }

  #bottom .col,
  #bottom .col.nomargin,
  #bottom .column .col {
    float: none !important;
    width: 100% !important;
    margin: 0 0 22px 0 !important;
  }

  #footer-right, #footer-left {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left;
    padding-top: 10px;
  }
  #footer-right img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
  #social-icon { text-align: left; }

  img, video {
    max-width: 100% !important;
    height: auto;
  }
  iframe {
    max-width: 100% !important;
  }

  table {
    max-width: 100%;
  }

  .gallery li,
  .gallery-local li {
    max-width: 100%;
    box-sizing: border-box;
  }
  body:not(.portfolio-index):not(.aasti-overview-page) .gallery li {
    float: none !important;
    margin-right: 0;
  }
  .img-frame4, .img-frame1, .img-frame2, .img-frame6 {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fixed theme heights clip a wrapping nav and a fluid home slider */
  #container-top,
  #container-top-inner,
  #header,
  #header-inner {
    height: auto !important;
    min-height: 0;
  }
  #top,
  #top .centercolumn {
    height: auto !important;
    overflow: visible !important;
    min-height: 0;
  }

  #topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  #top-navigation li,
  #topnav > li {
    float: none !important;
    margin: 0 8px 0 0 !important;
  }
  #top-navigation li a,
  #topnav > li > a {
    float: none !important;
  }
  #top-navigation ul ul {
    display: none !important;
  }

  /* Empty decorative 940px slider frame; real slides are a sibling #slider */
  #slides_container,
  #header #slides_container {
    display: none !important;
  }
  #slider,
  #header #slider {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 8px 0 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #slider ul,
  #slider li {
    position: static !important;
    left: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #slider li {
    display: none !important;
  }
  #slider li:first-child {
    display: block !important;
  }
  #slider img,
  #slider li img,
  #header #slider img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  #prevBtn, #nextBtn,
  a#prevBtn, a#nextBtn,
  #scroll-latest .scroll-prev,
  #scroll-latest .scroll-next,
  a.scroll-prev, a.scroll-next {
    display: none !important;
  }

  /* Latest Projects strip: swipe inside the container, do not widen the page */
  #scroll-latest {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #scroll-latest .scroll-content {
    width: auto !important;
    max-width: none;
    overflow: visible !important;
  }
  #scroll-latest ul {
    display: flex;
    flex-wrap: nowrap;
    width: max-content !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    left: auto !important;
  }
  #scroll-latest li {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 8px 0 0 !important;
  }
  #scroll-latest li img {
    width: 110px !important;
    height: 60px !important;
    max-width: none;
  }

}
