@charset "UTF-8";
/* CSS Document */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.photo {
	margin: 0;
	background-color: #111;
	border: 1px solid #222;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.photo:hover,
.photo:focus-within {
	border-color: #093;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.photo img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	background-color: #fff;
	transition: transform 0.35s ease;
}

.photo:hover img,
.photo:focus-within img {
	transform: scale(1.08);
}

.gallery--covers .photo img {
	height: auto;
	object-fit: contain;
}

.gallery--covers .photo:hover img,
.gallery--covers .photo:focus-within img {
	transform: scale(1.04);
}

.photo figcaption {
	padding: 10px 12px;
	font-size: 0.9rem;
	color: #ccc;
	line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
	.photo,
	.photo img {
		transition: none !important;
	}
}
