/**
 * T19 Mobile Fixes
 * Applies only under 768px so the desktop two-column layout is unchanged.
 */

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

  body {
    max-width: 100%;
  }

  #wrapper,
  #wrapper *,
  #main,
  #left,
  #right,
  .articles,
  .widget-wrapper,
  #header,
  #header img {
    box-sizing: border-box;
  }

  #wrapper {
    max-width: 100%;
    border-left-width: 6px;
    border-right-width: 6px;
  }

  #header,
  #header img,
  #subHeaderImg {
    max-width: 100%;
    height: auto;
  }

  #main {
    display: block;
    width: 100%;
    flex-direction: column;
  }

  #left,
  #right,
  #indent {
    width: 100%;
    max-width: 100%;
    float: none;
    display: block;
    padding-left: 0;
    margin-left: 0;
  }

  #right {
    font-size: 1rem;
    line-height: 1.45;
    margin-top: 1.25rem;
    padding: 0 12px 20px;
  }

  .articles {
    border-right: 0;
    border-bottom: 1px solid #ccc;
    padding: 12px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .title,
  h1,
  h1.post-title,
  h1.post-title a,
  .post-title,
  .post-title a {
    font-size: 1.35rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .posted,
  .post-meta,
  .post-data,
  .breadcrumb-list {
    font-size: 0.9rem;
  }

  img,
  video,
  embed,
  object,
  .wp-post-image {
    max-width: 100% !important;
    height: auto;
  }

  iframe,
  .twitter-tweet,
  twitter-widget {
    max-width: 100% !important;
  }

  table,
  .wp-calendar-table,
  #wp-calendar {
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
  }

  #right select,
  #right input,
  #right textarea,
  select.postform,
  #cat,
  #categories-dropdown-2,
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  textarea {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .widget_archive select,
  #cat,
  #categories-dropdown-2 {
    margin-right: 0;
  }

  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .anp-site-wrap {
    max-width: 100% !important;
  }
}
