/* ABOUTME: Editor-only styles for the Hero Slices ACF block. */
/* ABOUTME: Loaded via enqueue_block_assets (is_admin check), scoped to editor context. */

/* === Preview Mode: compact 4-col grid === */
.editor-styles-wrapper .clb-updated-homepage-hero-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	max-width: 100%;
}

.editor-styles-wrapper .clb-hero-slice {
	position: relative;
	overflow: hidden;
}

.editor-styles-wrapper .clb-hero-img-wrapper {
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.editor-styles-wrapper .clb-hero-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.editor-styles-wrapper .clb-hero-text-wrapper {
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 2;
}

.editor-styles-wrapper .clb-hero-text-wrapper a.button {
	display: inline-block;
	background: #208CCB;
	color: #fff !important;
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 10px;
	border-radius: 8px;
	pointer-events: none;
}

/* === ACF field form (edit mode): tidy up the repeater === */
.editor-styles-wrapper [data-type="acf/tdasc26-hero-slices"] .acf-block-fields {
	padding: 12px;
}

.editor-styles-wrapper [data-type="acf/tdasc26-hero-slices"] .acf-block-fields .acf-repeater .acf-row {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 8px;
	padding: 8px;
}
