1) { lightboxIndex = (lightboxIndex - 1 + lightboxItems.length) % lightboxItems.length; imgModalSrc = lightboxItems[lightboxIndex].src; imgModalDesc = lightboxItems[lightboxIndex].alt || ''; selectedId = String(lightboxItems[lightboxIndex].id); }"
@keydown.arrow-right.window="if (imgModal && lightboxItems.length > 1) { lightboxIndex = (lightboxIndex + 1) % lightboxItems.length; imgModalSrc = lightboxItems[lightboxIndex].src; imgModalDesc = lightboxItems[lightboxIndex].alt || ''; selectedId = String(lightboxItems[lightboxIndex].id); }"
x-effect="document.body.classList.toggle('product-lightbox-open', imgModal)"
>
Item Details
Product name: ice silk sunscreen headgear
Product color: black/hemp gray
Functional characteristics: sunscreen/UV protection/cooling effect/outdoor riding, etc.
Applicable scenarios: cycling sports/fitness sports/fishing
Product size: free size (elastic)
Product size: as shown