protected function enableLightbox(Attributes $attributes)
    {
        if (!$this->rel) {
            return;
        }

        if (strncmp($this->rel, 'lightbox', 8) !== 0) {
            $attributes->setAttribute('rel', $this->rel);
        } else {
            $attributes->setAttribute('data-lightbox', substr($this->rel, 9, -1));
        }
    }