/* What Divi's JavaScript did on the WordPress site, in CSS (the copied pages don't load Divi's scripts).
   Not a design change: every rule here restores how live looks. */

/* Resized images (engine/tools/optimize-images.mjs) keep the original file's exact proportions. :where() has zero
   specificity, so any aspect-ratio or height the site's CSS sets (crops on phones, fixed-height tiles) still wins. */
/* Only images that carry --ar: on any other image, var(--ar) would be invalid and reset aspect-ratio to auto,
   dropping the ratio the browser takes from the width/height attributes. */
:where(img[data-opt][style*="--ar"]) { aspect-ratio: var(--ar); }

/* Gallery grids: Divi's JS shows each page of items; every gallery here shows all of its items. */
.et_pb_gallery_grid .et_pb_gallery_item { display: block; }
