@media screen and (min-width: 600px){
	main {
		width: 80%;
		max-width: 80%;
	}
}

#gallery-filters {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: center;
	gap: 0.75em;
}
.filter {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.filter > label {
	font-size: 0.8em;
	font-weight: bold;
}
#gallery-filters > input[type=submit] {
	align-self: flex-end;
}

.gallery {
	display: flex;
	flex-direction: column;
}

.gallery-items {
	display: flex;
	flex-wrap: wrap;

	justify-content: center;

	gap: 16px;
}
.post {
	display:flex;
	flex-direction: column;
	position: relative;
	border-radius: 8px;
	overflow: hidden;

	height: 200px;

	background-color: rgba(0,0,0,0.5);

	box-shadow: 0 0 2px black;
}
.post-title {
	position: absolute;
	width: 100%;
	bottom: 0;
	
	padding: 6px;
	
	font-size: 0.75em;
	font-weight: bold;
	
	color: white;
	background-color: rgba(0,0,0,0.8);

	transform: translateY(100%);
	transition: transform 0.2s;
}
.post:hover > .post-title {
	transform: translateY(0);
}
.post > a {
	width: 100%;
	height: 100%;
}
.post > a > img {
	height: 100%;
	width: auto;
}
.post > .cw {
	color: white;
	font-weight: bold;
	position: absolute;
	left: 0; right: 0; top: 0; bottom: 0;
	text-shadow: 0 0 4px black;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	text-align: center;
}

.gallery-pages {
	display: flex;
	flex-direction: row;
	width: 100%;

	margin: 1em 0;

	justify-content: center;
	align-items: center;
}
.gallery-pages > div {
	padding: 0.25em 1.5em;
}

hr {
	width: 100%;
	color: var(--color-accent);
    background-color: var(--color-accent);
    height: 0.1rem;
}

.disclaimer {
	width: 100%;
	text-align: center;
	font-size: 0.75em;
	color: var(--color-text-secondary);
}

@media screen and (max-width: 600px){
	.gallery {
		margin: 0;
	}

	#gallery-filters {
		flex-direction: column;
		gap: 0.2em;
	}
	#gallery-filters > input,
	.filter,
	#tags,
	.tag-container {
		width: 100% !important;
	}

	.gallery-items {
		flex-direction: column;
	}
	.post-title {
		transform: translateY(0);
	}
	.post {
		display:flex;
		flex-direction: column;
		position: relative;
		border-radius: 8px;
		overflow: hidden;

		height: auto;
		width: 100%;

		background-color: rgba(0,0,0,0.5);
	}
	.post > a > img {
		height: auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
  .post-title {
	transition-duration: 0.01s;
  }
}