/* A-Key Photo Gallery — scoped to .akey-gal-* classes. Does not change the header, logo, or theme. */

/* --- Gallery page --- */
.akey-gal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 0 0 2.5em;
}

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

.akey-gal-item a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}

.akey-gal-item img,
.akey-gal-item .akey-gal-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

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

.akey-gal-section + .akey-gal-section {
	margin-top: 0.5em;
}

.akey-gal-cta {
	text-align: center;
	margin: 40px auto 20px;
	padding: 32px 20px;
	background: #111;
	color: #fff;
	border-radius: 8px;
}

.akey-gal-cta p {
	color: #cccccc;
	font-size: 18px;
	max-width: 700px;
	margin: 0 auto 22px;
	line-height: 1.5;
}

.akey-gal-cta a.akey-gal-call {
	background-color: #d9534f;
	color: #fff;
	padding: 15px 30px;
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 5px;
	display: inline-block;
}

.akey-gal-cta .akey-gal-sub {
	font-size: 16px;
	font-weight: bold;
	color: #ffcc00;
	margin: 16px 0 0;
}

/* --- Homepage Recent Work strip --- */
.akey-gal-recent {
	max-width: 1220px;
	margin: 40px auto;
	padding: 0 15px;
}

.akey-gal-recent h2 {
	text-align: center;
	margin-top: 0;
}

.akey-gal-recent-lead {
	text-align: center;
	font-size: 18px;
	color: #555;
	margin: 0 0 25px;
}

.akey-gal-recent-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin: 0 0 25px;
}

.akey-gal-recent-grid a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}

.akey-gal-recent-grid img,
.akey-gal-recent-grid .akey-gal-recent-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

.akey-gal-recent-more {
	text-align: center;
	margin: 0 0 10px;
}

.akey-gal-recent-more a {
	background-color: #0056b3;
	color: #fff;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 5px;
	display: inline-block;
}

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

@media (max-width: 599px) {
	.akey-gal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.akey-gal-recent-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.akey-gal-cta a.akey-gal-call {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: center;
		padding: 16px 12px;
	}
}

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