=== Tobidase Swipe LightBox ===
Contributors: satohata
Tags: lightbox, gallery, popup, swipe, youtube, vimeo
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Plugin URI: https://satoruhatano.xsrv.jp/tobidase-swipe-lightbox/

A swipeable lightbox for images and videos. Supports YouTube, Vimeo, Niconico, Dailymotion, and MP4. Fully configurable from the admin panel.

== Description ==

Tobidase Swipe LightBox opens images and videos in a fullscreen popup with swipe support.

**Features:**

* Swipeable popup for images and videos
* Supports YouTube, Vimeo, Niconico, Dailymotion, and MP4
* Auto-fetches title and thumbnail from YouTube and Vimeo
* Two popup styles: **standard popup** and **zoom**
* Switch popup style per post type in the admin settings
* Override the style for individual items directly in the post editor
* Group images and videos within a post for sequential slideshow display
* Pause and resume slideshow at group boundaries
* Slide counter display (current / total)
* Loop, autoplay, and mute options
* Caption alignment (center / left)
* Keyboard navigation (← →, Esc)
* Admin bar compatible (z-index safe)
* Hint animation on popup open (mobile)

**How to open an image in the popup:**

1. Insert an image in the post editor
2. Click the image → click "Link" in the block toolbar
3. Select "Media File" and save

**How to insert a video:**

1. Place the cursor at the insertion point in the post editor (Text mode)
2. Click the "Tobidase Movie" quicktag button
3. Enter the video URL in the dialog
4. Optionally add a thumbnail and caption, then click "Insert"

== Installation ==

1. Upload the `tobidase-swipe-lightbox` folder to `/wp-content/plugins/`
2. Activate the plugin from the WordPress admin "Plugins" screen
3. Go to **Tools > Tobidase SLB** to configure settings

== Frequently Asked Questions ==

= The popup does not open when I click an image. =

Make sure the image link is set to "Media File". If the link is set to "Attachment Page" or "None", the popup will not open.

= Can I use this with videos? =

Yes. YouTube, Vimeo, Niconico, Dailymotion, and MP4 are supported. Use the "Tobidase Movie" quicktag button in the post editor to insert a video.

= How do I navigate between slides? =

* **Mobile:** Swipe left/right, or tap the navigation buttons at the bottom of the popup
* **PC:** Click the arrow buttons on the left/right of the screen, or use the ← → keyboard keys
* **Close:** Tap the ✕ button, tap the background, or press Esc

== External services ==

This plugin connects to third-party services to retrieve video metadata (thumbnails and titles). These requests are made only when a video URL is entered in the admin editor dialog, or when a post containing a [tdslb-movie] shortcode is published/saved.

= YouTube =
Fetches thumbnail images and video titles via the YouTube oEmbed API and thumbnail CDN.
No personal user data is transmitted; only the video ID is used.
Terms of service: https://www.youtube.com/t/terms
Privacy policy: https://policies.google.com/privacy

= Vimeo =
Fetches thumbnail images and video titles via the Vimeo v2 API.
No personal user data is transmitted; only the video ID is used.
Terms of service: https://vimeo.com/terms
Privacy policy: https://vimeo.com/privacy

= Niconico (NicoVideo) =
Fetches thumbnail images and video titles via the Niconico public API (ext.nicovideo.jp).
No personal user data is transmitted; only the video ID is used.
Terms of service: https://account.nicovideo.jp/rules/account
Privacy policy: https://account.nicovideo.jp/rules/account

= Dailymotion =
Fetches thumbnail images and video titles via the Dailymotion public API.
No personal user data is transmitted; only the video ID is used.
Terms of service: https://www.dailymotion.com/legal/terms
Privacy policy: https://www.dailymotion.com/legal/privacy

== Changelog ==

= 1.0 =
* Initial release

== Upgrade Notice ==

= 1.0 =
Initial release.