jQuery(document).ready(function($) {

	"use strict";
	
	// Menu
	$('#navigation-wrap .menu').slicknav({
		prependTo:'.menu-mobile',
		label:'',
		allowParentLinks: true
	});
	
	// Search
	
	$('#upper-search-area a').on('click', function ( e ) {
		e.preventDefault();
    	$('.display-search-view').slideToggle('fast');
    });
	
	// Fitvids
	$(document).ready(function(){
		// Target your .container, .wrapper, .post, etc.
		$(".container").fitVids();
	});


    $(document).on('hover', '.post-share', function() {
        $(this).find('.social-share').toggleClass('active');
    });


    $('.slider-area').on('init', function(event, slick){
        $(".ct_slides_area").css("display", "block");
    });

    $('.ct_full_slider').slick({
        dots: false,
        infinite: true,
        speed: 750,
        autoplay: true,
        autoplaySpeed: 5000,
        slidesToShow: 1,
        centerMode: false,
        slidesToScroll:1,
        prevArrow: '<button type="button" class="slick-nav slick-prev"><i class="fa fa-angle-left"></i></button>',
        nextArrow: '<button type="button" class="slick-nav slick-next"><i class="fa fa-angle-right"></i></button>',
        arrows:true,
        responsive: [
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll:1,
                }
            },
            {
                breakpoint: 600,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll:1
                }
            },
            {
                breakpoint: 480,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll:1
                }
            }
        ]
    });



    $('.ct_slider').slick({
        dots: false,
        infinite: true,
        speed: 750,
        autoplay: false,
        autoplaySpeed: 5000,
        slidesToShow: 1,
        centerMode: true,
        centerPadding: 0,
        variableWidth: true,
        slidesToScroll:1,
        prevArrow: '<button type="button" class="slick-nav slick-prev"><i class="fa fa-angle-left"></i></button>',
        nextArrow: '<button type="button" class="slick-nav slick-next"><i class="fa fa-angle-right"></i></button>',
        arrows:true,
        responsive: [
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll:1,
                }
            },
            {
                breakpoint: 600,
                settings: {
                    centerPadding: '0px',
                    slidesToShow: 1,
                    slidesToScroll:1
                }
            },
            {
                breakpoint: 480,
                settings: {
                    centerPadding: '0px',slidesToShow: 1,
                    slidesToScroll:1
                }
            }
        ]
    });




});