/* V81 — tighter Products brand detail and scroll isolation for site dialogs. */
@media (min-width: 801px) and (min-height: 671px) {
  /* Directory keeps its previous dimensions; every single-brand detail uses one fixed, shorter frame. */
  .brand-gallery-dialog-v71:has(> .brand-gallery-detail-v71:not([hidden])) {
    height: min(540px, 88dvh) !important;
    max-height: min(540px, 88dvh) !important;
  }
  .brand-gallery-dialog-v71:has(> .brand-gallery-detail-v71:not([hidden])) .brand-gallery-header-v71 {
    padding-top: 22px;
    padding-bottom: 17px;
  }
  .brand-gallery-detail-v71:not([hidden]) {
    justify-content: flex-start !important;
    padding: 14px 26px 22px !important;
  }
  .brand-gallery-detail-card-v71 {
    margin: 8px auto 0 !important;
    width: min(870px, 100%);
  }
}
/* Lock the actual scrolling root. Body-only overflow:hidden may still allow scroll chaining. */
html:has(body.brand-gallery-open-v71),
html:has(body.solution-modal-open-v68),
html:has(body.service-drawer-lock),
html:has(body.contact-v64-modal-open),
html:has(.product-modal.active),
html:has(.case-modal.active),
html:has(.client-modal.active),
html:has(.clients-all-modal.active),
html:has(.staff-modal.active),
html:has(.timeline-modal.active),
html:has(.solution-detail-overlay-v68:not([hidden])) {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* Stop wheel/touch overscroll propagating from the canvas to the page. */
.brand-gallery-overlay-v71,
.solution-detail-overlay-v68,
.contact-v64-faq-overlay,
.product-modal,
.client-modal,
.clients-all-modal,
.case-modal,
.staff-modal,
.timeline-modal,
.service-drawer {
  overscroll-behavior: contain;
}
.brand-gallery-directory-v71,
.brand-gallery-grid-v71,
.brand-gallery-detail-v71,
.product-modal-content,
.service-drawer-panel {
  overscroll-behavior: contain;
}
