/* ====================================
   CLIENTS GRID STYLES
   ==================================== */

/* * The default (mobile-first) styles:
 * The grid will be 2 columns wide on small screens.
 */
.clients-grid-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile/tablet */
	gap: 5px; /* Tight gap for mobile */
	max-width: 100%; /* Ensure it fits within #primary padding */
	margin: 0 auto;
	padding: 80px 5px 0; /* Small padding to prevent touching screen edges */
}

/* Individual Grid Item - Creates the essential square shape and link behavior */
.client-grid-item {
	display: block;
	position: relative;
	width: 100%;
	/* Creates a perfect 1:1 aspect ratio (square) */
	padding-top: 100%;
	overflow: hidden;
}

/* GIF Image Styling */
.client-gif-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Ensures the image covers the entire square space without distortion */
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* Optional: Hover effect (works well on desktop) */
.client-grid-item:hover .client-gif-thumbnail {
	transform: scale(1.05); /* Zoom in slightly on hover */
}

/* * DESKTOP/LARGE SCREEN STYLES
 * Use your existing 800px breakpoint to increase columns and gap.
 */
@media screen and (min-width: 800px) {
	.clients-grid-container {
		margin-top: 40px;
		margin-left: 300px;
		grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
		gap: 10px; /* Larger gap for desktop */
		max-width: 900px; /* Optional: Set a max width for the grid if desired */
		padding: 0;
	}

	/* Optional: For very large screens, you could go to 4 columns */
	@media screen and (min-width: 1200px) {
		.clients-grid-container {
			grid-template-columns: repeat(4, 1fr);
			max-width: 1200px;
		}
	}
}
