text: $(document).ready(function() {
    'use strict';
  
    var headerOverlay = $(".header__overlay"),
      searchOpenIcon = $(".nav__icon-search"),
      searchCloseIcon = $(".search__close"),
      searchBox = $(".search");
  
    /* =======================
    // Menu and Search
    ======================= */
  
  
    searchOpenIcon.click(function () {
      searchOpen();
    });
  
    searchCloseIcon.click(function () {
      searchClose();
    });
  
    headerOverlay.click(function () {
      menuClose();
      searchClose();
    });
  
    function searchOpen() {
      searchBox.addClass("is-visible");
    }
  
    function searchClose() {
      searchBox.removeClass("is-visible");
    }
  
    /* =======================
    // Responsive Videos
    ======================= */
    $(".post__content, .page__content").fitVids({
      customSelector: ['iframe[src*="ted.com"]']
    });
  
    /* =======================
    // Zoom Image
    ======================= */
    $(".page img, .post img").attr("data-action", "zoom");
    $(".page a img, .post a img").removeAttr("data-action", "zoom");
  
    /* =======================
    // Instagram Feed
    ======================= */
    // userId and accessToken from Matthew Elsom (https://codepen.io/matthewelsom/pen/zrrrLN) for example, for which he thanks a lot!
    var instagramFeed = new Instafeed({
      get: 'user',
      limit: 6,
      resolution: 'standard_resolution',
      userId: '8987997106',
      accessToken: '8987997106.924f677.8555ecbd52584f41b9b22ec1a16dafb9',
      template:
        '<li class="instagram-item"><a href="{{link}}" aria-label="{{caption}}" target="_blank"><img src="{{image}}" alt="{{caption}}"></a></li>'
    });
  
    if ($('#instafeed').length) {
      instagramFeed.run();
    }
  
    /* =======================
    // Scroll Top Button
    ======================= */
    $(".top").click(function() {
      $("html, body")
        .stop()
        .animate({ scrollTop: 0 }, "slow", "swing");
    });
    $(window).scroll(function() {
      if ($(this).scrollTop() > $(window).height()) {
        $(".top").addClass("is-active");
      } else {
        $(".top").removeClass("is-active");
      }
    });
  
  
  });