.afb-expertise{
  --paper:#FFFFFF;
  --shell:#F6F4EF;
  --stone:#EDEAE2;
  --ink:#1C1C1A;
  --ink-soft:#55534D;
  --hair:#DFDCD3;
  --moss:#3F5240;
  --pad:clamp(20px,5vw,64px);

  background:var(--paper);
  color:var(--ink);
  font-family:'Jost',system-ui,sans-serif;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  max-width:100%;
  overflow-x:hidden;
}
.afb-expertise *{box-sizing:border-box}
html.afb-expertise-locked,body.afb-expertise-locked{overflow:hidden!important;overscroll-behavior:none!important}

/* ---------- page title ---------- */
.afb-expertise .afb-page-title{
  font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight:400;
  font-size:clamp(34px,8vw,70px);
  letter-spacing:.02em;
  text-align:center;
  margin:6px 0 26px;
  white-space: pre-line !important;
  display: block !important;
}
.afb-partnerships .afb-expertise .afb-page-title::after {
    content: "Alongside our partnered portfolio, we own and operate 20+ brands spanning multiple categories, with established distribution across the UK's leading retailers.";
    
    display: block;
    margin: 10px auto 0 auto;
    max-width: 750px;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    line-height: 1.6;
    color: #666666;
}

/* ---------- category rail ---------- */
.afb-expertise .afb-rail{
  display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;
  padding:0 var(--pad);margin:0 0 34px;
}
.afb-expertise .afb-rail{
  display:none !important;
}
.afb-expertise .afb-rail button{
  font-family:inherit;font-size:14px;font-weight:400;letter-spacing:.01em;
  color:var(--ink-soft);background:none;border:0;padding:6px 10px;cursor:pointer;
  position:relative;transition:color .2s;
}
.afb-expertise .afb-rail button::after{
  content:"";position:absolute;left:10px;right:10px;bottom:2px;height:1px;
  background:var(--ink);transform:scaleX(0);transform-origin:left;transition:transform .25s;
}
.afb-expertise .afb-rail button:hover,.afb-expertise .afb-rail button:focus-visible{color:var(--ink)}
.afb-expertise .afb-rail button:hover::after,.afb-expertise .afb-rail button:focus-visible::after{transform:scaleX(1)}

/* ---------- grid ---------- */
.afb-expertise .afb-grid{
  display:grid;
  /*grid-template-columns:repeat(4,1fr);*/
  grid-template-columns: repeat(auto-fit, minmax(23%, 1fr));
  gap:34px 14px;
  padding:0 0 40px;
  /*padding:0 var(--pad) 80px;*/
    /*gap: 2vw !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 100% !important;
    width: 100% !important;*/
}
.afb-partnerships .afb-expertise .afb-grid{
  grid-template-columns:repeat(3,1fr) !important;
  gap:34px 58px !important;
  /*padding:80px var(--pad) 80px;*/
  padding:80px 10px 80px;
}
@media (max-width: 1099px) and (min-width: 1025px) and (hover: hover) {
    .afb-expertise .afb-grid{
        grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
        gap:18px 14px !important;
        padding:0px 80px 80px !important;
        /*gap: 2vw !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 100% !important;
        width: 100% !important;*/
    }
    .afb-partnerships .afb-expertise .afb-grid{
        padding:40px 80px 40px !important;
    }
}
@media (max-width: 1280px) and (min-width: 1100px) and (hover: hover) {
    .afb-expertise .afb-grid{
        grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
        gap:20px 14px !important;
        padding:0px 120px 40px !important;
        /*gap: 2vw !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 100% !important;
        width: 100% !important;*/
    }
    .afb-partnerships .afb-expertise .afb-grid{
        padding:40px 80px 80px !important;
    }
}

@media (max-width: 1499px) and (min-width: 1281px) and (hover: hover) {
    .afb-expertise .afb-grid{
        grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
        gap:20px 14px !important;
        padding:0px 40px 40px !important;
        /*gap: 2vw !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 100% !important;
        width: 100% !important;*/
    }
    .afb-partnerships .afb-expertise .afb-grid{
        padding:40px 80px 80px !important;
    }
}
@media (max-width: 1366px) and (min-width: 768px) and (hover:none) {
    .afb-expertise .afb-grid{
        padding:0 var(--pad) 20px;
    }
}
.afb-expertise .afb-tile{
  display:block;width:100%;padding:0;border:0;background:none;
  cursor:pointer;font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;text-align:left;
  /*height: auto !important;
  object-fit: cover !important;
  max-height: 40vh !important;*/
}
.afb-expertise .afb-tile__frame{
  position:relative;display:block;width:100%;aspect-ratio:1/1;
  overflow:hidden;background:var(--stone);
}
.afb-partnerships .afb-expertise .afb-tile__frame{
  background: transparent !important;
  aspect-ratio:2/1 !important;
  overflow: visible !important;
}
.afb-expertise .afb-tile__img{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transition:transform .7s cubic-bezier(.22,.61,.36,1);
}
.afb-partnerships .afb-expertise .afb-tile__caption{
  display: none !important;
}
.afb-expertise .afb-tile:hover .afb-tile__img,.afb-expertise .afb-tile:focus-visible .afb-tile__img{transform:scale(1.04)}
.afb-expertise .afb-tile__caption{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:5px 2px 0;
}
.afb-expertise .afb-tile__name{
  font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-size:14px;font-weight:400;letter-spacing:.02em;color:var(--ink);
  position:relative;padding-bottom:3px;
}
.afb-expertise .afb-tile__name::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--ink);
  transform:scaleX(0);transform-origin:left;transition:transform .3s;
}
.afb-expertise .afb-tile:hover .afb-tile__name::after,.afb-expertise .afb-tile:focus-visible .afb-tile__name::after{transform:scaleX(1)}
.afb-expertise .afb-tile__mark{
  flex:none;color:#9A978F;font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-size:16px;line-height:1;
  transition:color .25s,transform .25s;
}
.afb-expertise .afb-tile:hover .afb-tile__mark,.afb-expertise .afb-tile:focus-visible .afb-tile__mark{color:var(--ink);transform:rotate(90deg)}
.afb-expertise .afb-tile:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

/* ---------- panel ---------- */
.afb-panel{
  position:fixed;inset:0;z-index:100060;background:var(--paper);
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s;
  overscroll-behavior:contain;
}
.afb-panel.is-open{opacity:1;visibility:visible}

.afb-panel__media{
  position:relative;background:var(--stone);
  background-size:cover;background-position:center;
}

.afb-panel__body{
  position:relative;background:var(--paper);
  padding:clamp(28px,4vw,56px) clamp(28px,5vw,72px);
  overscroll-behavior:contain;
  display:flex;flex-direction:column;
  min-width:0;overflow-y:auto;
}
@media (max-width: 1499px) and (min-width: 1025px) and (hover: hover) {
    .afb-panel__body{
        padding:clamp(18px,2vw,36px) clamp(18px,3vw,46px);
    }
}

.afb-panel__close{
  position:absolute;top:24px;right:24px;
  background:none;border:0;cursor:pointer;padding:8px;line-height:0;color:var(--ink);
}
.afb-panel__close svg{width:18px;height:18px}
.afb-panel__close:focus-visible{outline:1px solid var(--ink);outline-offset:4px}

.afb-panel__nav{display:flex;flex-wrap:wrap;gap:2px 4px;margin:0 56px 0 0;max-width:520px}
.afb-panel__nav button{
  font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-size:14px;font-weight:400;letter-spacing:.02em;
  color:#9A978F;background:none;border:0;padding:5px 8px;cursor:pointer;transition:color .2s;
}
.afb-panel__nav button:hover{color:var(--ink)}
.afb-panel__nav button[aria-current="true"]{color:var(--ink)}

/*.afb-panel__content{margin-top:clamp(36px,7vh,92px);max-width:480px}*/
.afb-panel__content{margin-top:auto;max-width:480px}
.afb-panel__eyebrow{
  font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#9A978F;margin:0 0 14px;
}
.afb-panel__title{
  font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-weight:400;
  font-size:clamp(22px,2.4vw,30px);letter-spacing:.06em;text-transform:uppercase;
  margin:0 0 18px;line-height:1.2;
}
.is-partnership-popup .afb-panel__eyebrow, .is-partnership-popup .afb-panel__title { 
    display: none !important;
}
.afb-panel__copy{
  font-family:'Roboto', sans-serif !important;font-size:15px;line-height:1.75;color:var(--ink-soft);margin:0 0 28px;
}

/* Style your partnership text box area */
.is-partnership-popup .is-partnership-copy {
    display: block !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* Formats the custom image added directly inside your WordPress copy window */
.is-partnership-popup .is-partnership-copy img {
    display: block !important;
    max-width: 250px !important;
    height: auto !important;
    margin: 0 auto 20px 0 !important;
}

.afb-panel__link{
  /*display:inline-block;*/
  display: none;
  font-family:'Roboto', sans-serif !important;
  font-size:14px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--hair);
  padding-bottom:3px;
  transition:border-color .2s;
}
.afb-panel__link:hover{border-color:var(--ink)}

.afb-panel__foot{
  margin-top:auto;padding-top:36px;
  display:flex;align-items:center;gap:18px;
}
.afb-panel__arrow{
  background:none;border:1px solid var(--hair);border-radius:50%;
  width:38px;height:38px;cursor:pointer;color:var(--ink);
  display:flex;align-items:center;justify-content:center;transition:border-color .2s;
}
.afb-panel__arrow:hover{border-color:var(--ink)}
.afb-panel__arrow svg{width:15px;height:15px}
.afb-panel__count{font-family:'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif !important;font-size:12px;letter-spacing:.1em;color:#9A978F}

/* ---------- responsive ---------- */
@media (max-width:1366px) and (min-width: 768px) and (hover:none) {
  .afb-expertise .afb-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:20px 10px;
  }
  .afb-partnerships .afb-expertise .afb-grid{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      justify-items: center !important;
      gap:26px 10px !important;
      padding:30px 10px 0 !important}
  .afb-partnerships .afb-expertise .afb-tile {width: 75% !important;}
  .afb-expertise .afb-page-title {line-height:1.2 !important}
  .afb-panel{
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .afb-panel__media{aspect-ratio:1/1;height:auto;width:100%}
  .afb-panel__body{padding:0 0 40px;overflow:visible;min-width:0;width:100%}
  .afb-panel__close{
    position:sticky;top:0;align-self:flex-end;right:auto;
    width:46px;height:46px;display:flex;align-items:center;justify-content:center;
    background:var(--paper);border-radius:0;z-index:2;
  }
  .afb-panel__nav{
    display:flex;flex-wrap:wrap;overflow:visible;
    margin:0;padding:0 16px 14px;border-bottom:1px solid var(--hair);
    width:100%;max-width:100%;gap:0;
  }
  .afb-panel__nav button{font-size:13px;padding:7px 8px}
  .afb-panel__content{margin-top:26px;padding:0 20px;max-width:100%}
  .afb-panel__title{font-size:21px}
  .afb-panel__copy{font-size:15px;line-height:1.7}
  .afb-panel__foot{margin-top:0;padding:34px 20px calc(20px + env(safe-area-inset-bottom))}
  .afb-panel__arrow{width:46px;height:46px}
}
@media(max-width:767px){
  .afb-expertise .afb-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:20px 10px;
  }
  .afb-partnerships .afb-expertise .afb-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;justify-items: center !important;gap:26px 10px !important;padding:30px 10px 0 !important}
  .afb-partnerships .afb-expertise .afb-tile {width: 50% !important;}
  .afb-expertise .afb-page-title {line-height:1.2 !important}
  .afb-panel{
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .afb-panel__media{aspect-ratio:1/1;height:auto;width:100%}
  .afb-panel__body{padding:0 0 40px;overflow:visible;min-width:0;width:100%}
  .afb-panel__close{
    position:sticky;top:0;align-self:flex-end;right:auto;
    width:46px;height:46px;display:flex;align-items:center;justify-content:center;
    background:var(--paper);border-radius:0;z-index:2;
  }
  .afb-panel__nav{
    display:flex;flex-wrap:wrap;overflow:visible;
    margin:0;padding:0 16px 14px;border-bottom:1px solid var(--hair);
    width:100%;max-width:100%;gap:0;
  }
  .afb-panel__nav button{font-size:13px;padding:7px 8px}
  .afb-panel__content{margin-top:26px;padding:0 20px;max-width:100%}
  .afb-panel__title{font-size:21px}
  .afb-panel__copy{font-size:15px;line-height:1.7}
  .afb-panel__foot{margin-top:0;padding:34px 20px calc(20px + env(safe-area-inset-bottom))}
  .afb-panel__arrow{width:46px;height:46px}
}
@media(max-width:560px){
  .afb-expertise .afb-page-title{font-size:30px;margin-bottom:18px}
  .afb-expertise .afb-rail{
    flex-wrap:wrap;justify-content:center;overflow:visible;
    gap:2px 0;padding:0 12px;margin-bottom:26px;
  }
  .afb-expertise .afb-rail button{padding:7px 9px;font-size:13px}
  .afb-expertise .afb-grid {
      /*grid-template-columns:minmax(0,1fr);*/
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap:10px;
      padding-bottom:40px;
  }
  .afb-partnerships .afb-expertise .afb-grid{grid-template-columns:minmax(0,1fr) !important;justify-items: center !important;gap:32px;;padding:10px 10px 10px 0 !important}
  .afb-partnerships .afb-expertise .afb-tile {width: 50% !important;}
  .afb-expertise .afb-page-title {line-height:1.2 !important;}
  .afb-expertise .afb-tile__frame{aspect-ratio:1/1}
  .afb-expertise .afb-tile__caption{padding-top:5px;gap: 5px;}
  .afb-expertise .afb-tile__name{font-size:13px}
  .afb-expertise .afb-tile__mark{font-size:18px}
}
@media(hover:none){
  .afb-expertise .afb-tile__name::after{transform:scaleX(1);background:var(--hair)}
  .afb-expertise .afb-tile__mark{color:var(--ink)}
}
@media(prefers-reduced-motion:reduce){
  .afb-expertise *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
