/* A-Key El Paso Photos — scoped to .akey-ep-* classes.
   Black / gold from akey-brand-colors (logo gold #F2D27A / #D8A840 / #C9A13B, black #111).
   Does not change the header, logo, heroes, menus, or other plugins. */

.akey-ep-section {
	max-width: 1220px;
	margin: 40px auto;
	padding: 28px 15px 10px;
	border-top: 2px solid #C9A13B;
}

.akey-ep-title {
	text-align: center;
	margin: 0 0 12px;
	color: #111111;
}

.akey-ep-lead {
	text-align: center;
	font-size: 18px;
	color: #555555;
	margin: 0 auto 28px;
	max-width: 720px;
	line-height: 1.5;
}

.akey-ep-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 0 0 1.5em;
}

.akey-ep-item {
	margin: 0;
}

.akey-ep-item picture,
.akey-ep-item img,
.akey-ep-item .akey-ep-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.akey-ep-item img,
.akey-ep-item .akey-ep-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center center;
	background: #111111;
}

/* Portrait lead (the A-Key truck) keeps a taller frame; the two skylines
   beside it on desktop fill the same row height for a stronger first impression. */
.akey-ep-item.is-lead img,
.akey-ep-item.is-lead .akey-ep-img {
	aspect-ratio: 3 / 4;
	object-position: center 35%;
}

.akey-ep-caption {
	font-size: 14px;
	color: #555555;
	margin: 8px 0 0;
	line-height: 1.4;
}

@media (max-width: 899px) {
	.akey-ep-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.akey-ep-item.is-lead {
		grid-column: 1 / -1;
	}

	.akey-ep-item.is-lead img,
	.akey-ep-item.is-lead .akey-ep-img {
		aspect-ratio: 4 / 3;
		object-position: center 40%;
		max-height: 520px;
	}
}

@media (max-width: 599px) {
	.akey-ep-section {
		padding: 24px 0 8px;
		margin: 28px auto;
	}

	.akey-ep-lead {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.akey-ep-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

@media (max-width: 419px) {
	.akey-ep-grid {
		grid-template-columns: 1fr;
	}

	.akey-ep-item.is-lead img,
	.akey-ep-item.is-lead .akey-ep-img {
		max-height: none;
	}
}
