/* CF Couverture Sologne — corrections V8
   Menu vertical spacing + gallery restricted to current client media. */

/* MENU DESKTOP — more breathing room in normal and sticky states */
@media (min-width:992px){
  body.cf-v6 .desktop-nav-v6,
  body.cf-v6 .desktop-nav-v6.is-sticky-nav{
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
  body.cf-v6 .desktop-nav-v6 .main-menu.modern-nav nav>ul{
    margin-top:0!important;
    margin-bottom:0!important;
    align-items:center!important;
  }
  body.cf-v6 .desktop-nav-v6 .main-menu.modern-nav nav>ul>li>a{
    min-height:58px!important;
  }
}

/* Mobile panel also keeps a little air above and below the list */
@media (max-width:991px){
  body.cf-v6 .vdo-mobile-panel>ul{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
}

/* GALLERY V8 — photos and videos have exactly the same visible frame */
body.cf-v6 .cf-gallery-wall{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  gap:24px!important;
  align-items:stretch!important;
}
body.cf-v6 .cf-gallery-card,
body.cf-v6 .cf-gallery-card:nth-child(n){
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:4/3!important;
  overflow:hidden!important;
  border-radius:18px!important;
  margin:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  background:#202020!important;
}
body.cf-v6 .cf-gallery-card>img,
body.cf-v6 .cf-gallery-card>video{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
}
body.cf-v6 .cf-gallery-card.cf-gallery-video .cf-gallery-overlay{
  opacity:1!important;
  background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.58))!important;
}
body.cf-v6 .cf-gallery-card.cf-gallery-video .cf-gallery-overlay b{
  letter-spacing:.08em!important;
}
body.cf-v6 .cf-gallery-card.cf-gallery-video .cf-gallery-overlay i{
  width:48px!important;
  height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#f37400!important;
  color:#303030!important;
}
/* With 14 media, centre the final two cards on a four-column desktop row. */
@media (min-width:1200px){
  body.cf-v6 .cf-gallery-wall>.cf-gallery-card:nth-child(13){grid-column:2!important}
  body.cf-v6 .cf-gallery-wall>.cf-gallery-card:nth-child(14){grid-column:3!important}
}
@media (max-width:1199px){
  body.cf-v6 .cf-gallery-wall{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
}
@media (max-width:767px){
  body.cf-v6 .cf-gallery-wall{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
}
@media (max-width:480px){
  body.cf-v6 .cf-gallery-wall{grid-template-columns:1fr!important;gap:16px!important}
}
