* {
	padding: 0;
	margin: 0;
}

body {
	background: black;
	color: #aaa;
	padding: 16em 4vmin;
	font-family: sans-serif;
	font-size: 0.7em;
	line-height: 1.5;
	counter-reset: section;
}

a{
	color: inherit;
}

h1, h2{
	font-weight: normal;
	font-size: 1em;
	padding: 1em 0;
}
header{
	padding-bottom: 5em;
	max-width: 50ch;
}


article {
	display: grid;
	grid-gap: 2vmin;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

figure {
	display: flex;
	flex-direction: column;
}

figure img {
	height: auto;
	max-width: 100%;
	max-height: 100vh;
	cursor: pointer;
	background: #111;
	width: auto;
}

figure figcaption {
	padding: 1em 0 3em;
}

figure figcaption a {
	display: block;
	padding: 1em 0 2em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

figure figcaption p{
	position: relative;
}

figure figcaption p::after {
	position: absolute;
	right: 0;
	top: 0;
	counter-increment: section;
	content: "#"counter(section);
}

@media (max-width: 28rem){
	body{
		padding: 10em 0;
	}
	header{
		padding: 0 1em 5em;
	}
	figure>figcaption{
		display: block;
		padding: 1em 1em 3em;
	}

}
