/* Wave 9 opt-in native grids: complete desktop rows and readable mobile photos. */
html body main .w9-gallery .w9-gallery__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
@media (min-width: 62rem) { html body main .w9-gallery .w9-gallery__grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
html body main section.w9-gallery.w9-gallery--portraits .g-grid__item { align-self: start; aspect-ratio: auto; height: auto; }
html body main section.w9-gallery.w9-gallery--portraits .g-grid__item img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
html body main section.w9-gallery.w9-gallery--portraits .g-grid__item:is(:hover,:focus-visible) img { transform: none; }
.w9-comparison-labels { display: none; }
.before-after__item.is-ready .w9-comparison-labels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: .75rem; color: #1d2a33; font-size: .875rem; font-weight: 700; }
.before-after__item.is-ready .before-after__panel figcaption { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; white-space: nowrap; }
.before-after__comparison:not(.is-ready) .before-after__panel figcaption { position: static; display: block; border-radius: 0; font-size: .875rem; }
