Use data-gallery instead of the rel attribute as selector for HTML5 validity.