/* Load after glass-controls.css. Secondary routes only: Home stays immersive. */
body:is(.photos-page, .reviews-page) {
  --secondary-chrome-height: 84px;
}

/* Reuse the existing header, not a new fixed overlay. Its empty space remains
   click-through; the logo, menu trigger and dropdown keep their own hit areas. */
body:is(.photos-page, .reviews-page) .site-header {
  height: var(--secondary-chrome-height);
  background: var(--ivory);
  pointer-events: none;
}
body:is(.photos-page, .reviews-page) .site-header .nav-wrap {
  min-height: var(--secondary-chrome-height);
  height: var(--secondary-chrome-height);
  padding-block: 18px;
}

/* The strip stays sticky in its section, so it leaves normally at the footer.
   Its opaque paint extends through both gutters without widening any layout
   box, clipping focus rings, or putting an overlay in front of the controls. */
body.photos-page .photo-gallery-tools,
body.reviews-page .reviews-controls {
  top: var(--secondary-chrome-height);
  isolation: isolate;
}
body.photos-page .photo-gallery-tools::before,
body.reviews-page .reviews-controls::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ivory);
  pointer-events: none;
}

/* Retire the old 940px cap; search/status and cards share the same container. */
body.reviews-page .reviews-page-main .reviews-controls {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
