/* The Photos page.
 *
 * This page has no counterpart in the original site, so there is no Elementor
 * markup to reproduce — it is written as ordinary blocks and styled here, using
 * the same values the rest of the site uses so it does not read as a bolt-on:
 * the black title band, Roboto 48/700 in white, the same 1140px measure.
 *
 * The point of the page is that an officer can add this year's photos without
 * touching a layout, so the grid has to absorb whatever they upload — portrait
 * phone shots next to landscape ones — without anybody choosing a size.
 */

/* Every other page opens on a chapter photo with the title over it, so this one
   does too — a different photo, or the page reads as a copy of About. The
   gradient is what keeps white type legible over whatever is behind it. */
.kulc-page-hero {
	align-items: flex-end;
	background-color: #000;
	background-image:
		linear-gradient(to bottom, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .65) 100%),
		url("/wp-content/uploads/2025/07/LCA-2021-Actives-Homecoming-Tailgate-2048x1400.jpg");
	background-position: center 40%;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
	display: flex;
	min-height: 364px;
	padding: 10px 10px 24px;
}

.kulc-page-hero .wp-block-heading {
	color: #FFF;
	font-family: "Roboto", Sans-serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	margin: 0 auto;
	max-width: 1140px;
	width: 100%;
}

.kulc-photos {
	margin: 0 auto;
	max-width: 1140px;
	padding: 60px 20px 80px;
}

.kulc-photos > p {
	color: #000;
	font-family: "Roboto", Sans-serif;
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 40px;
	max-width: 70ch;
}

/* Every tile is the same shape whatever was uploaded. Cropping is what makes a
   grid of phone photos look deliberate; the alternative is a ragged edge that
   moves every time somebody adds a picture.
 *
 * A grid rather than the gallery block's own flex layout: flex sizes the last
 * row by how many photos happen to be in it, so adding an eleventh picture
 * would rearrange the tenth. In a grid the tiles never move. */
.kulc-photos .wp-block-gallery.has-nested-images {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, 1fr);
}

/* The gallery block sets each tile's width with `:not(#individual-image)` in
   the selector — a trick that borrows an id's specificity so theme CSS cannot
   reach it. The same trick, one class deeper, is what reaches it. */
.kulc-photos .wp-block-gallery.has-nested-images figure.wp-block-image:not(#kulc) {
	flex-basis: auto;
	margin: 0;
	width: 100%;
}

.kulc-photos .wp-block-gallery.has-nested-images figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 767px) {
	.kulc-page-hero {
		min-height: 220px;
	}

	.kulc-page-hero .wp-block-heading {
		font-size: 32px;
	}

	.kulc-photos {
		padding: 40px 16px 56px;
	}

	/* Three tiles across a phone is four photos wide and none of them legible. */
	.kulc-photos .wp-block-gallery.has-nested-images {
		gap: 10px;
		grid-template-columns: repeat(2, 1fr);
	}
}
