/* Grid wrapper */
.ag-ig-grid {
    display: grid;
    grid-template-columns: repeat(var(--ag-ig-columns, 4), 1fr);
    gap: 0;
    width: 100%;
}

/* Card */
.ag-ig-card {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	isolation: isolate;
	--ag-transition: 400ms;
}

/* Background image layer */
.ag-ig-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

/* Overlay */
.ag-ig-card .ag-ig-layer {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
	transition: background var(--ag-transition) ease, opacity var(--ag-transition) ease;
	z-index: 1;
}

/* Content centering */
.ag-ig-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 2;
}

.ag-ig-inner {
	padding: 24px;
	max-width: 32ch;
	display: grid;
	gap: 12px;
}

/* Typography defaults (user can override in controls) */
.ag-ig-title {
	margin: 0;
	font-weight: 900;
	font-size: 31px;
	line-height: 1.15;
	color: #fff;
}

.ag-ig-desc {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: #fff;
}

/* Hover interactions */
.ag-ig-card:hover .ag-ig-layer,
.ag-ig-card:focus-within .ag-ig-layer {
	/* Elementor hover background control will override this. Keep a minimal fallback. */
	background: rgba(0,0,0,.7);
}



/* Responsive help (Elementor will also inject media queries for column changes) */
/* Responsive column counts are handled dynamically via Elementor controls */