/**
 * Fancy Lady Industries hub, enqueued on `is_page( 'flihistory' )` alone. No rule names a page
 * ID: the page is replayed onto production afresh, so its ID there is not this checkout's.
 *
 * Each picture is a link and its caption is the year it opens, laid over the picture so the
 * destination is legible before the click.
 *
 * The caption must not swallow the click, hence pointer-events: none. Only a single image
 * block with a link gets Minimal Grid's lightbox, and the hub's are not in a gallery, so
 * the anchor navigates.
 *
 * Minimal Grid also clears its content with `:before` and `:after` boxes, and from 1200px up
 * turns the `:before` into a drop initial. In a grid container those pseudos become items in
 * their own right, which pushed the third picture onto its own row between 900px and 1200px.
 * This page's content is a row of pictures, so it needs neither.
 */

.entry-content::before,
.entry-content::after {
	content: none;
	display: none;
}

.entry-content .wp-block-image {
	position: relative;
	width: fit-content;
	margin-right: auto;
	margin-bottom: 30px;
	margin-left: auto;
}

.entry-content .wp-block-image a {
	display: block;
}

.entry-content .wp-block-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
}

.entry-content .wp-block-image figcaption {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	letter-spacing: 3px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
	pointer-events: none;
}

/**
 * Three across once the page is wide enough to hold three; one per row below that, where the
 * tile is the width of the picture.
 */

@media (min-width: 900px) {
	.entry-content {
		display: grid;
		gap: 20px;
		grid-template-columns: repeat(3, 1fr);
	}

	.entry-content .wp-block-image {
		width: 100%;
		margin: 0;
	}
}
