/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/*
 * Jul 2026 cleanup: two old rules (.fusion-logo img reset, 60px page titles)
 * were removed. They had never applied — this file's enqueue depended on a
 * non-existent 'avada-stylesheet' handle, so WordPress silently skipped it,
 * likely since Avada 7. The enqueue in functions.php is fixed now, so rules
 * added below WILL load on the site.
 */

/*
 * Jul 20 2026 — Fix duplicated photos in Avada masonry galleries.
 * The WebP plugin wraps gallery images in a <picture> tag, so Avada's own
 * rule that hides the redundant sizing image
 * (.fusion-masonry-element-container > img { display: none }) stopped
 * matching — the image is now nested as
 * .fusion-masonry-element-container > picture > img. The un-hidden image
 * rendered a second time BELOW the cover-background copy, so every photo in a
 * masonry gallery appeared twice. This extends Avada's rule to the <picture>
 * case. First seen on /catholic-pilgrimage-rome/.
 */
.fusion-masonry-element-container > picture,
.fusion-masonry-element-container .fusion-image-wrapper > picture {
    display: none;
}
