/* Keep the Target – Logo Wall
   Styling stays deliberately quiet: the site's own palette and type come
   through, and everything below is adjustable from Elementor's Style tab. */

.ktt-logo-wall {
	--ktt-columns: 5;
	--ktt-column-gap: 40px;
	--ktt-row-gap: 56px;
	--ktt-logo-height: 64px;
}

/* Filter bar ------------------------------------------------------------ */

.ktt-logo-wall__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-bottom: 40px;
}

.ktt-logo-wall__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ktt-logo-wall__filter {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ktt-logo-wall__filter:focus-visible,
.ktt-logo-wall__search-input:focus-visible,
.ktt-logo-wall__sort-select:focus-visible,
.ktt-logo-wall__more-button:focus-visible,
.ktt-logo-item__inner:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ktt-logo-wall__filter-count {
	font-size: .8em;
	opacity: .65;
}

.ktt-logo-wall__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-inline-start: auto;
}

.ktt-logo-wall__bar:not(:has(.ktt-logo-wall__filters)) .ktt-logo-wall__tools {
	margin-inline-start: 0;
}

/* Search ---------------------------------------------------------------- */

.ktt-logo-wall__search {
	position: relative;
	width: 260px;
	max-width: 100%;
}

.ktt-logo-wall__search-input {
	width: 100%;
	padding: 9px 36px 9px 16px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.3;
}

.ktt-logo-wall__search-input::-webkit-search-cancel-button {
	display: none;
}

.ktt-logo-wall__search-clear {
	position: absolute;
	inset-inline-end: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: .6;
}

.ktt-logo-wall__search-clear:hover {
	opacity: 1;
}

/* Sort ------------------------------------------------------------------ */

.ktt-logo-wall__sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ktt-logo-wall__sort-label {
	font-size: .9em;
	opacity: .75;
}

.ktt-logo-wall__sort-field {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ktt-logo-wall__sort-field::after {
	content: "";
	position: absolute;
	inset-inline-end: 14px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	pointer-events: none;
}

.ktt-logo-wall__sort-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 8px 36px 8px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background-color: transparent;
	background-image: none;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	cursor: pointer;
}

/* Native dropdown lists ignore most styling on macOS; the closed control
   above is what the font settings apply to. */
.ktt-logo-wall__sort-select option {
	color: initial;
	background: #fff;
}

/* Count and empty state ------------------------------------------------- */

.ktt-logo-wall__count {
	margin: 0 0 20px;
	font-size: .9em;
	opacity: .7;
}

.ktt-logo-wall__empty {
	margin: 24px 0 0;
}

/* Grid ------------------------------------------------------------------ */

.ktt-logo-wall__grid {
	display: grid;
	grid-template-columns: repeat(var(--ktt-columns), minmax(0, 1fr));
	column-gap: var(--ktt-column-gap);
	row-gap: var(--ktt-row-gap);
	align-items: center;
}

.ktt-logo-item {
	min-width: 0;
}

.ktt-logo-item[hidden] {
	display: none;
}

.ktt-logo-item__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.ktt-logo-item__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--ktt-logo-height);
}

.ktt-logo-item__media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.ktt-logo-item__name {
	margin-top: 12px;
	text-align: center;
	line-height: 1.3;
}

/* Optional grey-until-hover treatment */

.ktt-grayscale-yes .ktt-logo-item__media img {
	filter: grayscale(1);
	opacity: .75;
}

.ktt-grayscale-yes .ktt-logo-item__inner:hover .ktt-logo-item__media img,
.ktt-grayscale-yes .ktt-logo-item__inner:focus-visible .ktt-logo-item__media img {
	filter: grayscale(0);
	opacity: 1;
}

/* Show more ------------------------------------------------------------- */

.ktt-logo-wall__more {
	margin-top: 32px;
	text-align: center;
}

.ktt-logo-wall__more-button {
	padding: 11px 24px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ktt-logo-wall__more-button[hidden] {
	display: none;
}

/* Utilities ------------------------------------------------------------- */

.ktt-logo-wall__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ktt-logo-wall * {
		transition-duration: .01ms !important;
	}
}

@media (max-width: 767px) {
	.ktt-logo-wall__tools {
		margin-inline-start: 0;
		width: 100%;
	}

	.ktt-logo-wall__search {
		flex: 1 1 100%;
	}
}
