There are times when it would be nice to be able to override some of the inline styles that are hard-coded into parts of a Wikidot page. There is a technique that makes this possible. The trick is to use this syntax:

selector1selector2selectorx[style]{property: value !important;
}

My specific application for this was that I wanted to remove some of the elements that are displayed when using the Lightbox Viewer with the [[gallery]] module. Using Firebug to inspect the lightbox images, I found the selectors and properties that I wanted to override. Using this technique, I was able to hide the image numbering (Image x of y), the Close button and the Prev and Next buttons.

You can use this code in a css module on any page where you have a [[gallery]]: