<?php

// Align
FLBuilderCSS::responsive_rule( array(
	'settings'     => $settings,
	'setting_name' => 'align',
	'selector'     => ".fl-node-$id .fl-photo",
	'prop'         => 'text-align',
) );

// Width
FLBuilderCSS::responsive_rule( array(
	'settings'     => $settings,
	'setting_name' => 'width',
	'selector'     => ".fl-node-$id .fl-photo-content, .fl-node-$id .fl-photo-img",
	'prop'         => 'width',
) );

// Border
if ( 'circle' === $settings->crop ) {
	if ( ! is_array( $settings->border ) ) {
		$settings->border = array();
	}
	$settings->border['radius'] = array(
		'top_left'     => '',
		'top_right'    => '',
		'bottom_left'  => '',
		'bottom_right' => '',
	);
}

FLBuilderCSS::border_field_rule( array(
	'settings'     => $settings,
	'setting_name' => 'border',
	'selector'     => ".fl-node-$id .fl-photo-img",
) );

FLBuilderCSS::typography_field_rule( array(
	'settings'     => $settings,
	'setting_name' => 'caption_typography',
	'selector'     => ".fl-node-$id.fl-module-photo .fl-photo-caption",
) );
