/*
Theme Name:   IEEE Canada (Region 7)
Theme URI:    https://ieeecanada.org
Description:  Child theme of Divi for IEEE Canada / Region 7. This directory is the entire deploy surface of the ieeecanada repository.
Author:       Samson Labs
Author URI:   https://samsonlabs.net
Template:     Divi
Version:      0.1.0
Requires PHP: 8.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ieeecanada-child
*/

/*
 * Template: Divi — capital D, matching wp-content/themes/Divi exactly.
 * macOS filesystems are case-insensitive and WP Engine's are not, so
 * `Template: divi` works locally and produces a broken theme in production.
 * CI checks this header on every push for exactly that reason.
 *
 * Divi enqueues this file itself. See functions.php for why nothing here calls
 * wp_enqueue_style() for it.
 *
 * Nearly empty on purpose: this file holds only fixes for conflicts between
 * plugins and the theme, below. Every visual customization on this site still
 * lives in the database — Divi Theme Options, the Divi Builder, Theme Builder
 * layouts, and the Customizer's Additional CSS (post 8). None of it has been
 * extracted into code, and none of it should be moved here casually: a rule
 * added here and a rule left in the database are the same rule twice, and the
 * database one wins more often than you would expect.
 */

/*
 * NextGEN Gallery's photo viewer (SimpleLightbox) goes above Divi's header.
 *
 * NextGEN stacks the viewer at 1035 (overlay) and 1040 (wrapper). Divi's
 * header, fixed at desktop widths, sits at 99999 and 100000, so it covered the
 * viewer's close button and photo counter (RMPICWROS-151). The wrapper has no
 * position, so its z-index did nothing; position: relative lets it carry the
 * close button, counter and photo above the overlay and the header. It holds
 * only fixed elements, so it takes no space on the page. `body` outranks
 * NextGEN's one-class rules whichever stylesheet loads last.
 */
body .sl-overlay {
  z-index: 100001;
}

body .sl-wrapper {
  position: relative;
  z-index: 100002;
}
