
.tech-stack {
	display: inline-flex;
	font-size: var(--wp--preset--font-size--body-reg, var(--dimension-desktop-text-styles-size-body-reg, 16px));
	position: relative;
	width: auto;
}

.tech-stack__empty, .tech-stack__loading {
	border: 2px dashed #ccc;
	border-radius: 8px;
	color: #666;
	padding: 2rem;
	text-align: center;
}

.tech-stack__loading {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tech-stack__grid {
	display: inline-flex;
	gap: var(--tech-stack-gap, 1.5rem);
	justify-content: center;
	padding: 0;
}

.tech-stack--gap-large, .tech-stack--gap-medium, .tech-stack--gap-small {
	--tech-stack-gap: 1em;
}

.tech-stack__item, .tech-stack__pill {
	align-items: center;
	display: flex;
	justify-content: center;
}

.tech-stack__pill {
	border-radius: 8px;
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	gap: .75rem;
	gap: .5em;
	min-height: 100%;
	padding: 10px 12px;
	text-decoration: none;
	transition: all .2s ease;
	width: 100%;
}

.tech-stack--theme-dark .tech-stack__pill {
	background: hsla(0, 0%, 100%, .08);
	background: transparent;
	border: 1px solid hsla(0, 0%, 100%, .15);
	border-color: var(--surface-surface-border, inherit);
}

.tech-stack--theme-light .tech-stack__pill {
	background: rgba(0, 0, 0, .03);
	background: transparent;
	border: 1px solid rgba(0, 0, 0, .08);
	border-color: var(--surface-surface-border, inherit);
}

.tech-stack__logo {
	flex-shrink: 0;
	height: 1.5em;
	-o-object-fit: contain;
	object-fit: contain;
	width: 1.5em;
}

.tech-stack__name {
	font-weight: 350;
	white-space: nowrap;
}

.tech-stack--align-left .tech-stack__grid {
	justify-content: flex-start;
}

.tech-stack--align-center {
	justify-content: center;
	left: 50%;
	margin-left: auto;
	margin-right: auto;
	transform: translateX(-50%);
}

.tech-stack--align-center .tech-stack__grid {
	justify-content: center;
}

.tech-stack--align-right .tech-stack__grid {
	justify-content: flex-end;
}

.tech-stack__grid {
	display: grid;
	display: flex;
	flex-wrap: wrap;
	gap: var(--tech-stack-gap, 1rem);
	grid-template-columns: repeat(var(--tech-stack-columns, 5), 1fr);
}

.tech-stack--has-fading {
	position: relative;
}

.tech-stack--has-fading:after, .tech-stack--has-fading:before {
	background: linear-gradient(to right, var(--bkgd-bkgd, inherit), transparent);
	bottom: 0;
	content: "";
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 120px;
	z-index: 1;
}

.tech-stack--has-fading:before {
	left: 0;
}

.tech-stack--has-fading:after {
	background: linear-gradient(to left, var(--bkgd-bkgd, inherit), transparent);
	right: 0;
}

@media (max-width:1200px) {
	.tech-stack__grid {
		grid-template-columns: repeat(min(var(--tech-stack-columns, 5), 4), 1fr);
	}
}

@media (max-width:900px) {
	.tech-stack__grid {
		grid-template-columns: repeat(min(var(--tech-stack-columns, 5), 3), 1fr);
	}
	
	.tech-stack__logo {
		height: 28px;
		width: 28px;
	}
	
	.tech-stack__name {
		font-size: 1rem;
	}
}
