body {
	background: #020024;
	background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(112, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
	cursor: url('./assets/mouse-cursor.png'), auto;
	color: white;
	text-align: center;
}

body.loading {
	height: 100vh;
}

#loading-img {
	margin: 0 auto;
}

.container {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(1, 1fr); /* Default for mobile: 2 columns */
	justify-items: center;
}

/* Desktop layout: 5 columns when screen is wider */
@media screen and (min-width: 768px) {
	.container {
		grid-template-columns: repeat(5, 1fr);
	}
}

.to-be-loaded {
	display: none;
}

img {
	max-width: 100%;
	display: block;
}

figure {
	background: white;
	padding: 10px 10px 30px 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1.5px 4px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Optional: random rotation for scattered effect */
	transform: rotate(-2deg);
	transition: transform 0.2s;
}

figure:nth-child(even) {
	transform: rotate(2deg);
}

figure img {
	width: 230px;         /* Set your desired width */
	height: 270px;        /* Set your desired height */
	object-fit: cover;    /* Ensures the image covers the area */
	margin-bottom: 10px;
}

figure a {
	color: black;
	text-decoration: none;
}

figcaption {
	background: none;
	color: #222;
	font-family: "Edu NSW ACT Cursive", cursive, sans-serif;
	font-size: 0.9em;
	padding: 0 5px;
	margin-top: 10px;
	opacity: 0.85;
	text-align: center;
	width: 100%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.3;
}
