/* GRIDL masthead: stop the Book button being clipped behind the phone number
   at mid tablet widths (around 1024px, e.g. iPad Pro 12.9 portrait).
   The full phone number stays an icon from 1024px until 1280px, where there
   is room for the number and "Book a table". Same selectors as main.css so
   this file must load after it.
   Added 10 Nov 2026. */

@media (min-width:1024px) and (max-width:1279.98px){
  .masthead .masthead__inner .nav--social .phone-number{
    margin-right:0;
  }
  .masthead .masthead__inner .nav--social .phone-number a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    min-height:0;
    line-height:1;
    padding:0;
    margin:0;
    border:1px solid hsla(0,0%,100%,.6);
    border-radius:6px;
    color:hsla(0,0%,100%,.6);
    font-size:0;
    letter-spacing:0;
  }
  .masthead .masthead__inner .nav--social .phone-number a:hover,
  .masthead .masthead__inner .nav--social .phone-number a:focus{
    color:#fff;
    border-color:#fff;
    text-decoration:none;
  }
  .masthead .masthead__inner .nav--social .phone-icon{
    display:block;
    width:20px;
    height:20px;
    fill:currentColor;
  }
  .masthead .masthead__inner .nav--social .phone-number__text{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }
}

/* Match the existing 768-991 Gallery hide in main.css, but also match
   hrefs that end in #gallery (preview rewrites the path). No change on live. */
@media (min-width:768px) and (max-width:991.98px){
  .masthead .masthead__inner .nav--main a[href$="#gallery"],
  .masthead .masthead__inner .nav--main li:has(> a[href$="#gallery"]){
    display:none;
  }
}
