/**
 * Frontend base styles.
 *
 * Minimal CSS for builder pages rendered on the frontend.
 * Applied only to pages using the Antimanual Builder.
 *
 * @package Antimanual_Builder
 * @since   1.0.0
 */

/* Box sizing reset */
.ambld-page *,
.ambld-page *::before,
.ambld-page *::after {
	box-sizing: border-box;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
}


/* Section */
.ambld-block--section {
	width: 100%;
}

.ambld-section__inner {
	max-width: var(--ambld-spacing-container-max, 1200px);
	margin: 0 auto;
	padding: 0 20px;
}

/* Row */
.ambld-block--row {
	display: flex;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.ambld-block--row {
		flex-direction: column;
	}

	.ambld-block--column {
		width: 100% !important;
	}
}

/* Divider */
.ambld-block--divider {
	border: none;
	border-top: 1px solid var(--ambld-color-border, #e2e8f0);
}

/* Header & Footer */
.ambld-header,
.ambld-footer {
	width: 100%;
}

/* Main content area */
.ambld-main {
	min-height: 100vh;
}

/* Lazy loading fade-in */
img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
	opacity: 1;
}



.ambld-template .site-footer {
	width: 100%;
	max-width: 100% !important;
}

.ambld-template .site-header {
	width: 100%;
	max-width: 100% !important;
}
