# Gallery

## Introduction

Gallery component uses the bootstrap grid structure.

## How to Setup <a href="#how-to-setup" id="how-to-setup"></a>

### **HTML Stucture** <a href="#html-stucture" id="html-stucture"></a>

```markup
<div class="row hk-gallery">
    <div class="col-lg-2 col-md-4 col-sm-4 col-6 mb-10" data-src="dist/img/gallery/mock1.jpg">
        <a href="#" class="">
            <div class="gallery-img" style="background-image:url('dist/img/gallery/mock1.jpg');"></div>
        </a>
    </div>
    ....
    ....
    <div class="col-lg-2 col-md-4 col-sm-4 col-6 mb-10" data-src="dist/img/gallery/mock1.jpg">
        <a href="#" class="">
            <div class="gallery-img" style="background-image:url('dist/img/gallery/mock1.jpg');"></div>
        </a>
    </div> 
</div>
```

## Dependency

For image and video light box we used [lightGallery](http://sachinchoolur.github.io/lightGallery/) third party plugin.

### CSS

```markup
<!-- Lightgallery CSS -->
<link href="vendors/lightgallery/dist/css/lightgallery.min.css" rel="stylesheet" type="text/css">
```

### JS

```markup
<!-- Gallery JavaScript -->
<script src="vendors/lightgallery/dist/js/lightgallery-all.min.js"></script>
<script src="dist/js/froogaloop2.min.js"></script>
<script src="dist/js/gallery-data.js"></script>

```

### Initialize lightGallery js

```javascript
/***** LightGallery init start*****/	
$('.hk-gallery').lightGallery({  showThumbByDefault: false,hash: false});
/***** LightGallery init end*****/
```

## &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hencework.gitbook.io/pangong/pages/gallery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
