> For the complete documentation index, see [llms.txt](https://docs.responsiveads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.responsiveads.com/developers/lightbox.md).

# Lightbox

Lightbox is a type of format. Designers can create two different designs like a Fully Fluid Format and a Lightbox Format. This allows showing completely two different designs based on a certain event.

There are two ways of opening a Lightbox:

* Adding a click action from the editor.
* Using the Radical API to open the Lightbox format.

There are two ways of closing a Lightbox:

* Adding a click action from the editor.
* Using the Radical API to close the Lightbox format.

When a Lightbox Format is opened, it triggers the `onAdRender` function. If you need to access the Lightbox instance, you can use the `onAdRender` function after opening it.

Here is an example of how to access the Lightbox instance:

Inside the `onAdRender` function:
