/* Global */
body {
	font-family: "Playwrite AR", cursive;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
	margin-bottom: 20px;
}
img {
	max-width: 500px;
}
h1 {
	font-size: 3rem;
	margin-top: 20px;
	margin-bottom: 20px;
}
h2 {
	font-size: 2rem;
	text-align: center;
}
.beetle {
	display: none;
}

/* mobile layout */
body {
	display: grid;
	grid-template-columns: 1fr;
	justify-content: center;
	justify-items: center;
}
img {
	border-radius: 100%;
}
.collection {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(12, 1fr);
}
.collection__item {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
		h2 {
			grid-column: 1;
			grid-row: 1;
			color: white;
			align-self: center;
			z-index: 2;
		}
		a {
			grid-column: 1;
			grid-row: 1;
		}
}

/* small tablets and up */
@media (min-width: 48em) /* 768px */ {
	.collection {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(6, 1fr);
	}
	img {
		border-radius: 10px;
		max-width: 400px;
	}
	h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.5rem;
	}
}

/* desktop and up */
@media (min-width: 64em) /* 1024px */ {
	body {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
		gap: 0;
		justify-contents: start;
	}
	.collection {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: repeat(4, 1fr);
		margin-top: 20px;
		margin-right: 20px;
	}
	h1 {
		font-size: 4rem;
		writing-mode: vertical-rl;
		margin: 20px;
		transform: rotate(180deg);
	}
}

/* hover effects */
.collection__item--black-and-white:hover {
	.beetle {
		display: block;
		position: absolute;
	}
}
.collection__item--polka-dots:hover img {
	border-radius: 100%;
	scale: 0.5;
	transition: border-radius 0.3s ease;
	transition: scale 0.3s ease;
}
.collection__item--dainty-floral:hover {
	.flower {
  		width: 75%; /* adjust to control the size */
		aspect-ratio: 1;
  		--g:/20.56% 20.56% radial-gradient(#000 calc(71% - 1px),#0000 71%) no-repeat;
  		mask: 100% 50% var(--g),93.301% 75% var(--g),75% 93.301% var(--g),50% 100% var(--g),25% 93.301% var(--g),6.699% 75% var(--g),0% 50% var(--g),6.699% 25% var(--g),25% 6.699% var(--g),50% 0% var(--g),75% 6.699% var(--g),93.301% 25% var(--g),radial-gradient(100% 100%,#000 38.366%,#0000 calc(38.366% + 1px));
	}
}