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

#gallery-filters {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
}
.filter {
	display: flex;
	flex-direction: column;
}
.filter > label {
	font-size: 0.8em;
	font-weight: bold;
}
#gallery-filters input, select {
	border-radius: 4px;
	border: 2px solid var(--color-link);
	background-color: var(--color-background);
	color: var(--color-text);
	padding: 2px 4px;
}
#gallery-filters input:hover, select:hover {
	background-color: var(--color-accent);
}
#gallery-filters > input[type=submit] {
	font-size: 1.25em;
}

#tag-selector {
	position: relative;
	z-index: 100;
}
#tag-selector > input:focus-visible {
	background-color: var(--color-accent);
	outline: none;
}
#tag-selector.active > input {
	border-radius: 4px 4px 0 0;
	border-bottom: none;
}
#tag-selector.active {
	margin-bottom: 2px;
}
.suggestions-list {
	width: 100%;
	position: absolute;
	display: flex;
	flex-direction: column;
	border-radius: 0 0 4px 4px;
	overflow: hidden;
	border: 2px solid var(--color-link);
}
.suggestions-list > button {
	width: 100%;
	text-align: left;
	border-radius: 0;
	background-color: white;
	border: none;
}
.suggestions-list > button:hover, .suggestions-list > button:focus-visible {
	background-color: var(--color-accent);
	outline: none;
}
.suggestions-list > button.hidden {
	display: none;
}
.suggestions-list.hidden {
	display: none;
}

.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);
	transition: transform 0.1s;
}
.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-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%;
	}
}
