/*
 * Home page (page-templates/ug-home.php): replicates the old Elementor layout
 * (sections 1140px with a #101010 background, padding 50/30px, column gaps 10px).
 */

.ug-home-section {
	background-color: #101010;
	padding: 50px 0;
}

/* Pixwell in dark mode overrode Elementor section backgrounds:
   [data-theme='dark'] [data-settings*='background'].elementor-section { rgba(255,255,255,.04) } */
[data-theme='dark'] .ug-home-section {
	background-color: rgba(255, 255, 255, 0.04);
}

.ug-home-container {
	max-width: 1140px;
	margin: 0 auto;
}

/* "default" column gap from Elementor: 10px around the column content.
   Elementor columns are flex, so the margins between widgets don't collapse (20px + 50px). */
.ug-home-container--gap {
	padding: 10px;
}

.ug-home-container {
	display: flex;
	flex-direction: column;
}

.ug-home-widget:not(:last-child) {
	margin-bottom: 20px;
}

.ug-home-tiles {
	margin-top: 50px;
}

/* On the old page each tile had an image from the Themeruby demo server that didn't load
   (a broken image ~32px tall above the heading). Same spacing kept for tiles without an image. */
.ug-home-tiles .ibox:not(:has(.ibox-thumb)) {
	padding-top: 32px;
}

.ug-home-banner {
	margin-bottom: 50px;
}

.ug-home-banner a,
.ug-home-banner img {
	display: block;
}

.ug-home-banner img {
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 12px;
}

@media (max-width: 1024px) {
	.ug-home-container {
		max-width: 1024px;
	}

	.ug-home-section {
		padding: 30px 0;
	}

	.ug-home-tiles {
		margin: 0 0 30px;
	}

	.ug-home-grid {
		padding: 0 15px;
	}

	.ug-home-banner {
		margin-bottom: 30px;
	}
}

@media (max-width: 767px) {
	.ug-home-container {
		max-width: 767px;
	}

	.ug-home-section--featured .ug-home-container--gap {
		padding: 0 15px 0 5px;
	}

	.ug-home-grid {
		padding: 0 15px 0 5px;
	}
}
