@media only screen and (max-width: 1080px) {
  .post-layer .tenf-post-preview {
    padding: 0 10px;
  }/* page with sidebar */

  .page.page-with-image-text-pairs.inner-shadow-top.inner-shadow-bottom, .page.page-with-sidebar.inner-shadow-top.inner-shadow-bottom {
    padding: 0;
  }

  .page.page-with-image-text-pairs.inner-shadow-top:before, .page.page-with-sidebar.inner-shadow-top:before {
    background: none;
  }

  .page.page-with-image-text-pairs.inner-shadow-bottom:after, .page.page-with-sidebar.inner-shadow-bottom:after {
    background: none;
  }

  .page.page-with-sidebar .container {
    border-radius: 0;
  }

  .page.page-with-sidebar .page-sidebar {
    border-radius: 0;
  }/* end page with sidebar *//* paired image/text template */

  .page.page-with-image-text-pairs .container {
    border-radius: 0;
  }

  .tenf-paired-image-container:nth-of-type(1) {
    border-top-left-radius: 0px;
  }

  .paired-container .tenf-paired-image-container:first-of-type .tenf-paired-image {
    border-top-left-radius: 0px;
  }/* end paired image/text template */
}

@media only screen and (max-width: 1000px) {

  .tenf-nav-children-container.depth-1.split-children-container {
    width: 550px;
  }


  #nav-search-icon {
    text-shadow: none;
  }

  /* header */
  #masthead {
    background-image: none !important;
  }

  .header-icons span, .header-icons a {
    color: #1f1f1d;
  }/* Menu */

  .main-navigation a {
    font-size: 14px;
  }
  .tenf-nav-menu {
    justify-content: space-around;
  }

  .main-navigation .tenf-nav-depth-0 a {
    padding: 12px 10px;
  }/* front page */

  .front-page-content .wp-block-columns {
    flex-wrap: wrap;
  }

  .front-page-content .wp-block-column {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .front-page-content .wp-block-column {
    flex-grow: 1;
    flex-basis: 100% !important;
    width: 100%;
  }

  .front-page-content .coupon-block {
    margin: 40px auto;
    height: 100%;
    max-width: 500px;
    width: 80%;
  }

  .front-page-content .coupon-block-container {
    display: flex;
    flex-direction: column;
  }

  .front-page-content .wp-block-column > .wp-block-image {
    display: none;
  }/* route archive */

  .route-layer .coupon-block {
    background: none !important;
  }

  .route-layer .coupon-block-container {
    padding: 32px 0 0 0;
  }

  .route-layer .coupon-block-container .tenf-button {
    display: none;
  }
}

@media only screen and (max-width: 736px) {
  /* footer */
  .footer-icons {
    float: right;
    width: 100%;
    width: auto;
  }

  .footer-email {
    justify-content: initial;
  }/* end footer *//* page with sidebar */

  .page.page-with-sidebar .container {
    flex-wrap: wrap;
  }

  .page.page-with-sidebar .page-sidebar .tenf-image {
    margin: 0;
  }

  .page.page-with-sidebar .page-sidebar {
    width: 100%;
    max-width: 100%;
    order: 2;
  }

  .page.page-with-sidebar .page-wrapper {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .sidebar-text:blank {
    height: 10px;
    margin: 10px;
    padding: 0;
    background-color: red;
  }/* end page with sidebar *//* paired image/text template */

  .paired-container {
    display: block;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

  .paired-container .tenf-paired-image-container {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .paired-container .tenf-paired-image-container:first-of-type {
    margin-top: 20px;
  }

  .tenf-paired-text {
    border: none;
    width: calc(100% - 40px);
    margin: 0 20px 50px 20px;
  }/* end paired image/text template *//* single route */

  .schedule-content {
    grid-template-columns: auto;
  }

  .schedule-grid-container-full {
    grid-column-end: initial;
  }

  .page-wrapper.route-schedule {
    padding: 0px 20px 10px 20px;
  }

  .page-wrapper .expander-label {
    margin: 30px 20px;
    right: 0;
  }

  .schedule-grid {
    font-size: 0.95rem;
  }

  .flexible-content-left,
  .flexible-content-right {
    width: 100%;
  }

  /* end single route */


}

@media only screen and (max-width: 720px) {
  /* Mobile menu */

  .tenf-nav-item a {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .hide-mobile-menu {
    display: none !important;
  }

  .mobile-menu {
    display: initial;
  }

  ul#primary-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 0;
  }

  ul#primary-menu.menu-open {
    display: flex;
  }

  .main-navigation li > ul.sub-menu {
    position: relative;
    top: 0;
    background: none !important;
    margin: 0;
    padding: 0;
    box-shadow: none;
    max-height: 0;
    transition: max-height 0.5s;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .main-navigation ul.sub-menu a {
    color: white;
    font-size: 0.9em;
    width: 100%;
    font-weight: normal;
  }

  li.menu-item-has-children > a:after {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 6px solid white;
    top: 18px;
    left: -6px;
  }

  li.menu-item-has-children.menu-item-has-children-toggled:hover > a:after {
    border-bottom: 6px solid transparent;
    border-top: 6px solid transparent;
    border-left: 6px solid white;
    top: 16px;
  }

  li.menu-item-has-children.menu-item-has-children-toggled > ul.sub-menu {
    max-height: 400px;
  }

  .hide-desktop {
    display: initial;
    visibility: visible;
  }

  .hide-mobile {
    display: none;
    visibility: hidden;
  }

  .routes-heading h1 i {
    display: initial;
  }

  .column-1, .column-11, .column-4, .column-5, .column-2, .column-3, .column-6, .column-7, .column-8, .column-9, .column-10, .column-12 {
    width: 100%;
  }/* homepage */

  .tenf-front-page-slider-section {
    display: grid;
    grid-template-columns: 100%;
  }

  .routes-heading {
    grid-template-columns: auto;
  }

  .tenf-front-page-slider {
    width: 100%;
  }

  .tenf-front-page-slider-right-box {
    width: 100%;
  }

  .tenf-front-page-slider-text-container {
    width: 100%;
    margin: auto;
  }

  .tenf-plan-form-container {
    float: none;
    margin: auto;
  }

  #trillium_planner button[type=submit] {
    margin-top: 10px;
    width: 100%;
  }

  .tenf-front-page-bottom-section > * {
    width: 100%;
  }

  .page-title.page-title-alternate {
    background-position: bottom;
    background-size: initial;
  }

  .tenf-news-slider {
    width: 100%;
    margin-left: 0px;
  }

  .tenf-news-slide {
    padding: 20px;
  }

  .tenf-news-slider-wrapper {
    padding-bottom: 0;
  }

  button.tenf-news-button {
    top: calc(50% - 31px);
  }

  button#tenfNewsNextButton {
    right: 20px;
  }

  button#tenfNewsPrevButton {
    left: 20px;
  }

  .page-title h1 {
    margin: 30px 0;
    font-size: 2.5rem;
  }

  .tenf-post-preview .column-7 {
    padding: 0px;
  }

  .footer-email {
    order: 2;
  }

  .site-branding img {
    width: 130px;
  }

  /* Mobile Menu updates oct 19, 2021 */
  .tenf-nav-header {
    display: flex;
    justify-content: space-between;
  }

  .tenf-nav-menu .menu-toggle {
    margin: 0;
  }

  .tenf-nav-header a {
    padding-left: 10px;
  }

  .tenf-nav-header img {
    width: 130px;
  }

  .tenf-nav-menu {
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    display: block;
    position: fixed;
    height: 100vh;
    z-index: 100000;
    top: 0;
    background-color: white;
    color: #222;
    overflow: auto;
    transition: opacity 0.2s, visibility 0.2s;
  }

  input#menu-toggle:checked + .tenf-nav-menu {
    visibility: visible;
    pointer-events: unset;
    opacity: 1;
  }

  .logged-in .tenf-nav-menu {
    top: 48px;
    height: calc(100vh - 48px);
  }

  .tenf-nav-menu a {
    color: #444;
    /*font-size: 16px;*/
    padding: 18px 0;
/*     padding: 10px 0 !important; */
  }

  .tenf-nav-children-container {
    background-color: rgba(0,0,0,0.02);
  }

  .tenf-nav-has-children > a:last-of-type:after {
    content: '\f0da';
    font-family: 'FontAwesome';
    display: block;
    margin-left: 10px;
  }

  .tenf-nav-depth-2.tenf-nav-has-children > a:last-of-type:after {
    content: '';
  }

  .tenf-nav-has-children > a:last-of-type {
    display: flex;
  }


  .tenf-nav-item-container:hover > label .tenf-nav-has-children > a:last-of-type:after,
  input.tenf-nav-checkbox:checked ~ label .tenf-nav-has-children > a:last-of-type:after {
    content: '\f0d7';
  }

  input.depth-0.tenf-nav-checkbox:checked ~ label .tenf-nav-has-children > a:last-of-type:after {
    content: '\f0d7';
  }

  .tenf-nav-depth-3 {
    display: none;
  }

  .tenf-nav-item-container-0:hover > label .tenf-nav-item,
  .tenf-nav-item-container-1:hover > label .tenf-nav-item,
  .tenf-nav-item-container-2:hover > label .tenf-nav-item,
  .tenf-nav-item-container-0 .tenf-nav-item:hover,
  .tenf-nav-item-container-1 .tenf-nav-item:hover,
  .tenf-nav-item-container-2 .tenf-nav-item:hover {
    background-color: #ddeeff;
  }
}

@media only screen and (max-width: 600px) {
  /* front page */
  .front-page-content .coupon-block {
    background: none;
    margin: 10px auto;
  }

  .front-page-content .coupon-block p {
    margin-top: 0;
  }

  .front-page-content .coupon-block a {
    white-space: nowrap;
    bottom: -10px;
  }

  div.coupon-block-container: {
    border-top: 6px dashed grey;
    padding-top: 0;
    margin-top: 10px;
  }

  .front-page-content .wp-block-column:first-of-type .coupon-block-container {
    margin-top: 0;
    padding-top: 0;
  }

  .front-page-content .wp-block-column:last-of-type .coupon-block-container {
    margin-top: 30px;
    border-top: 6px #dedcdd dashed;
    padding-top: 0;
  }/* end front page *//* route archive */

  .route-layer .container {
    flex-wrap: wrap !important;
  }

  .route-block h1 {
    padding: 8px;
  }

  .route-layer .coupon-block {
    width: 100%;
    margin: 0 20px;
  }

  .route-layer {
    background: none !important;
    border: none !important;
  }

  .route-layer:not(.post-layer) .tenf-image {
    display: none;
  }

  .route-layer h1 {
    position: relative;
  }

  .route-layer .coupon-block-container {
    padding: 16px 0 0 0;
  }

  .moover-plan-width-normal .tt-form-row:nth-of-type(1) {
    grid-template-columns: auto;
  }

  .moover-plan-width-normal .tt-form-row:nth-of-type(2) {
    grid-template-columns: auto 1fr;
  }

  .moover-plan-width-normal .form-group.date {
    grid-column: 2;
  }

  #trillium_planner {
    font-size: 1.2rem;
  }/* end route archive *//* page title */

  .page-title img {
    display: none;
  }

  .page-title h1 {
    font-size: 2rem;
    margin: 1rem auto;
  }/* end page title */
}

@media only screen and (max-width: 500px) {

  .moover-calculator .calculator-field > *,
  .moover-calculator .calculator-result > * {
    width: 100% !important;
  }

  .moover-calculator .calculator-field .calculator-warning {
    padding-left: 0;
  }

  body, button, input, select, optgroup, textarea {
    font-size: 0.9rem;
  }

  .fine-print {
    font-size: 0.8rem;
  }

  .routes-heading {
    margin-top: 35px;
  }

  .routes-heading h1 {
    font-size: 1.6rem;
  }

  .inner-shadow-top:before {
    height: 35px;
  }

  .inner-shadow-bottom:after {
    height: 35px;
  }
}

