/* 
Theme Name: Hello Elementor Child
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
p:last-child {
	margin-bottom: 0;
}


.product-brand-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
}

.product-brand-item {
	text-align: center;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	padding: 20px;
	box-sizing: border-box;
}

.product-brand-item img {
	max-width: 50%;
	height: 80px;
	object-fit: contain;
	transition: 0.3s ease;
}

.product-brand-item:hover img {
	scale: 1.1;
}


/* =========================
DESKTOP - 5 COLUMNS
========================= */

/* Left edge */
.product-brand-item:nth-child(5n + 1) {
	border-left: 1px solid #ddd;
}

/* Top edge */
.product-brand-item:nth-child(-n + 5) {
	border-top: 1px solid #ddd;
}


/* =========================
TABLET - 3 COLUMNS
========================= */

@media (max-width: 768px) {

	.product-brand-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.product-brand-item:nth-child(5n + 1) {
		border-left: 0;
	}
	.product-brand-item:nth-child(-n + 5) {
		border-top: 0;
	}
	.product-brand-item:nth-child(3n + 1) {
		border-left: 1px solid #ddd;
	}
	.product-brand-item:nth-child(-n + 3) {
		border-top: 1px solid #ddd;
	}
}


/* =========================
MOBILE - 2 COLUMNS
========================= */

@media (max-width: 575px) {

	.product-brand-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.product-brand-item:nth-child(3n + 1) {
		border-left: 0;
	}
	.product-brand-item:nth-child(-n + 3) {
		border-top: 0;
	}
	.product-brand-item:nth-child(2n + 1) {
		border-left: 1px solid #ddd;
	}
	.product-brand-item:nth-child(-n + 2) {
		border-top: 1px solid #ddd;
	}
	.product-brand-item img {
		max-width: 100%;
	}
}