# viccei/acronic architecture

> Architecture diagram of the GitHub repository viccei/acronic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/viccei/acronic
- Repository: https://github.com/viccei/acronic

## Overview

This is a small jQuery lightbox-gallery plugin. It gathers sibling gallery items, opens a modal for the selected item, loads and displays its image with optional metadata, and supports next/previous navigation, resizing, and closing. The runtime is implemented in one source file; the supplied excerpts do not show how a page initializes the plugin or connect its stylesheets.

Main entry points: [`js/lightboxgallery.js`](https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js) (Gallery plugin)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Gallery user"))
node_plugin["Gallery plugin<br/>[lightboxgallery.js]"]
node_items["Gallery items<br/>[lightboxgallery.js]"]
node_modal["Modal display<br/>[lightboxgallery.js]"]
node_image["Image loading<br/>[lightboxgallery.js]"]

node_user -->|"interacts with"| node_plugin
node_plugin -->|"reads siblings"| node_items
node_plugin -->|"creates modal"| node_modal
node_plugin -->|"loads selected"| node_image
node_image -->|"renders image"| node_modal
node_user -->|"navigates or closes"| node_modal

click node_plugin "https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js"
click node_items "https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js"
click node_modal "https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js"
click node_image "https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_plugin,node_items,node_modal,node_image toneTeal
```

## Components

### Other components

- **Gallery user**
- [Gallery plugin](https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js): `js/lightboxgallery.js`
- [Gallery items](https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js): `js/lightboxgallery.js`
- [Modal display](https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js): `js/lightboxgallery.js`
- [Image loading](https://github.com/viccei/acronic/blob/master/js/lightboxgallery.js): `js/lightboxgallery.js`

## Connections

- Gallery user → Gallery plugin: interacts with (evidence: `js/lightboxgallery.js`)
- Gallery plugin → Gallery items: reads siblings (evidence: `js/lightboxgallery.js`)
- Gallery plugin → Modal display: creates modal (evidence: `js/lightboxgallery.js`)
- Gallery plugin → Image loading: loads selected (evidence: `js/lightboxgallery.js`)
- Image loading → Modal display: renders image (evidence: `js/lightboxgallery.js`)
- Gallery user → Modal display: navigates or closes (evidence: `js/lightboxgallery.js`)
