@media (min-width:1px) and (max-width:480px){
    .sd2-slide-text{display:none!important;}
    .hasCustomSelect{height:31px!important;opacity:0;width:54%;z-index:999;}
    .mnav{height:21px;padding:4px;color:#fff;display:block!important;background:#f5f0e8;  /* Old browsers */    /* IE9 SVG, needs conditional override of 'filter' to 'none' */

    background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y1ZjBlOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI2JSIgc3RvcC1jb2xvcj0iI2Y0ZWZlNyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjY4JSIgc3RvcC1jb2xvcj0iI2U4ZTRkYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNGRmZDgiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);background:-moz-linear-gradient(top,#f5f0e8 0%,#f4efe7 26%,#e8e4dc 68%,#e4dfd8 100%); /* FF3.6+ */background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#f5f0e8),color-stop(26%,#f4efe7),color-stop(68%,#e8e4dc),color-stop(100%,#e4dfd8)); /* Chrome,Safari4+ */background:-webkit-linear-gradient(top,#f5f0e8 0%,#f4efe7 26%,#e8e4dc 68%,#e4dfd8 100%); /* Chrome10+,Safari5.1+ */background:-o-linear-gradient(top,#f5f0e8 0%,#f4efe7 26%,#e8e4dc 68%,#e4dfd8 100%); /* Opera 11.10+ */background:-ms-linear-gradient(top,#f5f0e8 0%,#f4efe7 26%,#e8e4dc 68%,#e4dfd8 100%); /* IE10+ */background:linear-gradient(to bottom,#f5f0e8 0%,#f4efe7 26%,#e8e4dc 68%,#e4dfd8 100%); /* W3C */filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f0e8',endColorstr='#e4dfd8',GradientType=0); /* IE6-8 */}
    .customSelectInner{background:url("../images/customSelect-arrow.gif") no-repeat scroll 97% center transparent;color:#333333;display:block;font-size:16px;font-weight:700;height:21px;padding:1px 1px 1px 6px;}
    .pp_pic_holder.pp_default,
    .pp_overlay{display:none!important;}
    .events.widget_text,
    .eventwed{text-align:center;}
    #footer .footernav ul li{display:inline-block;float:left;padding:0 10px;text-align:left;width:110px;}
    #footer .footernav ul{text-align:center;}

    /*.contentLeft{ width: 100%;}*/
    .blogpost{width:79%;}
    img{max-width:100%;}
    .banner iframe{height:188px!important;}
    div.sd2-ress-wrapper{height:187px!important;}
    .home-content-wrapper{width:100%;}
    .section,
    #header{width:100%;}
    #wrapper{margin:0 1%;width:98%;}
    .col-2left .section{width:100%;}
    .col-2left .sectionIn{width:auto;}
    .search,
    .homelink,
    .toplinks{display:none;}
    #header #logo a.logoA{width:72px;margin-left:0;}
    #header #logo a.logoB{width:70%;}
    #header #logo a.logoB img{margin:31px 8px 0;}
    #header{min-height:135px;}
    .innerBlock .imagestaf{width:100%;}
    #header #logo{min-height:143px;left:0;width:100%;background-size:200px 265px;background-position:-56px 0;}
    .ngg-gallery-thumbnail-box{float:left;width:43%;}
    .ngg-gallery-thumbnail-box{width:47.9%!important;}
    .ngg-galleryoverview{margin:0 auto!important;}
    #footer .copyright{text-align:center;width:100%;}
    .sectionrightIn{float:none;width:auto;}
    .sectionright{width:100%;}
    #main .container .sidebar{width:100%;margin-left:0;}
    .page_image{width:100%;}
    .sectionIn{float:none;width:auto;padding:34px 22px;}
    .sectionIn h2{line-height:24px;}
    .front_page_content{float:none;width:auto;}
    .sectionIn .featured_image{float:none;margin-bottom:20px;}
    .content-404{width:75%;margin:100px auto 0;}
    .page-404 .mnav{display:none!important;}
    .imagestaf{width:258px;}
    .innerBlock{margin:10px 0;}
    .contact-content{float:left;width:100%;margin:10px 0 20px;position:static;}
    .ngg-galleryoverview .ngg-gallery-thumbnail-box .ngg-gallery-thumbnail a span{padding-top:4px;}
    .p-gallery .sectionIn h2{margin-right:0;float:none;margin-bottom:10px;}
    .p-gallery .rightstaf .stafh4{margin-bottom:10px;min-width:272px;}
    .sectionIn1 .rightstaf{padding:5px 2px 0;}
    .careersingle table tr th{display:block;width:auto;}
    .careersingle table tr td{display:block;width:auto;}
    .content-404 a{margin-top:-5px;}

    /******* contact ************/
    .contactform .form-row .input-textarea textarea{width:100%;}
    .title{padding:6px 12px;font-size:16px;}

    /******footer **********/
    .foologo{width:100%;padding:0 0 20px;}
    .foologo a{display:inline-block;width:28%;margin-left:3.5%;}

    /**** table ***/
    .data-table tr{border-bottom:1px solid #000;display:table;width:100%;}
    .data-table th{display:none;}
    .data-table td{display:block;}
    .wpcf7-form div.wpcf7-response-output{width:60%;}
    .pagination{margin-top:-18px;float:none;padding:12px 0;}
    .page_image .banner_content{width:100%;top:10px;}
}
@media (max-width:320px){
    .blogpost{width:50%;}
}
@media (min-width:481px) and (max-width:768px){

    /*    body{ min-width: 767px;}*/
    .mnav{display:none!important;}
    #pagenav .sf-menu ul{width:8em;}
    img{max-width:100%;}
    #wrapper,
    .section,
    #header{width:600px;}
    .sectionIn{float:left;padding:34px 35px;width:530px;}
    .featured_image{width:248px;margin:20px 0 0;}
    .sectionIn .featured_image{margin:20px 0 0;}
    .front_page_content{width:258px;}
    #header #logo a.logoB{width:312px;}
    #header #logo a.logoA{width:112px;}
    #header #pagenav{margin-top:79px;}
    #header #logo{background-size:377px 214px;}

    /**************col-left***************/
    .col-2left .section{width:435px;}
    .col-2left .sectionIn{width:365px;}
    #main .container .sidebar{width:155px;}
    .sectionright{width:155px;}
    .sectionrightIn{width:125px;}
    .home-content-wrapper{width:435px;}
    .sf-menu{margin-left:142px;}
    .sf-menu a,
    .sf-menu a:visited,
    .sf-menu a,
    .sf-menu a:link{font-size:10px;letter-spacing:0;padding:5px;}
    .sf-menu li ul li a:link,
    .sf-menu li ul li a:visited{font-size:10px;padding:0 8px;}
    .sf-menu li:hover ul,
    .sf-menu li.sfHover ul{top:49px;}
    .sf-menu li.new_8:hover ul,
    .sf-menu li.new_8.sfHover ul{right:-15px;}
    .sf-menu li.sfHover{background-size:46% 41%;}
    .toplinks{top:92px;}
    #footer .copyright{width:50%;}
    .foologo{width:50% /*326px*/;}
    .foologo a{display:block;float:left;width:28%/*94px*/;}
    #footer .footernav ul li{padding:0 8px;}
    #footer .footernav ul li a:link,
    #footer .footernav ul li a:visited,
    #footer .footernav ul li a:active{letter-spacing:0;font-size:10px;}
    #footer .footernav ul{padding:10px 5px 10px 15px;}
    .copySp{font-size:10px;}
    .rightstaf{max-width:232px;}
    .imagestaf{width:113px;}
    .innerBlock .rightstaf{max-width:232px;}
    .rightTitle{word-wrap:break-word;font-size:20px;}
    #supplementary_menu li a{font-size:15px;}
    .wpcf7-form div.wpcf7-response-output{width:40%;}

    /**** photo gallery ********/
    .ngg-galleryoverview .ngg-gallery-thumbnail-box{width:116px;}
    body div.pp_default .pp_gallery a.pp_arrow_previous,
    div.pp_default .pp_gallery a.pp_arrow_next{background-size:22px 101px!important;top:27px!important;}
    div.pp_default .pp_gallery ul li a{height:auto;}
    body .pp_gallery div{width:452px!important;}
    body .pp_gallery ul a img{width:69px;}
    body div.pp_pic_holder{min-height:463px;}
    body .pp_gallery{margin-left:-232px!important;}
}
@media (min-width:769px) and (max-width:1024px){

    /*    body{ min-width: 1024px;}*/
    #pagenav .sf-menu ul{width:8em;}
    body div.pp_default .pp_gallery a.pp_arrow_previous,
    div.pp_default .pp_gallery a.pp_arrow_next{background-size:22px 101px!important;top:27px!important;}
    div.pp_default .pp_gallery ul li a{height:auto;}
    body .pp_gallery div{width:573px!important;}
    body .pp_gallery ul a img{width:89px;}
    body div.pp_pic_holder{min-height:463px;width:598px!important;}
    .pp_hoverContainer{width:572px!important;}
    body div.pp_default .pp_content{width:auto!important;}
    body .pp_gallery{margin-left:-291px!important;}
    img{max-width:100%;}
    #wrapper,
    .section,
    #header{width:732px;}
    .sectionIn{float:left;padding:34px 35px;width:662px;}
    .featured_image{width:248px;}
    .front_page_content{width:355px;}
    #header #logo a.logoB{width:312px;}
    #header #logo a.logoA{width:112px;}
    #header #pagenav{margin-top:79px;}
    #header #logo{background-size:382px 214px;}

    /**************col-left***************/
    .col-2left .section{width:538px;}
    .col-2left .sectionIn{width:468px;}
    #main .container .sidebar{width:184px;}
    .sectionright{width:184px;}
    .sectionrightIn{width:154px;}
    .home-content-wrapper{width:538px;}
    .sf-menu{margin-left:138px;}
    .sf-menu a,
    .sf-menu a:visited,
    .sf-menu a,
    .sf-menu a:link{font-size:12px;letter-spacing:0;padding:5px 9px;}
    .sf-menu li ul li a:link,
    .sf-menu li ul li a:visited{font-size:12px;padding:2px 8px;}
    .sf-menu li:hover ul,
    .sf-menu li.sfHover ul{top:49px;}
    .sf-menu li.new_8:hover ul,
    .sf-menu li.new_8.sfHover ul{right:-15px;}
    .sf-menu li.sfHover{background-size:46% 41%;}
    .toplinks{top:92px;}
    #footer .copyright{width:48%;}
    .foologo{width:52% /*429px*/;}
    .foologo a{display:block;float:left;width:29% /*128px*/;}
    #footer .footernav ul li{padding:0 11px;}
    #footer .footernav ul li a:link,
    #footer .footernav ul li a:visited,
    #footer .footernav ul li a:active{letter-spacing:0;}
    #footer .footernav ul{padding:10px 9px;}
    .rightstaf{max-width:292px;}
    .innerBlock .rightstaf{max-width:248px;}
    .innerBlock .imagestaf{max-width:200px;}
    .wpcf7-form div.wpcf7-response-output{width:60%;}

    /******** banner ***********/
    body .lens-tool-kit .sd-nav-deck .sd-thumb{border:1px solid #0F1114;cursor:pointer;display:block;float:left;height:74px;margin-bottom:3px;margin-left:13px;overflow:hidden;position:relative;width:130px;}
    body .lens-tool-kit .sd-nav-deck .sd-thumb .inner-image{background-size:cover;display:block;height:75px;position:absolute;width:131px;}
    body .lens-tool-kit.sd2-nav-bar.sd2-dark .sd-nav-wrapper{height:78px!important;width:640px!important;}

    /*.banner .lens-tool-kit.sd2-nav-bar.sd2-dark .sd-nav-wrapper{width: 640px !important;}*/

    /**** photo gallery ********/

    .ngg-galleryoverview .ngg-gallery-thumbnail-box{width:32%;}

    /*********************************19-April-2013**************************************************/

    /*    .sd-nav-wrapper{float: left; width:640px !important; height: 110px !important;}

    dl.sd-nav-deck{ height: 103px !important;}

    .lens-tool-kit.sd2-nav-bar.sd2-dark .sd-nav-wrapper{float: left; width:640px !important; height: 110px !important;}

    .lens-tool-kit .sd-nav-deck{ height: 100px !important;}

    .lens-tool-kit .sd-nav-deck .nav-centered{ width: auto !important;650px !important}

    .sd-nav-wrapper .sd-nav-deck.thumb{ height: 103px !important;}

    .sd-nav-wrapper.thumb-slide.slide slide_1{ width: 100% !important;}

    .lens-tool-kit .sd-nav-deck .sd-thumb.sd2-custom-title-font{ width: 195px !important; height: 110px !important;}

    .lens-tool-kit .sd-nav-deck .sd-thumb .inner-image{ width: 195px !important; height: 110px !important;}

    */}

.menu-icon{display:none;}

@media only screen and (max-width:767px){
    .menu-toggle{display:none;}
    #header #pagenav{text-align:right;    }
    .menu-icon{display:inline-block;cursor:pointer;padding-right: 20px;    position: relative;z-index: 999;}
    .bar1,
    .bar2,
    .bar3{width:35px;height:5px;background-color:#fff;margin:6px 0;transition:0.4s;}
    .change .bar1{-webkit-transform:rotate(-45deg) translate(-9px,6px);transform:rotate(-45deg) translate(-9px,6px);}
    .change .bar2{opacity:0;}
    .change .bar3{-webkit-transform:rotate(45deg) translate(-8px,-8px);transform:rotate(45deg) translate(-8px,-8px);}

    .menu_sub:after{content:"\f107";font-family:FontAwesome;font-style:normal;font-weight:normal;text-decoration:inherit;color:#fff;font-size:22px;position:absolute;top:4px;right:15px;padding:5px;z-index:9999;transform:all 0.2s ease;}
    .sf-menu {padding: 0 0 15px;}
    .menu_sub.open:after{transform: rotate(180deg);}

    .menu-item-has-children li .menu_sub:after{display:none;}
    .sf-menu ul.sub-menu{position: relative;width:100%;display:none;}
    .sf-menu li{position: relative;padding: 0;}    
    .sf-menu li:hover ul, .sf-menu li.sfHover ul {left: 0;top: 0;}
    .sf-menu li ul.sub-menu {background: transparent;padding: 0;    top: 0;}
    .sf-menu{margin:0px;    width: 100%;}
    .sf-menu li { width: 100%;text-align: left;}
}

@media only screen and (max-width:479px){
    .sf-menu li { width: 100%;text-align: left;}
    .sf-menu{margin:0px;}
    .bar1, .bar2, .bar3 {width: 30px;height: 2px;}
    .change .bar1 {-webkit-transform: rotate(-45deg) translate(-5px,2px);transform: rotate(-45deg) translate(-5px,2px);}
    .change .bar3 {-webkit-transform: rotate(45deg) translate(-9px,-6px);transform: rotate(45deg) translate(-9px,-6px);}
    .menu-icon {padding-right: 15px;padding-top: 8px;    padding-bottom: 7px;}
    
    #header #pagenav {margin-top: 150px;}


}