/* Portrait tablet only: retain the phone and landscape/desktop layouts. */
@media (min-width:768px) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  #bs-main-navbar #navigationbar { background-color:transparent!important; }
  #bs-main-navbar #navigationbar>.navbar-nav {
    display:flex!important;flex-wrap:nowrap;justify-content:space-between;
    width:100%;margin-left:0;margin-right:0;
  }
  #bs-main-navbar #navigationbar>.navbar-nav>li { float:none;flex:0 0 auto; }
  #bs-main-navbar #navigationbar>.navbar-nav>li>a {
    font-size:clamp(11px,1.5vw,13px);letter-spacing:.6px;
    padding:15px 5px!important;margin-right:0;white-space:nowrap;
  }
  .main-carousel .carousel-cell .assinatura[data-fimm-capas-logo] {
    width:min(400px,80vw);max-width:80vw;
  }
  .main-carousel .carousel-cell .assinatura[data-fimm-capas-logo]>img {
    width:100%!important;max-width:400px!important;height:auto;
  }
}

/* Match the PT homepage logo reveal on English tablets, in either orientation. */
@media (min-width:768px) and (hover:none) and (pointer:coarse) {
  html.fimm-tablet-home .logofimm { display:none!important; }
  html.fimm-tablet-home.fimm-tablet-home-scrolled .logofimm { display:block!important; }
}
