=== jon's attribute image galleries for woocommerce ===
Contributors: jonthewebb
Tags: woocommerce, gallery, product variations, lightbox, photoswipe
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.1.2
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Per-attribute image galleries for WooCommerce variable products, with a PhotoSwipe 5 lightbox.

== Description ==

JW Gallery replaces WooCommerce's default product gallery on variable products with a per-attribute image gallery system. Assign a set of images to each variation term (e.g. each colour), and the gallery automatically switches when the customer selects a variation.

**Features**

* Per-attribute image gallery — assign different images to each term of a variation attribute (e.g. Red, Blue, Green)
* PhotoSwipe 5 lightbox — full-screen image viewer with keyboard navigation
* Vertical thumbnail strip in the lightbox for quick navigation between images
* Image captions pulled from the WordPress media library
* Admin tab on the product edit page for managing gallery images per term
* Drag-and-drop image reordering in the admin
* Settings page (WooCommerce > Gallery Settings) to control:
  * Thumbnail strip layout (columns, gap, active outline colour)
  * Whether default product images are appended to attribute galleries
  * Lightbox theme (light, dark, dim) and background opacity
  * Max lightbox image size with a one-click thumbnail regeneration tool
* Automatically updates gallery data if a WooCommerce attribute slug is renamed
* Cleans up gallery data when a variation term is removed or deleted

== Installation ==

1. Upload the `jwgallery` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins screen in WordPress
3. Go to WooCommerce > Gallery Settings to configure the plugin
4. On any variable product, open the **Attribute Galleries** tab to assign images to each variation term

== Changelog ==

= 1.1.2 =
* Fix lightbox top padding so images don't hide behind the PhotoSwipe navigation bar
* Fix lightbox left padding to account for the thumbnail strip sidebar
* Fix image dimensions passed to PhotoSwipe to use attachment metadata, preventing portrait images appearing incorrectly sized

= 1.1.1 =
* Apply default variation gallery on page load when a default attribute is set

= 1.1.0 =
* Add setting to dim inactive thumbnails in the product gallery (default off)
* Add setting for lightbox thumbnail sidebar colour: white (default) or grey

= 1.0.0 =
* Initial release
