/**
 * Clients / Partners logos widget.
 */

.dw-client {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 110px;
	padding: var(--dw-space-5);
	border: 1px solid var(--dw-color-border);
	border-radius: var(--dw-radius);
	background: var(--dw-color-white);
	transition: border-color var(--dw-duration) var(--dw-ease), box-shadow var(--dw-duration) var(--dw-ease);
}

a.dw-client:hover {
	border-color: var(--dw-color-primary);
	box-shadow: var(--dw-shadow);
}

.dw-client img {
	width: auto;
	max-width: 100%;
	max-height: 60px;
	object-fit: contain;
	transition: filter var(--dw-duration) var(--dw-ease), opacity var(--dw-duration) var(--dw-ease);
}

.dw-clients-gray-yes .dw-client img {
	filter: grayscale(1);
	opacity: 0.65;
}

.dw-clients-gray-yes .dw-client:hover img,
.dw-clients-gray-yes .dw-client:focus-visible img {
	filter: none;
	opacity: 1;
}

/*
 * Logo wall: logos sit directly on the page, without boxes; a hairline
 * between them keeps the rhythm. Arrows are enough on wide screens, dots on
 * phones (both at once is noise).
 */
.dw-clients .dw-client {
	min-height: 96px;
	border: 0;
	border-radius: 0;
	background: none;
}

.dw-clients .swiper-slide + .swiper-slide .dw-client {
	box-shadow: -1px 0 0 var(--dw-color-border);
}

/* In a grid the separators only make sense while the logos fit one row. */
@media (min-width: 1025px) {
	.dw-clients .dw-grid__item + .dw-grid__item .dw-client {
		box-shadow: -1px 0 0 var(--dw-color-border);
	}
}

.dw-clients a.dw-client:hover {
	box-shadow: none;
}

@media (min-width: 768px) {
	.dw-clients .dw-carousel__nav ~ .swiper-pagination,
	.dw-clients .dw-carousel__footer:has(.dw-carousel__nav) .swiper-pagination {
		visibility: hidden;
	}
}

@media (max-width: 767px) {
	.dw-clients .dw-carousel__footer:has(.swiper-pagination) .dw-carousel__nav {
		display: none;
	}
}
