=== Gallery Plugin for WordPress - Envira Photo Gallery ===
Contributors: enviragallery
Tags: gallery, image gallery, photo gallery, best gallery plugin, wordpress gallery plugin
Requires at least: 5.5.0
Tested up to: 6.8.3
Requires PHP: 7.0
Stable tag: 1.12.1
License: GNU General Public License v2.0 or later

Envira Gallery is the fastest, easiest, and most powerful WordPress image gallery. Lightbox with Drag & Drop builder that helps you create beautiful galleries with just a few clicks.

== Description ==

= Gallery Plugin =

https://www.youtube.com/watch?v=4jHG3LOmV-c&w=532&rel=0

= Helpful Links: =
* [Gallery Demo](https://enviragallery.com/demo/)
* [Gallery Documentation](https://enviragallery.com/docs/)
* [Gallery Support](https://wordpress.org/support/plugin/envira-gallery-lite/)

We believe that you shouldn't have to hire a developer to create a great WordPress gallery. That's why we built <a href="http://enviragallery.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="Envira">Envira</a>, a drag & drop **photo gallery plugin** that's both EASY, FAST and POWERFUL.

Envira Gallery is highly optimized for web and server performance because we understand the importance of speed when it comes to SEO and conversion.

Our free photo gallery plugin works great with the top page builders including: Elementor, Beaver Builder, Divi, as well as the block editor.

> <strong>Envira Pro</strong><br />
> Photo Gallery by Envira is the lite version of the popular Envira Pro plugin that comes with all the features you will ever need including albums, tags, social media integration, gallery templates / gallery layouts, deeplinking, pagination, e-commerce, image proofing, and tons more. <a href="http://enviragallery.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="Envira">Click here to purchase Envira Pro now!</a>

**Envira Gallery** has been downloaded over 5,000,000+ times. Here's why smart photographers, designers, and developers love Envira, and you will too!

= Drag & Drop Photo Gallery Builder =

We were tired with the bloated and buggy gallery widgets and plugins. That's why we built Envira to adapt to your workflow and allow you to create an amazing gallery in minutes. By using our easy to use <a href="http://enviragallery.com/features/drag-drop-builder/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">drag and drop builder</a>, you can upload your photos, rearrange them, and create an image gallery in 5 minutes or less.

You can also add gallery blocks built for the block editor with only a few clicks.

> The trick to making difficult things easy is to keep the easy things still easy. <strong>Envira makes everything easy.</strong> If you've struggled with WordPress gallery plugins that take video tutorials to learn, you're going to love Envira.<br>
> Chris Lema - WordPress Blogger and Speaker

= Mobile Ready, SEO Friendly and Optimized for Speed =

Envira Gallery is 100% responsive and mobile-friendly by default. We optimized every query on the front-end and the back-end to ensure maximum speed for your website visitors.

Plus, you have the ability for meta data, deeplinks, standalone galleries, and pagination.

= Sharing and Selling Photos Made EASY =

Social media integrations, image proofing, and WooCommerce store integration.

> Not only is Envira <strong>exceptionally well built</strong> behind the scenes, it's also exceptionally easy to use. It's perfect for those who really want to get things done.<br>
> Pippin Williamson - WordPress Core Contributor and founder of EasyDigitalDownloads

= Easy to Customize and Extend =

You can easily customize with our built-in WordPress templates and layouts or create your own.

But we also knew that our developer friends may want to extend it further. That's why Envira comes with tons of hooks and filters (and yes it's all very-well documented).

> Most WordPress gallery options are either too basic or require a PhD to figure out. For my clients, I need something that is easy to use yet powerful. Envira is the answer. Its straight forward approach means it is a breeze for my clients to quickly create galleries. Nevertheless, with the API and documentation available, it also allows developers to make customizations and extend functionality when necessary. Simply put, <strong>Envira is a great tool</strong> for everyone's tool chest.<br>
> Jared Atchison - Top Notch Engineer and WordPress Developer

= Full Envira Feature List =

* Drag & Drop Photo Gallery Builder
* 100% Responsive - Mobile Friendly
* Beautiful Layouts / Templates for Customization
* <a href="http://enviragallery.com/addons/albums-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Albums</a> - Easily organize your photo galleries, choose cover photos, and more.
* <a href="http://enviragallery.com/addons/social-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Social Sharing</a> - Share your photos on Facebook, Twitter, Pinterest
* <a href="http://enviragallery.com/addons/videos-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Video Galleries</a> - Not just for photos! You can add YouTube, Vimeo, Wistia, and other videos in your video gallery.
* <a href="http://enviragallery.com/addons/watermarking-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Watermarking</a> - Protect your images from theft with watermarking.
* <a href="http://enviragallery.com/addons/slideshow-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Slideshow</a> - Add beautiful slideshow with autoplay, manual controls, and more.
* <a href="http://enviragallery.com/addons/deeplinking-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Deeplinking</a> - Make your gallery and images SEO friendly and easily link to individual images with deeplinking.
* <a href="http://enviragallery.com/addons/pagination-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Pagination</a> - Split your large galleries into multiple pages to improve page speed, user experience, and pageviews.
* <a href="https://enviragallery.com/addons/elementor-addon/" rel="friend">Elementor</a> - Quickly and easily create, edit, and sync your image and video galleries directly inside the Elementor page builder.
* <a href="http://enviragallery.com/addons/proofing-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Image Proofing</a> - We made client image proofing easy for your photography business.
* <a href="http://enviragallery.com/addons/woocommerce-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WooCommerce Integration</a> - Instantly display and sell your photos with the most popular eCommerce software on the web.
* <a href="http://enviragallery.com/addons/tags-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Image Tags</a> - Organize your WordPress photos with tags for easy search and display that also filtrable.
* <a href="http://enviragallery.com/addons/password-protection-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Password Protection</a> - Prevent unauthorized access to your WordPress galleries.
* <a href="http://enviragallery.com/addons/standalone-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Standalone Galleries</a> - Create independent galleries that are not tied to your posts or pages.
* <a href="http://enviragallery.com/addons/exif-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">EXIF Meta Data</a> - Display your EXIF data including camera model, aperture, shutter speed, and more.
* <a href="http://enviragallery.com/addons/pinterest-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Pinterest</a> - Add the Pinterest Pin It button to improve your reach.
* <a href="http://enviragallery.com/addons/instagram-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Instagram</a> - Import Instagram images.
* <a href="http://enviragallery.com/addons/fullscreen-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">FullScreen Display</a> - Take advantage of the native fullscreen and Lightbox display.
* <a href="http://enviragallery.com/addons/supersize-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Supersized Images</a> - Don't want to crop or resize your images? Supersize allows you to do just that.
* <a href="http://enviragallery.com/addons/dynamic-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Dynamic Galleries</a> - Easily create galleries on the fly from various different sources.
* <a href="http://enviragallery.com/addons/defaults-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Gallery Defaults</a> - Speed up the creation process by saving your default settings.
* <a href="http://enviragallery.com/addons/css-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">CSS Styles</a> - Customize your portfolio by adding custom CSS and styles.
* <a href="http://enviragallery.com/addons/lightroom-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Adobe Lightroom to WordPress</a> - Do you love Adobe Lightroom? We do too. You can automatically create and sync photo galleries from your Adobe Lightroom Collections. We made Lightroom to WordPress import easy!
* <a href="http://enviragallery.com/addons/zip-importer-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Zip Importer</a> - Nobody likes uploading images individually. Now you can build a gallery from a .zip file.
* <a href="http://enviragallery.com/addons/dropbox-importer-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Dropbox Importer</a> - You can easily import photos from your Dropbox account.
* <a href="http://enviragallery.com/addons/nextgen-importer-addon/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">NextGen Importer</a> - Not a fan of NextGen? You can import your files in few simple clicks.
* <a href="https://enviragallery.com/features/image-compression/" rel="friend">Auto Image Compression</a> - Reduce the file size of your images and make your site run fast.
* Want us to add something else? Suggest a feature and we'll get it added!

> When it comes to WordPress gallery plugins, <strong>Envira has no equal</strong>. Solid enough to do the job right, while flexible enough to handle any situation you can throw at it.<br>
> Andrew Norcross - Expert WordPress Consultant and Core Contributer

= Demos =

While Envira offers tons of features, below are some of the most requested demos.

* <a href="http://enviragallery.com/demo/lightbox-gallery-demo/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WordPress Lightbox Photo Display Demo</a>
* <a href="http://enviragallery.com/demo/masonry-gallery-demo/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WordPress Masonry Display Demo</a>
* <a href="http://enviragallery.com/demo/albums-demo/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WordPress Photo Albums Demo</a>
* <a href="http://enviragallery.com/demo/polaroid-gallery/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WordPress Polaroid Photo Display Demo</a>
* <a href="http://enviragallery.com/demo/video-gallery-demo/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">WordPress Video Display Demo</a>
* See the full list of <a href="http://enviragallery.com/demo/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Envira Demos</a>

= Popular Envira Tutorials =

We share tons of photography tutorials at the <a href="http://enviragallery.com/blog/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">Envira blog</a>.

Below are some of the most popular Envira tutorials:

* <a href="http://enviragallery.com/how-to-add-a-polaroid-gallery-in-wordpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">How to Add a Polaroid Gallery in WordPress</a>
* <a href="http://enviragallery.com/how-to-create-a-masonry-image-gallery-in-wordpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">How to Create a Masonry Image Gallery in WordPress</a>
* <a href="http://enviragallery.com/how-to-create-a-photo-album-in-wordpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">How to Create a Photo Album in WordPress</a>
* <a href="http://enviragallery.com/how-to-create-an-image-slider-for-your-wordpress-galleries/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">How to Create an Image Slider for Your WordPress Galleries</a>
* <a href="http://enviragallery.com/add-pagination-galleries-wordpress/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend">How to Add Pagination in WordPress Image Galleries</a>


= Credits =


= Branding Guidelines =
When writing about the photo gallery plugin by Envira Gallery, please make sure to seperate the two words, and capitalize.

Envira Gallery (correct)
EnviraGallery (incorrect)
Envira gallery (incorrect)
envira galleries (incorrect)
Envira Photo Gallery (incorrect)

= What's Next =

If you like this plugin, then consider checking out our other plugins:

If you like our Envira Gallery plugin, then consider checking out our other projects:
* <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> - The Best WordPress Slider Plugin
* <a href="https://wpforms.com.com/">WP Forms</a> #1 drag & drop online form builder for WordPress (trusted by 5 million sites).
* <a href="https://optinmonster.com/">OptinMonster</a> - Get more email subscribers with the most popular conversion optimization plugin for WordPress.
* <a href="https://aioseo.com/">AIOSEO</a> - The original WordPress SEO plugin to help you rank higher in search results (trusted by over 3 million sites).
* <a href="https://www.monsterinsights.com/">MonsterInsights</a> - See the stats that matter and grow your business with confidence. Best Google Analytics plugin for WordPress.
* <a href="https://www.seedprod.com/">SeedProd</a> - Create beautiful landing pages with our powerful drag & drop landing page builder.
* <a href="https://wpmailsmtp.com">WP Mail SMTP</a> - Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.
* <a href="https://smashballoon.com/">Smash Balloon</a> - #1 social feeds plugin for WordPress - display social media content in WordPress without code.
* <a href="https://wpcode.com/">WPCode</a> - must have WordPress code snippet management plugin to help you future-proof website customization (trusted by 1.5 million sites).
* <a href="https://snapcreek.com/">Duplicator</a> - popular WordPress backup and migration plugin used by over 1 million websites.
* <a href="https://wpsimplepay.com/">WP Simple Pay</a> - #1 Stripe payments plugin for WordPress. Start accepting one-time or recurring payments without a shopping cart.
* <a href="https://pushengage.com/">Push Engage</a> - Connect with visitors after they leave your website with the leading web push notification plugin.
* <a href="https://rafflepress.com/">RafflePress</a> - Best WordPress giveaway and contest plugin to grow traffic and social followers.
* <a href="https://trustpulse.com/">TrustPulse</a> - Add real-time social proof notifications to boost your store conversions by up to 15%.
* <a href="https://searchwp.com/">SearchWP</a> - The most advanced custom WordPress search plugin to improve WordPress search quality.
* <a href="https://affiliatewp.com/">AffiliateWP</a> - #1 affiliate management plugin for WordPress. Add a referral program to your online store.
* <a href="https://easydigitaldownloads.com/">Easy Digital Downloads</a> - The best WordPress eCommerce plugin to sell digital products (eBooks, software, music, and more).
* <a href="https://sugarcalendar.com/">Sugar Calendar</a> - A simple event calendar plugin for WordPress that's both easy and powerful.
* <a href="https://www.wpcharitable.com/">WPCharitable</a> - Top-rated WordPress donation and fundraising plugin for WordPress.

Visit <a href="https://www.wpbeginner.com/" rel="friend" title="WPBeginner">WPBeginner</a> to learn from our <a href="https://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress Tutorials</a> and find out about other <a href="https://www.wpbeginner.com/category/plugins/" rel="friend" title="Best WordPress Plugins">best WordPress plugins</a>.


== Installation ==

1. Install Envira Lite either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" rel="friend">how to install a WordPress plugin</a>)
2. Activate Envira Lite.
3. Navigate to the Envira tab at the bottom of your admin menu and click the "Add New" button to begin creating, or you can create directly inside the post/page/custom post type of your choice.
4. Salivate for new features and <a href="http://enviragallery.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="Envira">purchase the full version of Envira</a>!

== Screenshots ==

1. Envira Gallery post type overview screen.
2. Modal box to select images from your Media Library.
3. Overlay helper with shortcode and template tag information.
4. Media modal for inserting a gallery into your WYSIWYG editor.
5. Gallery display on the front-end with 2 columns.
6. Lightbox view of the gallery.

== Frequently Asked Questions ==

= Who should use Envira? =

Envira Gallery is perfect for photographers, designers, bloggers, and small businesses.

= Do I need to have coding skills to use Envira? =

Absolutely not. You can create and customize beautiful image and video galleries without any coding knowledge. We made it super easy.

= What kind of galleries can I create with Envira Gallery? =

Here are the types of galleries you can create:

Photo / Image
Video Gallery
Fullscreen
Image Gallery with Albums
Image Gallery with Lightbox
Featured Content
Masonry Photo
Justified Image
Image Gallery with Pagination
Polaroid Image
Instagram Photo Gallery
Image Gallery with Tags
Pinterest Image Gallery
Photo Gallery with EXIF Data
Image Gallery with Watermarks
Photo Gallery with Slideshow
Image Gallery with Zoom
Photo Gallery with Proofing
Lazyload
WooCommerce Product
Image Gallery with Lightroom Photos
Password Protected Photo
Dropbox Images
Image from Zip Files
Photos with Breadcrumb Navigation
Custom Post Type Content
YouTube Video
Vimeo Video
Wistia Video
Twitch.tv Video
Custom Video
Dynamic Photos
Portfolio
Tiles
Grid
Music Gallery

= I'd like access to all features. How can I get them? =

You can get access to more features, Addons and support by <a href="http://enviragallery.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="Click here to learn more about Envira!">visiting the Envira website and purchasing a support license</a>. Purchasing a support license gets you access to the full version of Envira, automatic updates and support, and depending on the level of support license, you can even get exclusive access to Envira Addons!

= Is Envira translation ready? =

Yes, Envira has full translation and localization support via the envira-gallery textdomain. To submit a translation, see https://translate.wordpress.org/projects/wp-plugins/envira-gallery-lite

== Changelog ==
1.12.1
* Added: Post type meta cap for better compatibility

1.12.0
* Added: Show likes text on comments tab.
* Added: TikTok Videos as gallery source
* Enhanced: Permission check when converting galleries in bulk.

1.11.1
* Added: New Template - Spread Harmony (Pro)
* Fixed: Permission issue on convert gallery feature

1.11.0
* New: Easily import and showcase your Dribbble galleries with a click of a button
* New: We've added a new Highlight Grid layout
* Updates: Misc bug fixes

1.10.2
* Added: Envira Importer addon upsell

1.10.1
* Added: Envira CDN menu link

1.10.0
* Added: Vertical focus layout modal
* Added: Search addon upsell tab

1.9.1
* Added: Feature to convert WordPress Galleries to Envira Galleries
* Fixed: Upload images on block failing in some cases

1.9.0
* Added: Upsell tab for creating images with Envira AI

1.8.17
* Added: Comments Addon tab
* Added: New envira gallery layout option called Creative which available in Pro
* Fixed: Polaroid layout template on Gutenberg block

1.8.16
* Fixed: Improved caption sanitization
* Fixed: Improved permissions checks

1.8.15
* Fixed: Sanitization of image titles
* Fixed: User permissions control

1.8.14
* Added: Responsive CSS for the most popular tag
* Added: New gallery layout icon section
* Added: Upsell banner section for pro gallery layout
* Added: Show plugin names when a user selects an addon or plugin on the onboarding wizard.
* Added: made header logo clickable
* Added: New layout icon
* Added: Bump PHP version to a minimum of 7.0

1.8.13
* Fixes: Add gallery button alignment
* Fixes: Minimum PHP version required
* Added: Minified files improvements

1.8.12
* Added: Onboarding Wizard
* Added: Image Licensing tab
* Fixed: Capabilities check for some AJAX calls

1.8.11
* Fixed: Upgrade process validation

1.8.10
* Fixed: CSS selectors for admin page

1.8.9
* Added: Permission options
* Added: Animations tab

1.8.8
* Fixes: Gutenberg Block bug fixes

1.8.7.3
* Fixes: Adjust Ajax permissions

1.8.7.2
* Tweak: Changing SweetAlert library version to prevent the interference on .ru sites.

1.8.7.1

* Fixed: Notices for non-admin users in admin.
* Fixed: Capability checks for ajax calls

1.8.7

* Added: UI Enhancements
* Fixed: Empty src on add image to gallery

1.8.6.2

* Fixed: Link Validation when inserting images into galleries

1.8.6.1

* Fixed: depricated usort callback

1.8.6

* Fixed: php 8 compatibility

1.8.5.3

* Fixed: Links not opening in new window

1.8.5.2

* Fixed: Undefined function enviratope on mason layouts.

1.8.5.1

* Fixed: incorrect variable name.

1.8.5

* Fixed: Improve sanitization.
* Fixed: Remove legacy code.
* Fixed: Replace local scripts with WordPress core scripts

1.8.4.7

* Fixed: Improve admin sanitization.

1.8.4.6

* Fixed: Javascript warnings when adding a gallery in the block editor.

1.8.4.5

* Fixed: Tweaked icon spacing and placement in image editor blocks.

1.8.4.4

* Fixed: Issue involving not being able to edit caption or title in the block editor for individual images in a gallery in certain layouts.

1.8.4.3

* Fixed: Issue involving fatal error when empying a gallery from the trash.

1.8.4.2

* Fixed: Corrected text box type and visual look of subscription form signup modal.

1.8.4.1

* Fixed: Resolved fatal error upon checking for active plugins upon loading.

1.8.4.0

* Fixed: Issue involving margin resets in block editor.
* Fixed: Issue involving margin resets in block editor.
* Fixed: Issue involving gallery button with Classic Editor.
* Fixed: Resolved conflict with Enhanced Media Replace Pro.
* Fixed: PHP 8.x and related notices and warnings.

1.8.3.9

* Updated: Images

1.8.3.8

* Updated: Getting Started area - new tab and updated CSS.

1.8.3.7

* Fixed: Issue regarding lightbox and uploaded WebP images.

1.8.3.6

* Updated: Removed Additional Marketing Copy
* Added: WebP Support

1.8.3.5

* Updated: Expired Marketing Offer

1.8.3.4

* Updated: Promotional messages.
* Fixed: PHP 8 related notices.

1.8.3.3

* Fixed: Improving metadata sanitization.

1.8.3.2

* Fixed: Lightbox Bug with WordPress 5.6.0

1.8.3.1

* Added: Lifetime option notice.

1.8.3

* Updated: Recent News On Welcome Screen.
* Updated: Links On What's New Screen.

1.8.2

* Added: Most Popular sort in Addons screen.
* Updated: Recent News On Welcome Screen.
* Updated: Links On What's New Screen.

1.8.1.0

* Added: envira_gallery_output_item_src_retina filter.
* Added: envira_gallery_title_display filter.
* Added: filters for aspectRatio, loop, lightbox openclose effect, and more for Fancybox settings.
* Updated: Subscription number.
* Updated: Remove references to Facebook Video.

1.8.0.3

* Fix: Tweak UI for upcoming WordPress 5.5 admin visual changes.
* Fix: Removed outdated URL from translation files.

1.8.0.2

* Removed: Legacy style related to Gutenberg.

1.8.0.1

* Removed: Redirect upon updating.

1.8.0

* Added: Enable links in lightbox settings, when lightbox is deactivated.
