.costume-gallery
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px;
	margin-bottom: 2em;
}

.costume-card
{
	position: relative;
	height: 270px;

	background: linear-gradient(180deg,	#292929 0%,	#222 100%);

	border: 2px solid #3b3b3b;
	border-radius: 12px;

	overflow: hidden;
	cursor: pointer;

	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.costume-card:hover
{
	transform: translateY(-6px);
	border-color: #666;
	background:	linear-gradient(180deg,	#303030 0%,	#262626 100%);
	box-shadow:	0 8px 20px rgba(0, 0, 0, 0.45);
}

.costume-display
{
	position: absolute;

	top: 0;
	left: 0;
	right: 0;
	bottom: 28px;

	display: flex;
	align-items: center;
	justify-content: center;

	background:
		radial-gradient(
			circle,
			rgba(255, 255, 255, 0.07) 0%,
			rgba(255, 255, 255, 0.025) 35%,
			transparent 70%
		);
}

.costume-display img
{
	width: 112px;
	height: 132px;

	object-fit: contain;

	image-rendering: pixelated;

	transition:
		transform 0.2s ease,
		filter 0.2s ease;
}

.costume-card:hover .costume-display img
{
	transform: scale(1.08);
	filter:	drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

.costume-item-icon
{
	position: absolute;

	top: 12px;
	left: 12px;

	width: 32px;
	height: 32px;
	scale: 1.4;

	image-rendering: pixelated;
	/*border: 2px solid #4a4a4a;
	border-radius: 9px;
	box-shadow:	0 4px 10px rgba(0, 0, 0, 0.65);*/

	z-index: 5;

	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.costume-item-img
{
	background-size: contain !important;
}

.costume-card:hover .costume-item-icon
{
	transform:
		translateY(-2px)
		scale(1.08)
		rotate(-2deg);

	/*border-color: #777;
	box-shadow:	0 6px 14px rgba(0, 0, 0, 0.7);*/
}

.costume-item-name
{
	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	height: 58px;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 8px 15px;

	background:
		linear-gradient(
			180deg,
			rgba(32, 32, 32, 0.85),
			#202020
		);

	border-top: 1px solid #3a3a3a;

	text-align: center;

	font-size: 16px;
	font-weight: bold;

	line-height: 1.2;

	color: #eee;

	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 600px)
{
	.costume-gallery
	{
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.costume-card
	{
		height: 250px;
	}

	.costume-item-icon
	{
		width: 50px;
		height: 50px;
		top: 8px;
		left: 8px;
	}

	.costume-display img 
	{
		width: 100px;
		height: 118px;
	}

	.costume-item-name
	{
		font-size: 14px;
	}
}