/**
 * slice-13.24 (E5): single-exhibition template — self-hiding for absent facts and empty grids.
 *
 * The header binds the show's facts through studio/field; when a field resolves empty the binding
 * leaves the paragraph's empty authored content, so an absent date / venue / curator would otherwise
 * show as a blank line. And an exhibition with no members — or, commonly, no installation shots —
 * would render its glcontainer as an empty box. Both collapse here (field-presence display, the same
 * discipline the artwork template uses).
 */

/* Empty bound header lines (missing dates / location / curator) collapse. */
.studio-exhibition__header p:empty {
	display: none;
}

/* A grid with no resolved items hides entirely, so the section is never an empty box. :has() keys on
   a flattened grid item (data-gl-index) — a populated works grid always has them (a multi-image work's
   own slideshow carries them too), and an empty install-shots grid has none. */
.studio-exhibition__works:not(:has( [data-gl-index] )),
.studio-exhibition__shots:not(:has( [data-gl-index] )) {
	display: none;
}
