#image-selection-wrapper {
	padding: 1rem;
	width: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
	column-count: 3;
	column-gap: 1rem;
	column-fill: balance;
}

#image-selection-wrapper::-webkit-scrollbar {
	width: 5px;
}

#image-selection-wrapper::-webkit-scrollbar-thumb {
	background: var(--secondary-color);
	border-radius: 1rem;
}

#image-selection-wrapper::-webkit-scrollbar-track {
	background: var(--primary-color);
}

#image-selection-wrapper .selecting-image {
	position: relative;
	width: 100%;
	cursor: pointer;
}

#image-selection-wrapper .selecting-image:hover img {
	outline: 2px solid var(--secondary-color);
}

#image-selection-wrapper .selecting-image img {
	width: 100%;
	height: auto;
	filter: brightness(0.2) blur(1px);
	animation: unselect 0.3s forwards;
}

#image-selection-wrapper .selecting-image.selected img {
	filter: brightness(1) blur(0);
	animation: select 0.3s forwards;
}


#image-selection-wrapper span {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	color: #ffffff;
	white-space: nowrap;
	width: 95%;
	overflow: hidden;
	text-overflow: ellipsis;
}

footer.selecting-footer {
	position: fixed;
	right: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;

	padding: 1rem;
}

footer.selecting-footer div {
	display: flex;
	align-items: center;
	gap: 1rem;
}

footer.selecting-footer .selecting-button:hover {
	background: #00000050;
	color: #ffffff;
	outline: 2px solid #ffffff;
}

@keyframes select {
	from {
		filter: brightness(0.6) blur(1px);
	}
	to {
		filter: brightness(1) blur(0);
	}
}

@keyframes unselect {
	from {
		filter: brightness(1) blur(0);
	}
	to {
		filter: brightness(0.6) blur(1px);
	}
}

@media (max-width: 768px) {
	#image-selection-wrapper {
		column-count: 2;
	}
}

@media (max-width: 576px) {
	#image-selection-wrapper {
		column-count: 1;
	}
}

@media (max-width: 460px) {
	footer.selecting-footer {
		flex-direction: column;
	}

	footer.selecting-footer .selecting-button {
		padding: 0.5rem 1rem;
		font-size: 12px;
	}
}
