/* Wildflower V6.4: touch-first, non-blocking portfolio browsing.
   Avoid page-root overflow clipping and large invisible buttons that can capture iOS gestures. */
.wf-ui-icon, .wf-control-icon { display:block; width:1em; height:1em; flex:none; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.gallery-toolbar .control-glyph { display:inline-flex; width:20px; height:20px; align-items:center; justify-content:center; vertical-align:middle; font-family:inherit; }
.gallery-toolbar .control-glyph svg{width:18px;height:18px}
@media (max-width:900px) {
  /* iOS Safari can treat overflow clipping on its root scroll container as a scroll lock. */
  html { overflow-x:visible!important; overflow-y:auto!important; scroll-behavior:auto!important; height:auto!important; }
  body.portfolio-page { overflow-x:visible!important; overflow-y:visible!important; height:auto!important; min-height:100vh; position:relative; }
  body.portfolio-page.lightbox-open, body.portfolio-page.story-open { overflow-y:hidden!important; }
  .portfolio-page .gallery-section, .portfolio-page .gallery-grid,
  .portfolio-page .onyx-collage-lead, .portfolio-page .onyx-collage-side,
  .portfolio-page .onyx-collage-mediums, .portfolio-page .onyx-collage-minis {
    touch-action:pan-y pinch-zoom; overscroll-behavior-y:auto!important;
  }
  .portfolio-page .gallery-item.onyx-collage-card { touch-action:pan-y pinch-zoom; }
  .portfolio-page .gallery-item.onyx-collage-card img { touch-action:pan-y pinch-zoom; -webkit-user-drag:none; }
  /* Navigation and controls must never cover or steal the gallery's swipes. */
  .portfolio-page .gallery-item button.photo-open {
    inset:auto 4px 4px auto!important;
    width:44px!important;height:44px!important;
    min-width:44px!important;min-height:44px!important;
    z-index:5!important;border-radius:50%;
    background:transparent!important;
    touch-action:pan-y pinch-zoom;
  }
  .portfolio-page .gallery-item .v4-photo-arrow { pointer-events:none!important; }
  /* Remove repaint-heavy treatments on cards while fingers scroll. */
  .portfolio-page .gallery-grid.onyx-collage .gallery-item.onyx-collage-card,
  .portfolio-page .gallery-grid.onyx-collage .gallery-item.onyx-collage-card:hover,
  .portfolio-page .gallery-grid.onyx-collage .gallery-item.onyx-collage-card:focus-within {
    transform:none!important;will-change:auto!important;transition:none!important;
    box-shadow:0 4px 12px rgba(0,0,0,.35)!important;
  }
  .portfolio-page .gallery-section { scroll-margin-top:136px!important; }
  .portfolio-page .category-nav { touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
  .portfolio-page .gallery-footer a { touch-action:manipulation; }
  /* Contain decorative effects within their own boundaries, not the document scroller. */
  .portfolio-page .page-hero { overflow:hidden!important; }
  .portfolio-page .gallery-toolbar { background:#111216!important; }
}
@media(max-width:620px){
 .portfolio-page .onyx-collage-mediums,.portfolio-page .onyx-collage-minis {align-items:flex-start!important;}
 .portfolio-page .gallery-footer {display:flex!important;flex-wrap:wrap;gap:10px!important;}
 .portfolio-page .gallery-footer .button {min-width:0!important;flex:1 1 130px;width:auto!important;}
}
@media(max-width:900px){
  /* The fixed booking dock covered the lower screen and could intercept swipe gestures. */
  .portfolio-page .visitor-dock{display:none!important;}
  .portfolio-page .gallery-section{padding-top:56px!important;padding-bottom:64px!important;}
  .portfolio-page .gallery-footer{margin-top:27px!important;}
}
