/**
 * Ulannii — the events page.
 *
 * Photographs lead. The claim this page makes is that these things happened and
 * somebody was there with a camera, so the pictures get the room and the words
 * stay out of their way.
 */

/* Astra's .ast-container is a flex row on a wide screen, which squeezes a
   full-bleed section down to the width of its own text. */
.page-template-template-events .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.page-template-template-events .site-main,
.page-template-template-events .site-main > article,
.page-template-template-events .entry-content {
	margin: 0;
	padding: 0;
}

/* ---------- the head ---------- */

.u-ehead {
	padding: 74px 40px 62px;
	background: #fff8f2;
	text-align: center;
}

.u-ehead__inner {
	max-width: 860px;
	margin: 0 auto;
}

.u-ehead h1 {
	margin: 0 0 14px;
	font-size: clamp(30px, 4.2vw, 48px);
	font-weight: 900;
	line-height: 1.16;
	letter-spacing: -0.02em;
	color: #26303b;
	text-wrap: balance;
}

.u-ehead h1 em {
	font-style: normal;
	color: #e2650f;
}

.u-ehead p {
	max-width: 56ch;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.75;
	color: #6b7280;
}

/* ---------- a group ---------- */

.u-events {
	padding: 72px 40px;
	background: #fff;
}

/* Alternating grounds, so four long grids of photographs do not run together
   into one undifferentiated wall. */
.u-events--tint {
	background: #fbfaf9;
}

.u-events__inner {
	max-width: 1290px;
	margin: 0 auto;
}

.u-events__name {
	margin: 0 0 34px;
	padding-left: 14px;
	font-size: clamp(19px, 2.2vw, 24px);
	font-weight: 800;
	line-height: 1.4;
	color: #26303b;
	border-left: 4px solid #e2650f;
}

.u-events__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-event {
	min-width: 0;
}

.u-event__shot {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: #f0ece8;
	box-shadow: 0 6px 18px rgba(40, 30, 20, 0.1);
}

.u-event__shot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* The date rides on the photograph rather than sitting under the caption. A
   list of events without dates is a brochure; with them it is a record, and
   putting them where the eye lands first is what makes that read. */
.u-event__when {
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	background: rgba(226, 101, 15, 0.94);
	border-radius: 99px;
}

.u-event h3 {
	margin: 13px 0 4px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.45;
	color: #26303b;
}

.u-event p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #7a8088;
}

/* ---------- the sign-off ---------- */

.u-eclose {
	padding: 54px 40px 62px;
	background: #e2650f;
	text-align: center;
}

.u-eclose p {
	margin: 0;
	font-size: clamp(21px, 2.6vw, 30px);
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #fff;
}

/* ---------- phones ---------- */

@media (max-width: 921px) {

	.u-ehead {
		padding: 44px 20px 38px;
	}

	.u-ehead p {
		font-size: 15.5px;
	}

	.u-events {
		padding: 44px 20px;
	}

	.u-events__name {
		margin-bottom: 22px;
	}

	.u-events__grid {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.u-event h3 {
		margin-top: 10px;
		font-size: 13px;
	}

	.u-event p {
		font-size: 12px;
	}

	.u-eclose {
		padding: 38px 20px 42px;
	}

}
