/* ACF Loop Grid Widget Styles */

.elementor-loop-grid-container {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
	gap: var(--grid-column-gap, 20px) var(--grid-row-gap, 20px);
	width: 100%;
}

.e-loop-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

/* Ensure template content inherits proper styling */
.e-loop-item > * {
	width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.elementor-loop-grid-container {
		grid-template-columns: repeat(var(--grid-columns, 2), 1fr);
	}
}

@media (max-width: 576px) {
	.elementor-loop-grid-container {
		grid-template-columns: repeat(var(--grid-columns, 1), 1fr);
	}
}

/* Ensure images in loop items are responsive */
.e-loop-item img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Ensure buttons and links work properly */
.e-loop-item a {
	text-decoration: none;
}

/* Alert styles for no posts/template messages */
.elementor-alert {
	padding: 12px 16px;
	margin-bottom: 15px;
	border-radius: 4px;
	border-left: 4px solid;
}

.elementor-alert-info {
	background-color: #e7f3ff;
	border-left-color: #0084ff;
	color: #0084ff;
}

.elementor-alert-danger {
	background-color: #ffe7e7;
	border-left-color: #ff0000;
	color: #ff0000;
}
