/* Shared header layout for phones in landscape. */
@media (orientation: landscape) and (min-width: 568px) and (max-width: 1023.98px) and (max-height: 600px) {
  #stickyMenu { padding: 0.25rem 0.5rem; top: calc(-1 * var(--talc-logo-row, 0px)); }
  #stickyMenu > a,
  #stickyMenu > .navbar-toggler { display: none !important; }
  #stickyMenu > .container {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  #stickyMenu > .container > a.navbar-collapse {
    display: flex !important;
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }
  #stickyMenu > .container > a img {
    margin: 4px 0 6px !important;
    padding-left: 0 !important;
  }
  #stickyMenu #navbarSupportedContent {
    display: flex !important;
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
    height: auto !important;
    overflow: visible;
  }
  #stickyMenu .navbar-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }
  #stickyMenu .navbar-nav > li { font-size: clamp(12px, 1.8vw, 16px); }
  #stickyMenu .navbar-nav > li > .nav-link {
    padding: 0.4rem clamp(4px, 0.8vw, 8px);
    white-space: nowrap;
  }
  #stickyMenu .dropdown-menu {
    position: absolute;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
  #stickyMenu .dropdown-menu.show { opacity: 1; transform: none; }
  #stickyMenu .navbar-nav > li:nth-child(3) > .dropdown-menu { left: auto; right: 0; }
  #breadcrumb { max-height: none; top: var(--talc-menu-row, 32px) !important; }
  #breadcrumb > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: none;
    min-width: 0;
    text-align: left;
  }
  #breadcrumb .telefon-hlavicka.d-md-none { display: none !important; }
  #breadcrumb .telefon-hlavicka.d-md-inline-block {
    display: block !important;
    flex: 0 0 auto;
    white-space: nowrap;
    position: static;
    margin: 0 !important;
    padding: 4px 0 !important;
  }
  #breadcrumb .uk-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    float: none !important;
    margin: 0 !important;
  }
  #breadcrumb .uk-breadcrumb > li.d-md-flex { display: flex !important; }
  #breadcrumb .uk-breadcrumb > li { flex: 0 0 auto; align-items: center; }
  #breadcrumb .uk-breadcrumb > li:last-child { flex: 0 1 auto; min-width: 0; }
  #breadcrumb .uk-breadcrumb > li:last-child > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #breadcrumb .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
    margin: 0 6px;
  }
}

/* Use explicit open state on touch screens; retain hover for a mouse. */
#stickyMenu.talc-dropdowns .navbar-nav > .dropdown > .dropdown-menu {
  display: none;
  opacity: 0;
}
#stickyMenu.talc-dropdowns .navbar-nav > .dropdown > .dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  #stickyMenu.talc-dropdowns .navbar-nav > .dropdown:not(.talc-dropdown-closed):hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }
}
