/* Locally hosted triLift before-and-after gallery. */
.trilift-gallery { width: 100%; position: relative; }
.trilift-gallery-stage { position: relative; aspect-ratio: 697 / 622; overflow: hidden; touch-action: pan-y; }
.trilift-gallery .trilift-gallery-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
.trilift-gallery .trilift-gallery-slide.is-active { opacity: 1; }
.trilift-gallery-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.trilift-gallery .trilift-gallery-arrows button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); color: #000; font-size: 22px; cursor: pointer; pointer-events: auto; }
.trilift-gallery .trilift-gallery-arrows button:hover { background: #fff; }
.trilift-gallery-dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.trilift-gallery .trilift-gallery-dots button { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.trilift-gallery-dots button::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: .3; }
.trilift-gallery-dots button[aria-current="true"]::before { opacity: 1; }
.trilift-gallery [hidden] { display: none; }
.trilift-gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trilift-gallery:focus-visible, .trilift-gallery button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .trilift-gallery .trilift-gallery-slide { transition: none; } }
