/* Layout: phantom sticky header + centered logo must not overlap page titles */
body.phantom-sticky.phantom-main-logo-on.fancy-header-on #fancy-header {
  padding-top: 100px;
  box-sizing: border-box;
}
body.phantom-sticky.phantom-main-logo-on.fancy-header-on #fancy-header > .wf-wrap .wf-table {
  height: auto !important;
  min-height: 100px;
  padding: 16px 0;
}
body.phantom-sticky .masthead.split-header {
  z-index: 1002;
}
body.phantom-sticky.phantom-main-logo-on #main > .wf-wrap,
body.phantom-sticky.phantom-main-logo-on #main {
  position: relative;
  z-index: 1;
}

/* Homepage: overlay nav on slider — must NOT span full viewport height */
body.slideshow-on .masthead.split-header.inside.full-height {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: transparent !important;
  pointer-events: none;
}
body.slideshow-on .masthead.split-header .header-bar,
body.slideshow-on .masthead.split-header .branding,
body.slideshow-on .masthead.split-header .navigation,
body.slideshow-on .masthead.split-header a {
  pointer-events: auto;
}

body.slideshow-on #main-slideshow {
  position: relative;
  z-index: 1;
}
body.slideshow-on #main-slideshow .rev_slider_wrapper {
  min-height: 480px;
}
body.slideshow-on #rev_slider_1_1.rev_slider {
  display: block !important;
  visibility: visible !important;
  min-height: 480px;
}
/* Static hero fallback if Revolution Slider JS fails */
body.slideshow-on #main-slideshow .rev_slider_wrapper.rev_slider_fallback,
body.slideshow-on #rev_slider_1_1.rev_slider.rev_slider_fallback {
  background: #222 url('/assets/www.latabledurotisseur77.com/wp-content/uploads/restaurant-interieur.jpg') center center / cover no-repeat;
}

body.slideshow-on.phantom-sticky.sticky-on .masthead.split-header .branding {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}
body.slideshow-on.phantom-sticky.sticky-on .masthead.split-header .header-bar {
  min-height: 76px;
}

#phantom .logo-box img,
#phantom .branding img,
#phantom img.preload-me {
  max-height: 72px;
  width: auto;
  height: auto;
}

/* Lazy-load plugin should not hide content on static archive */
body.layzr-loading-on img {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  body.phantom-sticky.phantom-main-logo-on.fancy-header-on #fancy-header {
    padding-top: 80px;
  }
  body.slideshow-on #main-slideshow .rev_slider_wrapper,
  body.slideshow-on #rev_slider_1_1.rev_slider {
    min-height: 320px;
  }
}

/* Faster perceived load: hide full-screen loader (theme waits on remote assets) */
body #load {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.loader-active #page,
body:not(.loader-removed) #page {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Logo sizing in split header */
.masthead.split-header .branding img.preload-me {
  max-height: 100px;
  width: auto;
  height: auto;
}
