adding a styling prototype function for lightbox implementation