﻿
/* iPad portrait should follow the compact phone layout instead of the wide tablet layout. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  #masthead .container {
    max-width: 100%;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  #masthead .row {
    flex-wrap: nowrap;
    margin-right: 0;
    margin-left: 0;
  }

  #masthead .col-10,
  #masthead .col-lg-6:first-child {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: calc(100% - 58px) !important;
    padding-right: 0;
    padding-left: 0;
  }

  #masthead .col-2,
  #masthead .col-lg-6:last-child {
    flex: 0 0 58px;
    width: 58px !important;
    max-width: 58px !important;
    padding-right: 0;
    padding-left: 6px;
  }

  #masthead .utility {
    display: none !important;
  }

  #masthead #logo {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    white-space: normal;
  }

  #masthead #logo img {
    flex: 0 0 66px;
    width: 66px !important;
    max-height: 66px;
    object-fit: contain;
  }

  #masthead #logo .display-header {
    min-width: 0;
    gap: 3px;
    overflow: visible;
    padding-left: 10px !important;
  }

  #masthead #logo .site-name {
    max-width: 100%;
    font-size: 21px !important;
    line-height: 1.22 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #masthead #logo .description {
    max-width: 100%;
    padding-left: 17px;
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: .015em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #masthead #logo .description::before {
    width: 12px;
  }

  #masthead .nav-wpdt-header,
  #masthead .wpdt-nav-toggler {
    display: inline-flex !important;
  }

  #masthead .navbar-menus {
    display: block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  #masthead .wpdt-nav-toggler {
    width: 44px;
    height: 44px;
  }

  #navbarTogglerMain.navbar-collapse {
    position: fixed !important;
    top: 142px !important;
    right: 12px !important;
    left: auto !important;
  }

  #pojo-a11y-toolbar {
    top: 82px !important;
  }

  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-container {
    max-width: 767px !important;
  }

  .elementor-element-3678d476 img,
  .elementor-element-a20bfd4 img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
  }

  .workline-switcher {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    width: calc(100% - 24px);
    margin: 14px auto;
    padding: 3px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .workline-switcher__button {
    flex: 0 0 165px;
    min-height: 54px;
    font-size: 15px;
    scroll-snap-align: start;
  }
}

/* Keep the accessibility button from covering the hamburger on iPad portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.home #masthead,
  body.home #masthead > .navbar-light,
  body.home #masthead .container,
  body.home #masthead .row {
    background-color: #fff !important;
  }

  body.home #masthead {
    overflow: visible !important;
  }

  body.home #masthead .col-10,
  body.home #masthead .col-lg-6:first-child {
    max-width: calc(100% - 124px) !important;
  }

  body.home #masthead .col-2,
  body.home #masthead .col-lg-6:last-child {
    flex: 0 0 124px !important;
    width: 124px !important;
    max-width: 124px !important;
  }

  body.home #masthead .menu-top,
  body.home #masthead .nav-wpdt-header {
    width: 100%;
    justify-content: flex-end !important;
  }

  body.home #masthead .wpdt-nav-toggler {
    position: relative;
    z-index: 10070;
    margin-right: 68px !important;
  }

  body.home #pojo-a11y-toolbar.pojo-a11y-toolbar-right {
    top: 96px !important;
    z-index: 10030 !important;
  }
}
