* {
	box-sizing: border-box;
}

body {
	font-family: Open Sans, Arial, Helvetica, sans-serif;
	font-size: 80%;
	padding: 1em;
	background-color: whitesmoke;
}

header {
	width: 100%;
	text-align: center;
}

footer {
	position: fixed;
	width: 100%;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.5);
}

h1 {
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	font-size: 36px;
	letter-spacing: 0.15em;
}

*:lang(zh) {
	display: none;
}

img {
	height: 300px;
	width: 300px;
	object-fit: contain;
	margin: auto;
}

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0, 0);
	transition: transform ease-in-out 200ms;
}

.lightbox:target {
	transform: scale(1, 1);
}

.lightbox__content {
	width: 85%;
	height: 85%;
	background: black;
	padding: 5em;
	position: relative;
}

.lightbox img {
	height: 100%;
	width: 100%;
}

.close {
	position: absolute;
	width: 1.5em;
	height: 1.5em;
	background: red;
	top: -1em;
	right: -1em;
	border-radius: 50%;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.close:after {
	content: "×";
	color: white;
	font-weight: 700;
	font-size: large;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	grid-auto-rows: auto;
	grid-gap: 1rem;
	padding: 1rem;
}

.dark article {
	background-color: rgb(75, 75, 75);
	color: whitesmoke;
}

.light article {
	background-color: white;
	color: rgb(75, 75, 75);
	box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
		rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.card {
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	padding: 1rem;
	width: 100%;
	text-align: center;
	break-inside: avoid;
}

.sold:after {
	content: " SOLD";
	color: red;
}

@media screen and (device-width: 360px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 2) {
	.lightbox__content {
		width: 100%;
		height: 100%;
	}
}
