/* ==========================================================================
   Partners grid
   --------------------------------------------------------------------------
   Built on the theme's existing #clients / .thumb component
   (see main.css ~lines 2633-2656): that component already provides the
   logo-fade-on-hover + name text-overlay behavior, using the same markup
   pattern (#clients .thumb > figure > a > img + .text-overlay). This file
   only adds square tile framing so logos of different shapes/sizes sit
   consistently, matching the tight logo-grid reference the client shared.
   ========================================================================== */

#clients .thumb figure {
	position: relative;
	margin: 0;
	background: #fff;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

#clients .thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	box-sizing: border-box;
}

/* Homepage carousel (#owl-clients) — larger and tighter than before.
   !important used defensively since this carousel appears to be
   affected by some other sitewide styling/init we don't have
   visibility into (see the destroy-then-reinit guard in index.php). */
#owl-clients.owl-carousel .item {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 150px !important;
	padding: 2px !important;
}

#owl-clients.owl-carousel .item img {
	max-height: 130px !important;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Trim this theme's default spacing around the carousel: .inner-sm
   normally adds 60px padding below the heading, and .outer-top-md
   normally adds a 100px top margin before the button — both stack up
   to a lot of empty space above/below the carousel itself. */
#partners-teaser > .container.inner-sm {
	padding-bottom: 20px;
}

#partners-teaser .outer-top-md {
	margin-top: 25px;
}

/* Hide the dots/pagination outright via CSS. The JS options (dots:false,
   pagination:false) keep getting overridden — dots were still showing
   up especially on mobile/resize — so this guarantees they stay hidden
   regardless of what's re-initializing the carousel behind the scenes.
   Covers both v1 (.owl-pagination) and v2 (.owl-dots) naming. */
#owl-clients .owl-pagination,
#owl-clients .owl-dots {
	display: none !important;
}
