<?php

/**
 *
 * Class td_block_big_grid_flex_10
 */
class td_block_big_grid_flex_10 extends td_block {

    const POST_LIMIT = 7;

    static function cssMedia( $res_ctx ) {

        /*-- GENERAL -- */
        $res_ctx->load_settings_raw( 'style_general_bgf', 1 );
        $res_ctx->load_settings_raw( 'style_general_bgf_10_specific', 1 );



        // modules gap
        $modules_gap = $res_ctx->get_shortcode_att('modules_gap');
        $res_ctx->load_settings_raw( 'modules_gap', $modules_gap );
        $res_ctx->load_settings_raw( 'modules_gap_mob', $modules_gap );
        if ( $modules_gap == '' ) {
            $res_ctx->load_settings_raw( 'modules_gap', '5px');
            $res_ctx->load_settings_raw( 'modules_gap_mob', '10px');
        } else if ( is_numeric( $modules_gap ) ) {
            $res_ctx->load_settings_raw( 'modules_gap', $modules_gap / 2 .'px' );
            $res_ctx->load_settings_raw( 'modules_gap_mob', $modules_gap .'px' );
        }

        // meta info horizontal align
        $meta_info_horiz = $res_ctx->get_shortcode_att('meta_info_horiz');
        if( $meta_info_horiz == 'content-horiz-center' ) {
            $res_ctx->load_settings_raw( 'meta_info_horiz_center', 1 );
        }
        if( $meta_info_horiz == 'content-horiz-right' ) {
            $res_ctx->load_settings_raw( 'meta_info_horiz_right', 1 );
        }

        // meta info vertical align
        $meta_info_vert = $res_ctx->get_shortcode_att('meta_info_vert');
        if( $meta_info_vert == 'content-vert-top' ) {
            $res_ctx->load_settings_raw( 'meta_info_vert_top', 1 );
        }
        if( $meta_info_vert == 'content-vert-center' ) {
            $res_ctx->load_settings_raw( 'meta_info_vert_center', 1 );
        }
        if( $meta_info_vert == 'content-vert-bottom' ) {
            $res_ctx->load_settings_raw( 'meta_info_vert_bottom', 1 );
        }

        // image alignment 1
        $res_ctx->load_settings_raw( 'image_alignment1', $res_ctx->get_shortcode_att('image_alignment1') . '%' );
        // image alignment 2
        $res_ctx->load_settings_raw( 'image_alignment2', $res_ctx->get_shortcode_att('image_alignment2') . '%' );

        // image height 1
        $image_height1 = $res_ctx->get_shortcode_att('image_height1');
        if ( is_numeric( $image_height1 ) ) {
            $res_ctx->load_settings_raw( 'image_height1', $image_height1 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_height1', $image_height1 );
        }
        // image height 2
        $image_height2 = $res_ctx->get_shortcode_att('image_height2');
        if ( is_numeric( $image_height2 ) ) {
            $res_ctx->load_settings_raw( 'image_height2', $image_height2 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_height2', $image_height2 );
        }
        // image height 3
        $image_height3 = $res_ctx->get_shortcode_att('image_height3');
        if ( is_numeric( $image_height3 ) ) {
            $res_ctx->load_settings_raw( 'image_height3', $image_height3 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_height3', $image_height3 );
        }

        // video icon size 1
        $video_icon1 = $res_ctx->get_shortcode_att('video_icon1');
        if ( $video_icon1 != '' && is_numeric( $video_icon1 ) ) {
            $res_ctx->load_settings_raw( 'video_icon1', $video_icon1 . 'px' );
        }
        // video icon size 2
        $video_icon2 = $res_ctx->get_shortcode_att('video_icon2');
        if( $video_icon2 == '' ) {
            $res_ctx->load_settings_raw( 'video_icon2', '20px' );
        } else {
            if ( is_numeric( $video_icon2 ) ) {
                $res_ctx->load_settings_raw( 'video_icon2', $video_icon2 . 'px' );
            }
        }
        // video icon size 3
        $video_icon3 = $res_ctx->get_shortcode_att('video_icon3');
        if( $video_icon3 == '' ) {
            $res_ctx->load_settings_raw( 'video_icon3', '20px' );
        } else {
            if ( is_numeric( $video_icon3 ) ) {
                $res_ctx->load_settings_raw( 'video_icon3', $video_icon3 . 'px' );
            }
        }

        // video icon position 1
        $video_icon_pos1 = $res_ctx->get_shortcode_att('video_icon_pos1');
        if( $video_icon_pos1 == '' || $video_icon_pos1 == 'center' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_center1', 1 );
        } else if ( $video_icon_pos1 == 'corner' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_corner1', 1 );
        }
        // video icon position 2
        $video_icon_pos2 = $res_ctx->get_shortcode_att('video_icon_pos2');
        if( $video_icon_pos2 == '' || $video_icon_pos2 == 'center' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_center2', 1 );
        } else if ( $video_icon_pos2 == 'corner' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_corner2', 1 );
        }
        // video icon position 3
        $video_icon_pos3 = $res_ctx->get_shortcode_att('video_icon_pos3');
        if( $video_icon_pos3 == '' || $video_icon_pos3 == 'center' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_center3', 1 );
        } else if ( $video_icon_pos3 == 'corner' ) {
            $res_ctx->load_settings_raw( 'video_icon_pos_corner3', 1 );
        }

        // image width 1
        $image_width1 = $res_ctx->get_shortcode_att('image_width1');
        if ( is_numeric( $image_width1 ) ) {
            $res_ctx->load_settings_raw( 'image_width1', $image_width1 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_width1', $image_width1 );
        }
        // image width 2
        $image_width2 = $res_ctx->get_shortcode_att('image_width2');
        if ( is_numeric( $image_width2 ) ) {
            $res_ctx->load_settings_raw( 'image_width2', $image_width2 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_width2', $image_width2 );
        }
        // image width 3
        $image_width3 = $res_ctx->get_shortcode_att('image_width3');
        if ( is_numeric( $image_width3 ) ) {
            $res_ctx->load_settings_raw( 'image_width3', $image_width3 . '%' );
        } else {
            $res_ctx->load_settings_raw( 'image_width3', $image_width3 );
        }

        // image zoom effect on hover
        $res_ctx->load_settings_raw( 'image_zoom', $res_ctx->get_shortcode_att('image_zoom') );

        // meta info width 1
        $meta_info_width1 = $res_ctx->get_shortcode_att('meta_width1');
        $res_ctx->load_settings_raw( 'meta_width1', $meta_info_width1 );
        if( $meta_info_width1 != '' && is_numeric( $meta_info_width1 ) ) {
            $res_ctx->load_settings_raw( 'meta_width1', $meta_info_width1 . 'px' );
        }
        // meta info width 2
        $meta_info_width2 = $res_ctx->get_shortcode_att('meta_width2');
        $res_ctx->load_settings_raw( 'meta_width2', $meta_info_width2 );
        if( $meta_info_width2 != '' && is_numeric( $meta_info_width2 ) ) {
            $res_ctx->load_settings_raw( 'meta_width2', $meta_info_width2 . 'px' );
        }
        // meta info width 3
        $meta_info_width3 = $res_ctx->get_shortcode_att('meta_width3');
        $res_ctx->load_settings_raw( 'meta_width3', $meta_info_width3 );
        if( $meta_info_width3 != '' && is_numeric( $meta_info_width3 ) ) {
            $res_ctx->load_settings_raw( 'meta_width3', $meta_info_width3 . 'px' );
        }

        // meta info margin 1
        $meta_margin1 = $res_ctx->get_shortcode_att('meta_margin1');
        $res_ctx->load_settings_raw( 'meta_margin1', $meta_margin1 );
        if ( is_numeric( $meta_margin1 ) ) {
            $res_ctx->load_settings_raw( 'meta_margin1', $meta_margin1 . 'px' );
        }
        // meta info margin 2
        $meta_margin2 = $res_ctx->get_shortcode_att('meta_margin2');
        $res_ctx->load_settings_raw( 'meta_margin2', $meta_margin2 );
        if ( is_numeric( $meta_margin2 ) ) {
            $res_ctx->load_settings_raw( 'meta_margin2', $meta_margin2 . 'px' );
        }
        // meta info margin 3
        $meta_margin3 = $res_ctx->get_shortcode_att('meta_margin3');
        $res_ctx->load_settings_raw( 'meta_margin3', $meta_margin3 );
        if ( is_numeric( $meta_margin3 ) ) {
            $res_ctx->load_settings_raw( 'meta_margin3', $meta_margin3 . 'px' );
        }

        // meta info padding 1
        $meta_padding1 = $res_ctx->get_shortcode_att('meta_padding1');
        $res_ctx->load_settings_raw( 'meta_padding1', $meta_padding1 );
        if ( is_numeric( $meta_padding1 ) ) {
            $res_ctx->load_settings_raw( 'meta_padding1', $meta_padding1 . 'px' );
        }
        // meta info padding 2
        $meta_padding2 = $res_ctx->get_shortcode_att('meta_padding2');
        $res_ctx->load_settings_raw( 'meta_padding2', $meta_padding2 );
        if ( is_numeric( $meta_padding2 ) ) {
            $res_ctx->load_settings_raw( 'meta_padding2', $meta_padding2 . 'px' );
        }
        // meta info padding 3
        $meta_padding3 = $res_ctx->get_shortcode_att('meta_padding3');
        $res_ctx->load_settings_raw( 'meta_padding3', $meta_padding3 );
        if ( is_numeric( $meta_padding3 ) ) {
            $res_ctx->load_settings_raw( 'meta_padding3', $meta_padding3 . 'px' );
        }

        // article title space 1
        $art_title1 = $res_ctx->get_shortcode_att('art_title1');
        $res_ctx->load_settings_raw( 'art_title1', $art_title1 );
        if ( is_numeric( $art_title1 ) ) {
            $res_ctx->load_settings_raw( 'art_title1', $art_title1 . 'px' );
        }
        // article title space 2
        $art_title2 = $res_ctx->get_shortcode_att('art_title2');
        $res_ctx->load_settings_raw( 'art_title2', $art_title2 );
        if ( is_numeric( $art_title2 ) ) {
            $res_ctx->load_settings_raw( 'art_title2', $art_title2 . 'px' );
        }
        // article title space 3
        $art_title3 = $res_ctx->get_shortcode_att('art_title3');
        $res_ctx->load_settings_raw( 'art_title3', $art_title3 );
        if ( is_numeric( $art_title3 ) ) {
            $res_ctx->load_settings_raw( 'art_title3', $art_title3 . 'px' );
        }

        // article title padding 1
        $art_title_padd1 = $res_ctx->get_shortcode_att('art_title_padd1');
        $res_ctx->load_settings_raw( 'art_title_padd1', $art_title_padd1 );
        if ( is_numeric( $art_title_padd1 ) ) {
            $res_ctx->load_settings_raw( 'art_title_padd1', $art_title_padd1 . 'px' );
        }
        // article title padding 2
        $art_title_padd2 = $res_ctx->get_shortcode_att('art_title_padd2');
        $res_ctx->load_settings_raw( 'art_title_padd2', $art_title_padd2 );
        if ( is_numeric( $art_title_padd2 ) ) {
            $res_ctx->load_settings_raw( 'art_title_padd2', $art_title_padd2 . 'px' );
        }
        // article title padding 3
        $art_title_padd3 = $res_ctx->get_shortcode_att('art_title_padd3');
        $res_ctx->load_settings_raw( 'art_title_padd3', $art_title_padd3 );
        if ( is_numeric( $art_title_padd3 ) ) {
            $res_ctx->load_settings_raw( 'art_title_padd3', $art_title_padd3 . 'px' );
        }

        // author & date padding 1
        $auth_date_padd1 = $res_ctx->get_shortcode_att('auth_date_padding1');
        $res_ctx->load_settings_raw( 'auth_date_padding1', $auth_date_padd1 );
        if ( is_numeric( $auth_date_padd1 ) ) {
            $res_ctx->load_settings_raw( 'auth_date_padding1', $auth_date_padd1 . 'px' );
        }
        // author & date padding 2
        $auth_date_padd2 = $res_ctx->get_shortcode_att('auth_date_padding2');
        $res_ctx->load_settings_raw( 'auth_date_padding2', $auth_date_padd2 );
        if ( is_numeric( $auth_date_padd2 ) ) {
            $res_ctx->load_settings_raw( 'auth_date_padding2', $auth_date_padd2 . 'px' );
        }
        // author & date padding 3
        $auth_date_padd3 = $res_ctx->get_shortcode_att('auth_date_padding3');
        $res_ctx->load_settings_raw( 'auth_date_padding3', $auth_date_padd3 );
        if ( is_numeric( $auth_date_padd3 ) ) {
            $res_ctx->load_settings_raw( 'auth_date_padding3', $auth_date_padd3 . 'px' );
        }

        // category tag margin 1
        $modules_category_margin1 = $res_ctx->get_shortcode_att('modules_category_margin1');
        $res_ctx->load_settings_raw( 'modules_category_margin1', $modules_category_margin1 );
        if( $modules_category_margin1 != '' ) {
            if( is_numeric( $modules_category_margin1 ) ) {
                $res_ctx->load_settings_raw( 'modules_category_margin1', $modules_category_margin1 . 'px' );
            }
        } else {
            $res_ctx->load_settings_raw( 'modules_category_margin1', '0 0 7px' );
        }
        // category tag margin 2
        $modules_category_margin2 = $res_ctx->get_shortcode_att('modules_category_margin2');
        $res_ctx->load_settings_raw( 'modules_category_margin2', $modules_category_margin2 );
        if( $modules_category_margin2 != '' ) {
            if( is_numeric( $modules_category_margin2 ) ) {
                $res_ctx->load_settings_raw( 'modules_category_margin2', $modules_category_margin2 . 'px' );
            }
        } else {
            $res_ctx->load_settings_raw( 'modules_category_margin2', '0 0 5px' );
        }
        // category tag margin 3
        $modules_category_margin3 = $res_ctx->get_shortcode_att('modules_category_margin3');
        $res_ctx->load_settings_raw( 'modules_category_margin3', $modules_category_margin3 );
        if( $modules_category_margin3 != '' ) {
            if( is_numeric( $modules_category_margin3 ) ) {
                $res_ctx->load_settings_raw( 'modules_category_margin3', $modules_category_margin3 . 'px' );
            }
        } else {
            $res_ctx->load_settings_raw( 'modules_category_margin3', '0 0 7px' );
        }

        // category tag padding 1
        $modules_category_padding1 = $res_ctx->get_shortcode_att('modules_category_padding1');
        $res_ctx->load_settings_raw( 'modules_category_padding1', $modules_category_padding1 );
        if( $modules_category_padding1 != '' && is_numeric( $modules_category_padding1 ) ) {
            $res_ctx->load_settings_raw( 'modules_category_padding1', $modules_category_padding1 . 'px' );
        }
        // category tag padding 2
        $modules_category_padding2 = $res_ctx->get_shortcode_att('modules_category_padding2');
        $res_ctx->load_settings_raw( 'modules_category_padding2', $modules_category_padding2 );
        if( $modules_category_padding2 != '' && is_numeric( $modules_category_padding2 ) ) {
            $res_ctx->load_settings_raw( 'modules_category_padding2', $modules_category_padding2 . 'px' );
        }
        // category tag padding 3
        $modules_category_padding3 = $res_ctx->get_shortcode_att('modules_category_padding3');
        $res_ctx->load_settings_raw( 'modules_category_padding3', $modules_category_padding3 );
        if( $modules_category_padding3 != '' && is_numeric( $modules_category_padding3 ) ) {
            $res_ctx->load_settings_raw( 'modules_category_padding3', $modules_category_padding3 . 'px' );
        }

        // show meta info details
        $res_ctx->load_settings_raw( 'show_cat1', $res_ctx->get_shortcode_att('show_cat1') );
        $res_ctx->load_settings_raw( 'show_cat2', $res_ctx->get_shortcode_att('show_cat2') );
        $res_ctx->load_settings_raw( 'show_cat3', $res_ctx->get_shortcode_att('show_cat3') );

        $show_author1 = $res_ctx->get_shortcode_att('show_author1');
        $show_date1 = $res_ctx->get_shortcode_att('show_date1');
        $show_review1 = $res_ctx->get_shortcode_att('show_review1');
        $review_space1 = $res_ctx->get_shortcode_att('review_space1');
        $res_ctx->load_settings_raw( 'review_space1', $review_space1 );
        if( $review_space1 != '' && is_numeric( $review_space1 ) ) {
            $res_ctx->load_settings_raw( 'review_space1', $review_space1 . 'px' );
        }
        $review_size1 = $res_ctx->get_shortcode_att('review_size1');
        $res_ctx->load_settings_raw( 'review_size1', 10 + $review_size1/0.5 . 'px' );
        $review_distance1 = $res_ctx->get_shortcode_att('review_distance1');
        $res_ctx->load_settings_raw( 'review_distance1', $review_distance1 );
        if( $review_distance1 != '' && is_numeric( $review_distance1 ) ) {
            $res_ctx->load_settings_raw( 'review_distance1', $review_distance1 . 'px' );
        }
        if( $show_author1 == 'none' && $show_date1 == 'none' && $show_review1 == 'none' ) {
            $res_ctx->load_settings_raw( 'hide_author_date1', 'none' );
        } else {
            $res_ctx->load_settings_raw( 'hide_author_date1', 'inline-block' );
        }
        $res_ctx->load_settings_raw( 'show_author1', $show_author1 );
        $res_ctx->load_settings_raw( 'show_date1', $show_date1 );
        $res_ctx->load_settings_raw( 'show_review1', $show_review1 );

        $show_author2 = $res_ctx->get_shortcode_att('show_author2');
        $show_date2 = $res_ctx->get_shortcode_att('show_date2');
        $show_review2 = $res_ctx->get_shortcode_att('show_review2');
        $review_space2 = $res_ctx->get_shortcode_att('review_space2');
        $res_ctx->load_settings_raw( 'review_space2', $review_space2 );
        if( $review_space2 != '' && is_numeric( $review_space2 ) ) {
            $res_ctx->load_settings_raw( 'review_space2', $review_space2 . 'px' );
        }
        $review_size2 = $res_ctx->get_shortcode_att('review_size2');
        $res_ctx->load_settings_raw( 'review_size2', 10 + $review_size2/0.5 . 'px' );
        $review_distance2 = $res_ctx->get_shortcode_att('review_distance2');
        $res_ctx->load_settings_raw( 'review_distance2', $review_distance2 );
        if( $review_distance2 != '' && is_numeric( $review_distance2 ) ) {
            $res_ctx->load_settings_raw( 'review_distance2', $review_distance2 . 'px' );
        }
        if( $show_author2 == 'none' && $show_date2 == 'none' && $show_review2 == 'none' ) {
            $res_ctx->load_settings_raw( 'hide_author_date2', 1 );
        }
        $res_ctx->load_settings_raw( 'show_author2', $show_author2 );
        $res_ctx->load_settings_raw( 'show_date2', $show_date2 );
        $res_ctx->load_settings_raw( 'show_review2', $show_review2 );

        $show_author3 = $res_ctx->get_shortcode_att('show_author3');
        $show_date3 = $res_ctx->get_shortcode_att('show_date3');
        $show_review3 = $res_ctx->get_shortcode_att('show_review3');
        $review_space3 = $res_ctx->get_shortcode_att('review_space3');
        $res_ctx->load_settings_raw( 'review_space3', $review_space3 );
        if( $review_space3 != '' && is_numeric( $review_space1 ) ) {
            $res_ctx->load_settings_raw( 'review_space3', $review_space3 . 'px' );
        }
        $review_size3 = $res_ctx->get_shortcode_att('review_size3');
        $res_ctx->load_settings_raw( 'review_size3', 10 + $review_size3/0.5 . 'px' );
        $review_distance3 = $res_ctx->get_shortcode_att('review_distance3');
        $res_ctx->load_settings_raw( 'review_distance3', $review_distance3 );
        if( $review_distance3 != '' && is_numeric( $review_distance3 ) ) {
            $res_ctx->load_settings_raw( 'review_distance3', $review_distance3 . 'px' );
        }
        if( $show_author3 == 'none' && $show_date3 == 'none' && $show_review3 == 'none' ) {
            $res_ctx->load_settings_raw( 'hide_author_date3', 1 );
        }
        $res_ctx->load_settings_raw( 'show_author3', $show_author3 );
        $res_ctx->load_settings_raw( 'show_date3', $show_date3 );
        $res_ctx->load_settings_raw( 'show_review3', $show_review3 );

        // exclusive label
        if( is_plugin_active('td-subscription/td-subscription.php') && !empty( has_filter('td_composer_map_exclusive_label_array', 'td_subscription::add_exclusive_label_settings') ) ) {
            // show exclusive label
            $excl_show1 = $res_ctx->get_shortcode_att('excl_show_1');
            $res_ctx->load_settings_raw( 'excl_show_1', $excl_show1 );
            if( $excl_show1 == '' ) {
                $res_ctx->load_settings_raw( 'excl_show_1', 'inline-block' );
            }
            $excl_show2 = $res_ctx->get_shortcode_att('excl_show_2');
            $res_ctx->load_settings_raw( 'excl_show_2', $excl_show2 );
            if( $excl_show2 == '' ) {
                $res_ctx->load_settings_raw( 'excl_show_2', 'inline-block' );
            }

            // exclusive label text
            $res_ctx->load_settings_raw( 'excl_txt_1', $res_ctx->get_shortcode_att('excl_txt_1') );
            $res_ctx->load_settings_raw( 'excl_txt_2', $res_ctx->get_shortcode_att('excl_txt_2') );

            // exclusive label margin
            $excl_margin1 = $res_ctx->get_shortcode_att('excl_margin_1');
            $res_ctx->load_settings_raw( 'excl_margin_1', $excl_margin1 );
            if( $excl_margin1 != '' && is_numeric( $excl_margin1 ) ) {
                $res_ctx->load_settings_raw( 'excl_margin_1', $excl_margin1 . 'px' );
            }
            $excl_margin2 = $res_ctx->get_shortcode_att('excl_margin_2');
            $res_ctx->load_settings_raw( 'excl_margin_2', $excl_margin2 );
            if( $excl_margin2 != '' && is_numeric( $excl_margin2 ) ) {
                $res_ctx->load_settings_raw( 'excl_margin_2', $excl_margin2 . 'px' );
            }

            // exclusive label padding
            $excl_padd1 = $res_ctx->get_shortcode_att('excl_padd_1');
            $res_ctx->load_settings_raw( 'excl_padd_1', $excl_padd1 );
            if( $excl_padd1 != '' && is_numeric( $excl_padd1 ) ) {
                $res_ctx->load_settings_raw( 'excl_padd_1', $excl_padd1 . 'px' );
            }
            $excl_padd2 = $res_ctx->get_shortcode_att('excl_padd_2');
            $res_ctx->load_settings_raw( 'excl_padd_2', $excl_padd2 );
            if( $excl_padd2 != '' && is_numeric( $excl_padd2 ) ) {
                $res_ctx->load_settings_raw( 'excl_padd_2', $excl_padd2 . 'px' );
            }

            // exclusive label border size
            $excl_border1 = $res_ctx->get_shortcode_att('all_excl_border_1');
            $res_ctx->load_settings_raw( 'all_excl_border_1', $excl_border1 );
            if( $excl_border1 != '' && is_numeric( $excl_border1 ) ) {
                $res_ctx->load_settings_raw( 'all_excl_border_1', $excl_border1 . 'px' );
            }
            $excl_border2 = $res_ctx->get_shortcode_att('all_excl_border_2');
            $res_ctx->load_settings_raw( 'all_excl_border_2', $excl_border2 );
            if( $excl_border2 != '' && is_numeric( $excl_border2 ) ) {
                $res_ctx->load_settings_raw( 'all_excl_border_2', $excl_border2 . 'px' );
            }

            // exclusive label border style
            $res_ctx->load_settings_raw( 'all_excl_border_style_1', $res_ctx->get_shortcode_att('all_excl_border_style_1') );
            $res_ctx->load_settings_raw( 'all_excl_border_style_2', $res_ctx->get_shortcode_att('all_excl_border_style_2') );

            // exclusive label border radius
            $excl_radius_1 = $res_ctx->get_shortcode_att('excl_radius_1');
            $res_ctx->load_settings_raw( 'excl_radius_1', $excl_radius_1 );
            if( $excl_radius_1 != '' && is_numeric( $excl_radius_1 ) ) {
                $res_ctx->load_settings_raw( 'excl_radius_1', $excl_radius_1 . 'px' );
            }
            $excl_radius_2 = $res_ctx->get_shortcode_att('excl_radius_2');
            $res_ctx->load_settings_raw( 'excl_radius_2', $excl_radius_2 );
            if( $excl_radius_2 != '' && is_numeric( $excl_radius_2 ) ) {
                $res_ctx->load_settings_raw( 'excl_radius_2', $excl_radius_2 . 'px' );
            }


            $res_ctx->load_settings_raw( 'excl_color_1', $res_ctx->get_shortcode_att('excl_color_1') );
            $res_ctx->load_settings_raw( 'excl_color_2', $res_ctx->get_shortcode_att('excl_color_2') );
            $res_ctx->load_settings_raw( 'excl_color_h_1', $res_ctx->get_shortcode_att('excl_color_h_1') );
            $res_ctx->load_settings_raw( 'excl_color_h_2', $res_ctx->get_shortcode_att('excl_color_h_2') );
            $res_ctx->load_settings_raw( 'excl_bg_1', $res_ctx->get_shortcode_att('excl_bg_1') );
            $res_ctx->load_settings_raw( 'excl_bg_2', $res_ctx->get_shortcode_att('excl_bg_2') );
            $res_ctx->load_settings_raw( 'excl_bg_h_1', $res_ctx->get_shortcode_att('excl_bg_h_1') );
            $res_ctx->load_settings_raw( 'excl_bg_h_2', $res_ctx->get_shortcode_att('excl_bg_h_2') );
            $excl_border_color1 = $res_ctx->get_shortcode_att('all_excl_border_color_1');
            $res_ctx->load_settings_raw( 'all_excl_border_color_1', $excl_border_color1 );
            if( $excl_border_color1 == '' ) {
                $res_ctx->load_settings_raw( 'all_excl_border_color_1', '#000' );
            }
            $excl_border_color2 = $res_ctx->get_shortcode_att('all_excl_border_color_2');
            $res_ctx->load_settings_raw( 'all_excl_border_color_2', $excl_border_color2 );
            if( $excl_border_color2 == '' ) {
                $res_ctx->load_settings_raw( 'all_excl_border_color_2', '#000' );
            }
            $res_ctx->load_settings_raw( 'excl_border_color_h_1', $res_ctx->get_shortcode_att('excl_border_color_h_1') );
            $res_ctx->load_settings_raw( 'excl_border_color_h_2', $res_ctx->get_shortcode_att('excl_border_color_h_2') );


            $res_ctx->load_font_settings( 'f_excl_1' );
            $res_ctx->load_font_settings( 'f_excl_2' );
        }

        // colors
        $res_ctx->load_color_settings( 'overlay_general', 'overlay_general', 'overlay_general_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_h_general', 'overlay_h_general', 'overlay_general_h_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_1', 'overlay_1', 'overlay_1_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_2', 'overlay_2', 'overlay_2_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_3', 'overlay_3', 'overlay_3_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_4', 'overlay_4', 'overlay_4_gradient', '', '' );
        $res_ctx->load_color_settings( 'overlay_5', 'overlay_5', 'overlay_5_gradient', '', '' );
        $res_ctx->load_settings_raw( 'meta_bg', $res_ctx->get_shortcode_att('meta_bg') );
        $res_ctx->load_settings_raw( 'meta_shadow', $res_ctx->get_shortcode_att('meta_shadow') );
        $res_ctx->load_settings_raw( 'cat_bg', $res_ctx->get_shortcode_att('cat_bg') );
        $res_ctx->load_settings_raw( 'cat_txt', $res_ctx->get_shortcode_att('cat_txt') );
        $res_ctx->load_settings_raw( 'cat_bg_hover', $res_ctx->get_shortcode_att('cat_bg_hover') );
        $res_ctx->load_settings_raw( 'cat_txt_hover', $res_ctx->get_shortcode_att('cat_txt_hover') );
        $res_ctx->load_settings_raw( 'title_txt', $res_ctx->get_shortcode_att('title_txt') );
        $res_ctx->load_settings_raw( 'title_txt_hover', $res_ctx->get_shortcode_att('title_txt_hover') );
        $res_ctx->load_settings_raw( 'title_bg', $res_ctx->get_shortcode_att('title_bg') );
        $res_ctx->load_settings_raw( 'title_shadow', $res_ctx->get_shortcode_att('title_shadow') );
        $res_ctx->load_settings_raw( 'author_txt', $res_ctx->get_shortcode_att('author_txt') );
        $res_ctx->load_settings_raw( 'author_txt_hover', $res_ctx->get_shortcode_att('author_txt_hover') );
        $res_ctx->load_settings_raw( 'date_txt', $res_ctx->get_shortcode_att('date_txt') );
        $res_ctx->load_settings_raw( 'auth_date_bg', $res_ctx->get_shortcode_att('auth_date_bg') );
        $res_ctx->load_settings_raw( 'review_stars', $res_ctx->get_shortcode_att('review_stars') );


        // fonts
        $res_ctx->load_font_settings( 'f_title1' );
        $res_ctx->load_font_settings( 'f_cat1' );
        $res_ctx->load_font_settings( 'f_meta1' );
        $res_ctx->load_settings_raw( 'f_meta1_fw', $res_ctx->get_shortcode_att('f_meta1_font_weight') );
        $res_ctx->load_font_settings( 'f_title3' );
        $res_ctx->load_font_settings( 'f_cat3' );
        $res_ctx->load_font_settings( 'f_meta3' );
        $res_ctx->load_settings_raw( 'f_meta3_fw', $res_ctx->get_shortcode_att('f_meta3_font_weight') );
        $res_ctx->load_font_settings( 'f_title2' );
        $res_ctx->load_font_settings( 'f_cat2' );
        $res_ctx->load_font_settings( 'f_meta2' );
        $res_ctx->load_settings_raw( 'f_meta2_fw', $res_ctx->get_shortcode_att('f_meta2_font_weight') );

        // mix blend
        $mix_type = $res_ctx->get_shortcode_att('mix_type');
        if ( $mix_type != '' ) {
            $res_ctx->load_settings_raw('mix_type', $res_ctx->get_shortcode_att('mix_type'));
        }
        $res_ctx->load_color_settings( 'mix_color', 'color', 'mix_gradient', '', '' );

        $mix_type_h = $res_ctx->get_shortcode_att('mix_type_h');
        if ( $mix_type_h != '' ) {
            $res_ctx->load_settings_raw('mix_type_h', $res_ctx->get_shortcode_att('mix_type_h'));
        } else {
            $res_ctx->load_settings_raw('mix_type_off', 1);
        }
        $res_ctx->load_color_settings( 'mix_color_h', 'color_h', 'mix_gradient_h', '', '' );

        // effects
        $res_ctx->load_settings_raw('fe_brightness', 'brightness(1)');
        $res_ctx->load_settings_raw('fe_contrast', 'contrast(1)');
        $res_ctx->load_settings_raw('fe_saturate', 'saturate(1)');

        $fe_brightness = $res_ctx->get_shortcode_att('fe_brightness');
        if ($fe_brightness != '1') {
            $res_ctx->load_settings_raw('fe_brightness', 'brightness(' . $fe_brightness . ')');
            $res_ctx->load_settings_raw('effect_on', 1);
        }
        $fe_contrast = $res_ctx->get_shortcode_att('fe_contrast');
        if ($fe_contrast != '1') {
            $res_ctx->load_settings_raw('fe_contrast', 'contrast(' . $fe_contrast . ')');
            $res_ctx->load_settings_raw('effect_on', 1);
        }
        $fe_saturate = $res_ctx->get_shortcode_att('fe_saturate');
        if ($fe_saturate != '1') {
            $res_ctx->load_settings_raw('fe_saturate', 'saturate(' . $fe_saturate . ')');
            $res_ctx->load_settings_raw('effect_on', 1);
        }

        // effects hover
        $res_ctx->load_settings_raw('fe_brightness_h', 'brightness(1)');
        $res_ctx->load_settings_raw('fe_contrast_h', 'contrast(1)');
        $res_ctx->load_settings_raw('fe_saturate_h', 'saturate(1)');

        $fe_brightness_h = $res_ctx->get_shortcode_att('fe_brightness_h');
        $fe_contrast_h = $res_ctx->get_shortcode_att('fe_contrast_h');
        $fe_saturate_h = $res_ctx->get_shortcode_att('fe_saturate_h');

        if ($fe_brightness_h != '1') {
            $res_ctx->load_settings_raw('fe_brightness_h', 'brightness(' . $fe_brightness_h . ')');
            $res_ctx->load_settings_raw('effect_on_h', 1);
        }
        if ($fe_contrast_h != '1') {
            $res_ctx->load_settings_raw('fe_contrast_h', 'contrast(' . $fe_contrast_h . ')');
            $res_ctx->load_settings_raw('effect_on_h', 1);
        }
        if ($fe_saturate_h != '1') {
            $res_ctx->load_settings_raw('fe_saturate_h', 'saturate(' . $fe_saturate_h . ')');
            $res_ctx->load_settings_raw('effect_on_h', 1);
        }
        // make hover to work
        if ($fe_brightness_h != '1' || $fe_contrast_h != '1' || $fe_saturate_h != '1') {
            $res_ctx->load_settings_raw('effect_on', 1);
        }
        if ($fe_brightness != '1' || $fe_contrast != '1' || $fe_saturate != '1') {
            $res_ctx->load_settings_raw('effect_on_h', 1);
        }

    }

    public function get_custom_css() {
        // $unique_block_class - the unique class that is on the block. use this to target the specific instance via css
        $in_composer = td_util::tdc_is_live_editor_iframe() || td_util::tdc_is_live_editor_ajax();
        $in_element = td_global::get_in_element();
        $unique_block_class_prefix = '';
        if( $in_element || $in_composer ) {
            $unique_block_class_prefix = 'tdc-row .';

            if( $in_element && $in_composer ) {
                $unique_block_class_prefix = 'tdc-row-composer .';
            }
        }
        $unique_block_class = $unique_block_class_prefix . $this->block_uid;

        $compiled_css = '';

        $raw_css =
            "<style>                
                /* @style_general_bgf_10_specific */
                .td_block_big_grid_flex_10 .td_module_flex_6 {
                    width: 33.33%;
                }
                .td_block_big_grid_flex_10 .td_module_flex_6 .td-image-wrap {
                    padding-bottom: 230px;
                }
                .td_block_big_grid_flex_10 .td_module_flex_6 .entry-title {
                    margin-bottom: 9px;
                    font-size: 20px;
                    line-height: 26px;
                    font-weight: 700;
                }
                @media (min-width: 1019px) and (max-width: 1140px) {
                    .td_block_big_grid_flex_10 .td_module_flex_6 .entry-title {
                        font-size: 15px;
                        line-height: 20px;
                    }
                }
                @media (min-width: 768px) and (max-width: 1018px) {
                    .td_block_big_grid_flex_10 .td_module_flex_6 .entry-title {
                        font-size: 13px;
                        line-height: 18px;
                    }
                }
                @media and (max-width: 767px) {
                    .td_block_big_grid_flex_10 .td_module_flex_6 .entry-title {
                        font-size: 22px;
                        line-height: 28px;
                    }
                }
                .td_block_big_grid_flex_10 .td_module_flex_6 .td-module-meta-info {
                    padding: 20px;
                }
                .td_block_big_grid_flex_10 .td_module_flex_7 {
                    width: 25%;
                }
                .td_block_big_grid_flex_10 .td_module_flex_7 .td-image-wrap {
                    padding-bottom: 175px;
                }
                .td_block_big_grid_flex_10 .td_module_flex_7 .td-module-meta-info {
                    padding: 10px 14px;
                }
                .td_block_big_grid_flex_10 .td_module_flex_7 .td-post-category {
                    padding: 1px 5px;
                    font-size: 9px;
                }
                .td_block_big_grid_flex_10 .td_module_flex_7 .entry-title {
                    margin: 0;
                    font-size: 15px;
                    line-height: 17px;
                    font-weight: 500;
                }
                @media (min-width: 1019px) and (max-width: 1140px) {
                    .td_block_big_grid_flex_10 .td_module_flex_7 .entry-title {
                        font-size: 13px;
                        line-height: 19px;
                    }
                }
                @media (min-width: 768px) and (max-width: 1018px) {
                    .td_block_big_grid_flex_10 .td_module_flex_7 .entry-title {
                        font-size: 11px;
                        line-height: 15px;
                    }
                }
                @media (max-width: 767px) {
                    .td_block_big_grid_flex_10 .td_module_flex_7 .entry-title {
                        font-size: 13px;
                        line-height: 18px;
                    }
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-1,
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-2 {
                        width: 80%;
                    }
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-1 .td-image-wrap,
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-2 .td-image-wrap {
                        padding-bottom: 165px;
                    }
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-1 .td-module-meta-info,
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-2 .td-module-meta-info {
                        padding: 16px 15px 11px;
                    }
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-1 .entry-title,
                    .td_block_big_grid_flex_10 div.td-big-grid-flex-post-2 .entry-title {
                        margin: 0;
                        font-size: 13px;
                        line-height: 18px;
                    }
                }
                
                

				/* @modules_gap */
				@media (min-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post {
                        border-width: 0 @modules_gap;
                        border-style: solid;
                        border-color: transparent;
                    }
                    body .$unique_block_class .td_block_inner {
                        margin-left: -@modules_gap;
                        margin-right: -@modules_gap;
                    }
                }
				/* @modules_gap_mob */
                body .$unique_block_class .td-big-grid-flex-post-0,
                body .$unique_block_class .td-big-grid-flex-post-1,
                body .$unique_block_class .td-big-grid-flex-post-2 {
                    margin-bottom: @modules_gap_mob;
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-scroll-holder .td-big-grid-flex-post {
                        margin-right: @modules_gap_mob;
                    }
                    body .$unique_block_class .td-big-grid-flex-scroll-holder .td-big-grid-flex-post:last-child {
                        margin-right: 0;
                    }
                }
				
				/* @meta_info_horiz_center */
				body .$unique_block_class .td-module-meta-info {
					text-align: center;
                    right: 0;
                    margin: 0 auto;
				}
				/* @meta_info_horiz_right */
				body .$unique_block_class .td-module-meta-info {
					text-align: right;
					left: auto;
					right: 0;
				}
			
				/* @meta_info_vert_top */
				body .$unique_block_class .td-module-meta-info {
					top: 0;
				}
				/* @meta_info_vert_center */
				body .$unique_block_class .td-module-meta-info {
					top: 50%;
					transform: translateY(-50%);
				}
				/* @meta_info_vert_bottom */
				body .$unique_block_class .td-module-meta-info {
					bottom: 0;
				}
				
				/* @image_zoom */
				@media (min-width: 767px) {
                    body .$unique_block_class .td-module-container:hover .td-thumb-css {
                        transform: scale3d(1.1, 1.1, 1);
                        -webkit-transform: scale3d(1.1, 1.1, 1);
                    }
                }
                
				/* @image_alignment1 */
				body .$unique_block_class .td_module_flex_6 .entry-thumb {
					background-position: center @image_alignment1;
				}
				/* @image_alignment2 */
				body .$unique_block_class .td_module_flex_7 .entry-thumb {
					background-position: center @image_alignment2;
				}
				
				/* @image_height1 */
				body .$unique_block_class .td_module_flex_6 .td-image-wrap {
					padding-bottom: @image_height1;
				}
				/* @image_height2 */
				body .$unique_block_class .td_module_flex_7 .td-image-wrap {
					padding-bottom: @image_height2;
				}
				/* @image_height3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-image-wrap,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-image-wrap {
                        padding-bottom: @image_height3;
                    }
                }
				/* @video_icon1 */
				body .$unique_block_class .td_module_flex_6 .td-video-play-ico {
					width: @video_icon1;
					height: @video_icon1;
					font-size: @video_icon1;
				}
				/* @video_icon2 */
				body .$unique_block_class .td_module_flex_7 .td-video-play-ico {
					width: @video_icon2;
					height: @video_icon2;
					font-size: @video_icon2;
				}
				/* @video_icon3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-video-play-ico,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-video-play-ico {
                        width: @video_icon3;
                        height: @video_icon3;
                        font-size: @video_icon3;
                    }   
				}
				
				/* @video_icon_pos_center1 */
				body .$unique_block_class .td_module_flex_6 .td-video-play-ico {
					top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
				}
				/* @video_icon_pos_corner1 */
				body .$unique_block_class .td_module_flex_6 .td-video-play-ico {
					top: 20px;
                    left: auto;
                    right: 20px;
                    transform: none;
				}
				/* @video_icon_pos_center2 */
				body .$unique_block_class .td_module_flex_7 .td-video-play-ico {
					top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
				}
				/* @video_icon_pos_corner2 */
				body .$unique_block_class .td_module_flex_7 .td-video-play-ico {
					top: 20px;
                    left: auto;
                    right: 20px;
                    transform: none;
				}
				/* @video_icon_pos_center3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-video-play-ico,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-video-play-ico {
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                    }
				}
				/* @video_icon_pos_corner3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-video-play-ico,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-video-play-ico {
                        top: 20px;
                        left: auto;
                        right: 20px;
                        transform: none;
                    }
				}
				
				/* @image_width1 */
				body .$unique_block_class .td_module_flex_6 {
					width: @image_width1;
				}
				/* @image_width2 */
				body .$unique_block_class .td_module_flex_7 {
					width: @image_width2;
				}
				/* @image_width3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1,
                    body .$unique_block_class .td-big-grid-flex-post-2 {
					    width: @image_width3;
                    }
				}
				
				/* @meta_width1 */
				body .$unique_block_class .td_module_flex_6 .td-module-meta-info {
					width: @meta_width1;
				}
				/* @meta_width2 */
				body .$unique_block_class .td_module_flex_7 .td-module-meta-info {
					width: @meta_width2;
				}
				/* @meta_width3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-module-meta-info,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-module-meta-info {
					    width: @meta_width3;
                    }
				}
				
				/* @meta_margin1 */
				body .$unique_block_class .td_module_flex_6 .td-module-meta-info {
					margin: @meta_margin1;
				}
				/* @meta_margin2 */
				body .$unique_block_class .td_module_flex_7 .td-module-meta-info {
					margin: @meta_margin2;
				}
				/* @meta_margin3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-module-meta-info,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-module-meta-info {
					    margin: @meta_margin3;
                    }
				}
				
				/* @meta_padding1 */
				body .$unique_block_class .td_module_flex_6 .td-module-meta-info {
					padding: @meta_padding1;
				}
				/* @meta_padding2 */
				body .$unique_block_class .td_module_flex_7 .td-module-meta-info {
					padding: @meta_padding2;
				}
				/* @meta_padding3 */
                @media (max-width: 767px) {
                    body .$unique_block_class div.td-big-grid-flex-post-1 .td-module-meta-info,
                    body .$unique_block_class div.td-big-grid-flex-post-2 .td-module-meta-info {
					    padding: @meta_padding3;
                    }
				}
				
				/* @meta_shadow */
				body .$unique_block_class .td-post-author-name a,
				body .$unique_block_class .td-post-author-name span,
				body .$unique_block_class .td-post-date {
				    text-shadow: none;
				}
				
				/* @art_title1 */
				body .$unique_block_class .td_module_flex_6 .tdb-module-title-wrap {
					margin: @art_title1;
				}
				/* @art_title2 */
				body .$unique_block_class .td_module_flex_7 .tdb-module-title-wrap {
					margin: @art_title2;
				}
				/* @art_title3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .tdb-module-title-wrap,
                    body .$unique_block_class .td-big-grid-flex-post-2 .tdb-module-title-wrap {
					    margin: @art_title3;
                    }
				}
				
				/* @art_title_padd1 */
				body .$unique_block_class .td_module_flex_6 .entry-title {
					padding: @art_title_padd1;
				}
				/* @art_title_padd2 */
				body .$unique_block_class .td_module_flex_7 .entry-title {
					padding: @art_title_padd2;
				}
				/* @art_title_padd3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-title,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-title {
					    padding: @art_title_padd3;
                    }
				}
				
				/* @auth_date_padding1 */
				body .$unique_block_class .td_module_flex_6 .td-editor-date {
					padding: @auth_date_padding1;
				}
				/* @auth_date_padding2 */
				body .$unique_block_class .td_module_flex_7 .td-editor-date {
					padding: @auth_date_padding2;
				}
				/* @auth_date_padding3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-editor-date,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-editor-date {
					    padding: @auth_date_padding3;
                    }
				}
				
				/* @modules_category_margin1 */
				body .$unique_block_class .td_module_flex_6 .td-post-category {
					margin: @modules_category_margin1;
				}
				/* @modules_category_margin2 */
				body .$unique_block_class .td_module_flex_7 .td-post-category {
					margin: @modules_category_margin2;
				}
				/* @modules_category_margin3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-category,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-category {
					    margin: @modules_category_margin3;
                    }
				}
				
				/* @modules_category_padding1 */
				body .$unique_block_class .td_module_flex_6 .td-post-category {
					padding: @modules_category_padding1;
				}
				/* @modules_category_padding2 */
				body .$unique_block_class .td_module_flex_7 .td-post-category {
					padding: @modules_category_padding2;
				}
				/* @modules_category_padding3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-category,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-category {
					    padding: @modules_category_padding3;
                    }
				}
				
				/* @show_cat1 */
				body .$unique_block_class .td_module_flex_6 .td-post-category:not(.td-post-extra-category) {
					display: @show_cat1;
				}
				/* @show_cat2 */
				body .$unique_block_class .td_module_flex_7 .td-post-category:not(.td-post-extra-category) {
					display: @show_cat2;
				}
				/* @show_cat3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-category:not(.td-post-extra-category),
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-category:not(.td-post-extra-category) {
					    display: @show_cat3;
                    }
				}
				
				/* @hide_author_date1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .td-editor-date {
                        display: @hide_author_date1;
                    }
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-editor-date {
                        display: @hide_author_date1;
                    }
                }
				/* @hide_author_date2 */
				body .$unique_block_class .td_module_flex_7 .td-editor-date {
					display: @hide_author_date2;
				}
				/* @hide_author_date3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-editor-date,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-editor-date {
					    display: @hide_author_date3;
                    }
				}
				
				/* @show_author1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .td-post-author-name {
                        display: @show_author1;
                    }
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-post-author-name {
                        display: @show_author1;
                    }
                }
				/* @show_author2 */
                body .$unique_block_class .td_module_flex_7 .td-post-author-name {
                    display: @show_author2;
                }
				/* @show_author3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-author-name,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-author-name {
					    display: @show_author3;
                    }
				}
				
				/* @show_date1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .td-post-date,
                    body .$unique_block_class .td_module_flex_6 .td-post-author-name span {
                        display: @show_date1;
                    }
                }
				@media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-post-date,
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-post-author-name span {
                        display: @show_date1;
                    }
                }
				/* @show_date2 */
				body .$unique_block_class .td_module_flex_7 .td-post-date,
				body .$unique_block_class .td_module_flex_7 .td-post-author-name span {
					display: @show_date2;
				}
				/* @show_date3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-date,
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-author-name span,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-date,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-author-name span {
					    display: @show_date3;
                    }
				}
				
				/* @show_review1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .entry-review-stars {
                        display: @show_review1;
                    }
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .entry-review-stars {
                        display: @show_review1;
                    }
                }
				/* @review_space1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .entry-review-stars {
                        margin: @review_space1;
                    }
                }
				@media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .entry-review-stars {
                        margin: @review_space1;
                    }
                }
				/* @review_size1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .td-icon-star,
                    body .$unique_block_class .td_module_flex_6 .td-icon-star-empty,
                    body .$unique_block_class .td_module_flex_6 .td-icon-star-half {
                        font-size: @review_size1;
                    }
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-icon-star,
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-icon-star-empty,
                    body .$unique_block_class .td-big-grid-flex-post-0 .td-icon-star-half {
                        font-size: @review_size1;
                    }
                }
				/* @review_distance1 */
				@media (min-width: 767px) {
                    body .$unique_block_class .td_module_flex_6 .entry-review-stars i {
                        margin-right: @review_distance1;
                    }
                    body .$unique_block_class .td_module_flex_6 .entry-review-stars i:last-child {
                        margin-right: 0;
                    }
                }
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-0 .entry-review-stars i {
                        margin-right: @review_distance1;
                    }
                    body .$unique_block_class .td-big-grid-flex-post-0 .entry-review-stars i:last-child {
                        margin-right: 0;
                    }
                }
				/* @show_review2 */
				body .$unique_block_class .td_module_flex_7 .entry-review-stars {
					display: @show_review2;
				}
				/* @review_space2 */
				body .$unique_block_class .td_module_flex_7 .entry-review-stars {
					margin: @review_space2;
				}
				/* @review_size2 */
				body .$unique_block_class .td_module_flex_7 .td-icon-star,
                body .$unique_block_class .td_module_flex_7 .td-icon-star-empty,
                body .$unique_block_class .td_module_flex_7 .td-icon-star-half {
					font-size: @review_size2;
				}
				/* @review_distance2 */
				body .$unique_block_class .td_module_flex_7 .entry-review-stars i {
					margin-right: @review_distance2;
				}
				body .$unique_block_class .td_module_flex_7 .entry-review-stars i:last-child {
				    margin-right: 0;
				}
				/* @show_review3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-review-stars,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-review-stars {
                        display: @show_review3;
                    }
                }
                /* @review_space3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-review-stars,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-review-stars {
                        margin: @review_space3;
                    }
                }
				/* @review_size3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-icon-star,
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-icon-star-empty,
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-icon-star-half,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-icon-star,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-icon-star-empty,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-icon-star-half  {
                        font-size: @review_size3;
                    }
				}
				/* @review_distance3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-review-stars i,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-review-stars i {
                        margin-right: @review_distance3;
                    }
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-review-stars i:last-child,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-review-stars i:last-child {
                        margin-right: 0;
                    }
				}
				
			    
			    /* @overlay_general */
				body .$unique_block_class .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_general;
				}
				/* @overlay_h_general */
				body .$unique_block_class .td-module-thumb:after {
				    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
				    background-color: @overlay_h_general;
				    opacity: 0;
				    z-index: 1;
                    -webkit-transition: opacity 0.4s ease 0.2s;
                    -moz-transition: opacity 0.4s ease 0.2s;
                    -o-transition: opacity 0.4s ease 0.2s;
                    transition: opacity 0.4s ease 0.2s;
                    pointer-events: none;
				}
				body .$unique_block_class .td-module-container:hover .td-module-thumb:after {
				    opacity: 1;
				}
				/* @overlay_general_gradient */
				body .$unique_block_class .td-image-wrap:before {
				    content: '';
				    @overlay_general_gradient
				}
				/* @overlay_1 */
				body .$unique_block_class .td-big-grid-flex-post-0 .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_1;
				}
				/* @overlay_1_gradient */
				body .$unique_block_class .td-big-grid-flex-post-0 .td-image-wrap:before {
				    content: '';
				    @overlay_1_gradient
				}
				/* @overlay_2 */
				body .$unique_block_class .td-big-grid-flex-post-1 .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_2;
				}
				/* @overlay_2_gradient */
				body .$unique_block_class .td-big-grid-flex-post-1 .td-image-wrap:before {
				    content: '';
				    @overlay_2_gradient
				}
				/* @overlay_3 */
				body .$unique_block_class .td-big-grid-flex-post-2 .td-image-wrap:before,
				body .$unique_block_class .td-big-grid-flex-post-5 .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_3;
				}
				/* @overlay_3_gradient */
				body .$unique_block_class .td-big-grid-flex-post-2 .td-image-wrap:before,
				body .$unique_block_class .td-big-grid-flex-post-5 .td-image-wrap:before {
				    content: '';
				    @overlay_3_gradient
				}
				/* @overlay_4 */
				body .$unique_block_class .td-big-grid-flex-post-3 .td-image-wrap:before,
				body .$unique_block_class .td-big-grid-flex-post-6 .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_4;
				}
				/* @overlay_4_gradient */
				body .$unique_block_class .td-big-grid-flex-post-3 .td-image-wrap:before,
				body .$unique_block_class .td-big-grid-flex-post-6 .td-image-wrap:before {
				    content: '';
				    @overlay_4_gradient
				}
				/* @overlay_5 */
				body .$unique_block_class .td-big-grid-flex-post-4 .td-image-wrap:before {
				    content: '';
				    background-color: @overlay_5;
				}
				/* @overlay_5_gradient */
				body .$unique_block_class .td-big-grid-flex-post-4 .td-image-wrap:before {
				    content: '';
				    @overlay_5_gradient
				}
				/* @meta_bg */
				body .$unique_block_class .td-module-meta-info {
					background-color: @meta_bg;
				}
				/* @cat_bg */
				body .$unique_block_class .td-post-category {
					background-color: @cat_bg;
				}
				/* @cat_bg_hover */
				body .$unique_block_class .td-module-container:hover .td-post-category {
					background-color: @cat_bg_hover;
				}
				/* @cat_txt */
				body .$unique_block_class .td-post-category {
					color: @cat_txt;
				}
				/* @cat_txt_hover */
				body .$unique_block_class .td-module-container:hover .td-post-category {
					color: @cat_txt_hover;
				}
				/* @title_txt */
				body .$unique_block_class .td-module-title a {
					color: @title_txt;
				}
				/* @title_txt_hover */
				body .$unique_block_class .td-big-grid-flex-post:hover .td-module-title a {
					color: @title_txt_hover;
				}
				/* @title_shadow */
				body .$unique_block_class .td-module-title a {
					text-shadow: none;
				}
				/* @title_bg */
				body .$unique_block_class .td-module-title {
					-webkit-text-fill-color: initial;
					background: @title_bg;
					-webkit-box-decoration-break: clone;
					box-decoration-break: clone;
					display: inline;
				}
				/* @author_txt */
				body .$unique_block_class .td-post-author-name a {
					color: @author_txt;
				}
				/* @author_txt_hover */
				body .$unique_block_class .td-big-grid-flex-post:hover .td-post-author-name a {
					color: @author_txt_hover;
				}
				/* @date_txt */
				body .$unique_block_class .td-post-date,
				body .$unique_block_class .td-post-author-name span {
					color: @date_txt;
				}
				/* @auth_date_bg */
				body .$unique_block_class .td-editor-date {
					background-color: @auth_date_bg;
				}
				/* @review_stars */
				body .$unique_block_class .entry-review-stars {
				    color: @review_stars;
				}
				
			
				/* @f_title1 */
				body .$unique_block_class .td_module_flex_6 .entry-title {
					@f_title1
				}
				/* @f_title2 */
				body .$unique_block_class .td_module_flex_7 .entry-title {
					@f_title2
				}
				/* @f_title3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .entry-title,
                    body .$unique_block_class .td-big-grid-flex-post-2 .entry-title {
					    @f_title3
                    }
				}
				
				/* @f_cat1 */
				body .$unique_block_class .td_module_flex_6 .td-post-category {
					@f_cat1
				}
				/* @f_cat2 */
				body .$unique_block_class .td_module_flex_7 .td-post-category {
					@f_cat2
				}
				/* @f_cat3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-category,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-category {
					    @f_cat3
                    }
				}
				
				/* @f_meta1 */
				body .$unique_block_class .td_module_flex_6 .td-editor-date,
				body .$unique_block_class .td_module_flex_6 .td-editor-date .entry-date,
				body .$unique_block_class .td_module_flex_6 .td-module-comments a {
					@f_meta1
				}
				/* @f_meta2 */
				body .$unique_block_class .td_module_flex_7 .td-editor-date,
				body .$unique_block_class .td_module_flex_7 .td-editor-date .entry-date,
				body .$unique_block_class .td_module_flex_7 .td-module-comments a {
					@f_meta2
				}
				/* @f_meta3 */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-editor-date,
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-editor-date .entry-date,
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-module-comments a,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-editor-date,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-editor-date .entry-date,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-module-comments a {
					    @f_meta3
                    }
				}
				
				/* @f_meta1_fw */
				body .$unique_block_class .td_module_flex_6 .td-post-author-name {
				    font-weight: @f_meta1_fw;
				}
				/* @f_meta2_fw */
				body .$unique_block_class .td_module_flex_7 .td-post-author-name {
				    font-weight: @f_meta2_fw;
				}
				/* @f_meta3_fw */
                @media (max-width: 767px) {
                    body .$unique_block_class .td-big-grid-flex-post-1 .td-post-author-name,
                    body .$unique_block_class .td-big-grid-flex-post-2 .td-post-author-name {
				        font-weight: @f_meta3_fw;
                    }
				}
				
				/* @mix_type */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb:before {
                    content: '';
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    opacity: 1;
                    transition: opacity 1s ease;
                    -webkit-transition: opacity 1s ease;
                    mix-blend-mode: @mix_type;
                }
                /* @color */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb:before {
                    background: @color;
                }
                /* @mix_gradient */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb:before {
                    @mix_gradient;
                }
                
                
                /* @mix_type_h */
                @media (min-width: 1141px) {
                    html:not([class*='ie']) body .$unique_block_class .entry-thumb:after {
                        content: '';
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        left: 0;
                        opacity: 0;
                        transition: opacity 1s ease;
                        -webkit-transition: opacity 1s ease;
                        mix-blend-mode: @mix_type_h;
                    }
                    html:not([class*='ie']) body .$unique_block_class .td-module-container:hover .entry-thumb:after {
                        opacity: 1;
                    }
                }
                
                /* @color_h */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb:after {
                    background: @color_h;
                }
                /* @mix_gradient_h */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb:after {
                    @mix_gradient_h;
                }
                /* @mix_type_off */
                html:not([class*='ie']) body .$unique_block_class .td-module-container:hover .entry-thumb:before {
                    opacity: 0;
                }
                    
                /* @effect_on */
                html:not([class*='ie']) body .$unique_block_class .entry-thumb {
                    filter: @fe_brightness @fe_contrast @fe_saturate;
                    transition: all 1s ease;
                    -webkit-transition: all 1s ease;
                }
                /* @effect_on_h */
                @media (min-width: 1141px) {
                    html:not([class*='ie']) body .$unique_block_class .td-module-container:hover .entry-thumb {
                        filter: @fe_brightness_h @fe_contrast_h @fe_saturate_h;
                    }
                }
                
                /* @excl_show_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    display: @excl_show_1;
                }
                /* @excl_show_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    display: @excl_show_2;
                }
                /* @excl_txt_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    content: '@excl_txt_1';
                }
                /* @excl_txt_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    content: '@excl_txt_2';
                }
                /* @excl_margin_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    margin: @excl_margin_1;
                }
                /* @excl_margin_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    margin: @excl_margin_2;
                }
                /* @excl_padd_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    padding: @excl_padd_1;
                }
                /* @excl_padd_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    padding: @excl_padd_2;
                }
                /* @all_excl_border_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    border: @all_excl_border_1 @all_excl_border_style_1 @all_excl_border_color_1;
                }
                /* @all_excl_border_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    border: @all_excl_border_2 @all_excl_border_style_2 @all_excl_border_color_2;
                }
                /* @excl_radius_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    border-radius: @excl_radius_1;
                }
                /* @excl_radius_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    border-radius: @excl_radius_2;
                }
                /* @excl_color_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    color: @excl_color_1;
                }
                /* @excl_color_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    color: @excl_color_2;
                }
                /* @excl_color_h_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive:hover .td-module-title a:before {
                    color: @excl_color_h_1;
                }
                /* @excl_color_h_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive:hover .td-module-title a:before {
                    color: @excl_color_h_2;
                }
                /* @excl_bg_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    background-color: @excl_bg_1;
                }
                /* @excl_bg_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    background-color: @excl_bg_2;
                }
                /* @excl_bg_h_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive:hover .td-module-title a:before {
                    background-color: @excl_bg_h_1;
                }
                /* @excl_bg_h_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive:hover .td-module-title a:before {
                    background-color: @excl_bg_h_2;
                }
                /* @excl_border_color_h_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive:hover .td-module-title a:before {
                    border-color: @excl_border_color_h_1;
                }
                /* @excl_border_color_h_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive:hover .td-module-title a:before {
                    border-color: @excl_border_color_h_2;
                }
                /* @f_excl_1 */
                .$unique_block_class .td_module_flex_6.td-module-exclusive .td-module-title a:before {
                    @f_excl_1
                }
                /* @f_excl_2 */
                .$unique_block_class .td_module_flex_7.td-module-exclusive .td-module-title a:before {
                    @f_excl_2
                }
				
			</style>";


        $td_css_res_compiler = new td_css_res_compiler( $raw_css );
        $td_css_res_compiler->load_settings( __CLASS__ . '::cssMedia', $this->get_all_atts() );

        $compiled_css .= $td_css_res_compiler->compile_css();

        return $compiled_css;
    }


    function render($atts, $content = null){

		if ( empty( $atts ) ) {
			$atts = array();
		}
        $atts['limit'] = self::POST_LIMIT;

        parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)

        $additional_classes = array();

        if( $this->get_att( 'lightsky' ) != '' ) {
            $additional_classes[] = 'td-big-grid-flex-lightsky';
        }


        $buffy = '';

        $buffy .= '<div class="td-big-grid-flex td-big-grid-flex-scroll ' . $this->get_block_classes($additional_classes). ' td-big-grid-flex-posts"' . $this->get_block_html_atts() . '>';
            //get the block css
            $buffy .= $this->get_block_css();

            $buffy .= '<div id=' . $this->block_uid . ' class="td_block_inner">';
                $buffy .= $this->inner($this->td_query->posts, $this->get_att('td_column_number')); //inner content of the block
            $buffy .= '</div>';
        $buffy .= '</div>';

        return $buffy;
    }

    function inner($posts, $td_column_number = '') {

        $buffy = '';

        if (!empty($posts)) {

            $post_count = 0;

            foreach ( $posts as $post ) {
                if ($post_count == 1) {
                    $buffy .= '<div class="td-big-grid-flex-scroll-holder">';
                }

                if ($post_count < 3) {
                    $td_module_flex = new td_module_flex_6($post, $this->get_all_atts());
                    $buffy .= $td_module_flex->render($post_count, __CLASS__);

                    $post_count++;
                    continue;
                }

                $td_module_flex_7 = new td_module_flex_7($post, $this->get_all_atts());
                $buffy .= $td_module_flex_7->render($post_count, __CLASS__);

                $post_count++;
            }

            if ($post_count < self::POST_LIMIT) {
                for ($i = $post_count; $i < self::POST_LIMIT; $i++) {
                    if ($post_count == 1) {
                        $buffy .= '<div class="td-big-grid-flex-scroll-holder">';
                    }

                    if ($post_count < 3) {
                        $td_module_flex = new td_module_flex_empty($post, $this->get_all_atts());
                        $buffy .= $td_module_flex->render($i, 'td_module_flex_6');

                        $post_count++;
                        continue;
                    }

                    $td_module_flex_2 = new td_module_flex_empty($post, $this->get_all_atts());
                    $buffy .= $td_module_flex_2->render($i, 'td_module_flex_7');

                    $post_count++;
                }
            }
            $buffy .= '</div>';  // close td-big-grid-scroll

        }

        return $buffy;
    }
}