jQuery( function( $ ) {
	// Featured image controls
	var featuredImageArchiveControls = [
		'sekhlo_blog_settings-post_image',
		'sekhlo_blog_settings-post_image_padding',
		'sekhlo_blog_settings-post_image_position',
		'sekhlo_blog_settings-post_image_alignment',
		'sekhlo_blog_settings-post_image_size',
		'sekhlo_blog_settings-post_image_width',
		'sekhlo_blog_settings-post_image_height',
		'sekhlo_resekhlo_images_notice',
	];

	$.each( featuredImageArchiveControls, function( index, value ) {
		$( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-archives' );
	} );

	var featuredImageSingleControls = [
		'sekhlo_blog_settings-single_post_image',
		'sekhlo_blog_settings-single_post_image_padding',
		'sekhlo_blog_settings-single_post_image_position',
		'sekhlo_blog_settings-single_post_image_alignment',
		'sekhlo_blog_settings-single_post_image_size',
		'sekhlo_blog_settings-single_post_image_width',
		'sekhlo_blog_settings-single_post_image_height',
		'sekhlo_resekhlo_single_post_images_notice',
	];

	$.each( featuredImageSingleControls, function( index, value ) {
		$( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-single' ).css( {
			visibility: 'hidden',
			height: '0',
			width: '0',
			margin: '0',
			overflow: 'hidden',
		} );
	} );

	var featuredImagePageControls = [
		'sekhlo_blog_settings-page_post_image',
		'sekhlo_blog_settings-page_post_image_padding',
		'sekhlo_blog_settings-page_post_image_position',
		'sekhlo_blog_settings-page_post_image_alignment',
		'sekhlo_blog_settings-page_post_image_size',
		'sekhlo_blog_settings-page_post_image_width',
		'sekhlo_blog_settings-page_post_image_height',
		'sekhlo_resekhlo_page_images_notice',
	];

	$.each( featuredImagePageControls, function( index, value ) {
		$( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-page' ).css( {
			visibility: 'hidden',
			height: '0',
			width: '0',
			margin: '0',
			overflow: 'hidden',
		} );
	} );

	// Post meta controls
	var postMetaArchiveControls = [
		'sekhlo_settings-post_content',
		'sekhlo_blog_settings-excerpt_length',
		'sekhlo_blog_settings-read_more',
		'sekhlo_blog_settings-read_more_button',
		'sekhlo_blog_settings-date',
		'sekhlo_blog_settings-author',
		'sekhlo_blog_settings-categories',
		'sekhlo_blog_settings-tags',
		'sekhlo_blog_settings-comments',
		'sekhlo_blog_settings-infinite_scroll',
		'sekhlo_blog_settings-infinite_scroll_button',
		'blog_masonry_load_more_control',
		'blog_masonry_loading_control',
	];

	$.each( postMetaArchiveControls, function( index, value ) {
		$( '#customize-control-' + value ).attr( 'data-control-section', 'post-meta-archives' );
	} );

	var postMetaSingleControls = [
		'sekhlo_blog_settings-single_date',
		'sekhlo_blog_settings-single_author',
		'sekhlo_blog_settings-single_categories',
		'sekhlo_blog_settings-single_tags',
		'sekhlo_blog_settings-single_post_navigation',
	];

	$.each( postMetaSingleControls, function( index, value ) {
		$( '#customize-control-' + value ).attr( 'data-control-section', 'post-meta-single' ).css( {
			visibility: 'hidden',
			height: '0',
			width: '0',
			margin: '0',
			overflow: 'hidden',
		} );
	} );
} );
