/*
Theme Name: N.K. BHANDARI, Architecture & Engineering, P.C. 
Theme URI: http://nkbpc.com/
Description: Designed by Banwa
Version: 1.0
Author: Banwa
Author URI: www.banwadesign.com
*/



@import url(http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic);
@import url(http://fonts.googleapis.com/css?family=Arapey:400italic,400);

* {font-family: 'Roboto', sans-serif;color:#323232;}
body {padding:0px;margin:0px;background:#f9f9f9;}
#main {width:70%;max-width:1180px;margin:0px auto;background:#eaeaea;padding:200px 50px;}


a:link {text-decoration:none;}
li {/*list-style-type:none;*/}
h1 {text-transform:uppercase;font-weight:900;}
h2 {text-transform:uppercase;font-weight:900;font-size:1.4em;}
h3 {text-transform:uppercase;font-weight:900;font-size:.8em;margin-bottom:5px;}

p {color:#323232;font-weight:300;margin-bottom:10px;}
ul  {color:#323232;font-weight:300;margin-bottom:10px;}





.mnheader {animation-name: headermnheight;height:40px;padding-top:20px; animation-duration: .5s;}
    @keyframes headermnheight {
    from {height: 150px;padding-top:30px;}
    to {height:40px;padding-top:20px;}
    }
.mxheader {animation-name: headermxheight;height:150px;padding-top:30px; animation-duration: .5s;}
    @keyframes headermxheight {
    from {height: 40px;padding-top:20px;}
    to {height:150px;padding-top:30px;}
    }
    
    
.hmcontentmn {animation-name: hmcontentmn;padding-top:60px;animation-duration: .5s;}
    @keyframes hmcontentmn {
    from {padding-top: 150px;}
    to {padding-top:60px;}
    }
.hmcontentmx {animation-name: hmcontentmx;padding-top:150px; animation-duration: .5s;}
    @keyframes hmcontentmx {
    from {padding-top: 60px;}
    to {padding-top:150px;}
    }   
    
.menunavmn {animation-name: menunavmn;top:10px;animation-duration: .5s;}
 @keyframes headerlogomn {
    from {top:77px;}
    to {top:10px;}
    }
 .menunavmx {animation-name: menunavmx;top:77px;animation-duration: .5s;}
 @keyframes headerlogomn {
    from {top:0px;}
    to {top:77px;}
    }
    

    


header {background:#323232;position:fixed;width:100%;height:150px;padding-top:30px;z-index:2;overflow:hidden;}        
.head {width:70%;max-width:1180px;height:100%; margin:0px auto;padding-left:10px;padding-right:10px;position:relative;}
.header-logo, .menu-nav {display:inline-block;vertical-align:top;}



.header-logo {width:150px;height:87px;overflow:hidden;}
.header-logo img {max-width:100%;}
.nkb-icon {height:20px;text-align:center;}
.nkb-icon img {height:100%;width:auto;}

.menu-tab {display:none;top:-35px;left:50px;position:relative;}
.menu-nav {width:54%;max-width:1040px;text-align:right;height:38px;position:fixed;}
.menu-nav li {display:inline-block;padding:4px;position:relative;top:-15px;}

.menu-nav li a:link {color:#eaeaea;text-transform:uppercase;font-weight:900;display:block;border-bottom:6px solid #323232;padding-bottom:5.5px;}
.menu-nav li a:visited {color:#eaeaea;border-bottom:6px solid #323232;}
.menu-nav li a:hover {border-bottom:6px solid #eaeaea;}
.menu-nav li a.current-page:link {border-bottom:6px solid #eaeaea;}
.menu-nav li a.current-page:visited {border-bottom:6px solid #eaeaea;}

/* HOME */
.home-content {width:80%;max-width:1180px;margin:0px auto;background:#ffffff;padding:150px 0px 0px 0px;}
.home-gallery {width:100%;height:0px;padding-bottom:50%;overflow:hidden;position:relative;background:#f9f9f9;}
.hm-gallery-img{position:relative;max-height:600px;overflow:hidden;}
.hm-gallery-img img {width:100%;height:auto;/*min-height:600px;width:auto;*/}
.hmcaption {background:#323232;opacity: 0.8;filter: alpha(opacity=80);position:absolute;/*top:500px;*/bottom:1.5%;height:80px;padding:10px;width:98.3%;}
.hmcaption  p, .hmcaption  strong{color:#ffffff;display:block;}
.home-gallery .prev {position:absolute;top:50%;left:0px;}
.home-gallery .next {position:absolute;top:50%;right:0px;}


.home-gallery .next, .home-gallery .prev {color:#ffffff;background:#323232;opacity:.1; width:50px;padding:2px 10px 4px 10px;transition: opacity .3s ease;cursor:pointer;font-weight:900;font-size:2em;text-align:center;border:1px solid #2b2b2b;position:absolute;}
.home-gallery .next:hover, .home-gallery .prev:hover {opacity:1;}



.home-mantra li {list-style-type:none;}
.home-mantra li h2 {margin-bottom:0px;text-align:center;}
.home-mantra li span {font-family:'Arapey',serif;font-style:italic;color:#D8b511;display:block;text-align:center;}
.home-mantra li .mantra-text, .home-mantra li .mantra-img {display:inline-block;vertical-align:middle;}


.home-mantra li:nth-child(1) {margin-bottom:40px;margin-top:40px;}
.home-mantra li:nth-child(1) .mantra-text {width:35%;padding:0px 40px;}
.home-mantra li:nth-child(1) .mantra-img {/*width:660px;height:700px;*/width:53.8%;height:300px;overflow:hidden;}
.home-mantra li:nth-child(1) .mantra-img img {max-width:100%;height:auto;max-height:400px;width:auto;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}

.home-mantra li:nth-child(2) {display:block;position:relative;width:100%;margin-bottom:40px;}
.home-mantra li:nth-child(2) .mantra-text, .home-mantra li:nth-child(2) .mantra-img {display:inline-block;vertical-align:top;}
.home-mantra li:nth-child(2) .mantra-text {width:34.5%;padding:0px 40px;position:relative;left:54.5%;}
.home-mantra li:nth-child(2) .mantra-img {width:49.5%;position:relative;right:41%;}
.home-mantra li:nth-child(2) .mantra-img img {width:100%;height:auto;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}

.home-mantra li:nth-child(3) {display:block;position:relative;width:100%;margin-bottom:40px;}
.home-mantra li:nth-child(3) .mantra-text, .home-mantra li:nth-child(2) .mantra-img {display:inline-block;vertical-align:middle;}
.home-mantra li:nth-child(3) .mantra-text {width:49.5%;padding:0px 40px;}
.home-mantra li:nth-child(3) .mantra-img {width:34.5%;}
.home-mantra li:nth-child(3) .mantra-img img {width:100%;height:auto;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}

.home-mantra li:nth-child(4) {width:98%; margin:0px auto;}
.home-mantra li:nth-child(4) h2, .home-mantra li:nth-child(4) span {text-align:left;}
.home-mantra li:nth-child(4) .mantra-img {width:100%;text-align:center;margin:20px 0px;white-space:nowrap;
    overflow-x:auto;padding-bottom:5px;}
.home-mantra li:nth-child(4) .mantra-img::-webkit-scrollbar { height: 8px;}
.home-mantra li:nth-child(4) .mantra-img::-webkit-scrollbar-thumb {background:#dddddd;}
.home-mantra li:nth-child(4) .mantra-img img {display:inline;width:100px;height:auto;margin:5px;vertical-align:middle;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}


/* ABOUT PAGES */
.side-nav  li {list-style-type:none;}
.side-nav li a:link {color:#323232;text-transform:uppercase;font-weight:900;font-size:.88em;margin-bottom:10px;display:block;transition:color .1s ease;}
.side-nav li a:visited {color:#323232;}
.side-nav li a:hover {color:#D8b511;}

.page-sidebar, .page-content {display:inline-block;vertical-align:top;}
.page-sidebar {width:29%;margin-top:10px;}
.page-content {width:70%;position:relative;}
.page-content img {max-width:100%;height:auto;}


/* TEAM */
.team-content {padding-bottom:20px;vertical-align:bottom;width:100%;text-align:center;}
.team-content ul {text-align:left;}
li.team-member {display:inline-block;position:relative;overflow:hidden;width:31%;min-height:0px;}
li.team-member a:link {border:none;}
li.team-member img {width:100%;height:auto;display:block;
/*-webkit-filter: grayscale(100%); 
filter: grayscale(100%);*/
}
.grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
    
}

li.team-member:hover a > div  {bottom:0px;}
.member-info {background:#000000;opacity:.7;position:absolute;bottom:-80px;transition: bottom .2s ease;padding:5px;width:100%;}
.member-name {font-size:.88em;font-weight:900;color:#ffffff;}
.team-position {font-family:'Arapey',serif;font-style:italic;color:#ffffff;}

.pop-team-bg {position:fixed; width:100%;height:100%;background:#000000;opacity:.9;top:0px;left:0px;z-index:1;}
.close-pop {font-weight:100;text-align:right;position:relative;top:-10px;font-weight:400;}
.close-pop a:link {color:#323232;opacity:.6;transition:opacity .5s ease;}
.close-pop a:visited {color:#323232;}
.close-pop a:hover {opacity:1;}

.team-single-content {position:absolute;max-width:1180px;min-width:950px;z-index:1;width:70%;left:0;right:0;margin-left:auto;margin-right:auto;height:800px;background:#323232;}
.team-single-img, .team-single-info {display:table-cell;}
.team-single-img {width:60%;position:relative;text-align:center;vertical-align:middle;}
.team-single-img img {max-width:90%;height:auto;max-height:700px;width:auto;/*-webkit-filter: grayscale(100%); filter: grayscale(100%);*/}

.team-single-info {background:#ffffff;width:33.3%;padding:20px;height:758px;vertical-align:top;}
.team-single-text {height:675px;overflow-y:scroll;position:relative;margin-bottom:10px;}
.team-single-text::-webkit-scrollbar { width: 10px;}
.team-single-text::-webkit-scrollbar-thumb {background:#dddddd;}

.team-single-info:hover > .team-single-text-gradient {opacity:0;}
.team-single-text-gradient {height:50px;width:26%;position:absolute;top:670px;opacity:1;transition:opacity .2s ease;
background: -webkit-linear-gradient(transparent, #ffffff); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(transparent, #ffffff); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(transparent, #ffffff); /* For Firefox 3.6 to 15 */
    background: linear-gradient(rgba(255,255,255,0),rgba(255,255,255,1)); /* Standard syntax (must be last) */
}
.team-single-info .team-position {color:#D8b511;}
.team-single-info .team-highlight {margin-top:20px;margin-bottom:20px;}


/* PORTFOLIO */
 .prjcatsmn {position:fixed;top:60px;z-index:1;background:#eaeaea;}
.project-categories {margin-bottom:20px;padding:35px 0px;width:100%;margin-left:auto;margin-right:auto;}
.showall {position:relative;left:0px;top:-20px;font-family:'Arapey',serif;font-style:italic;color:#D8b511;display:block;cursor:pointer;}


.project-cats {padding-top:20px;width:100%;}
.project-categories li {display:inline-block;cursor:pointer;width:200px;vertical-align:top;margin-bottom:4px;}

.portfolio-content {position:relative;margin:0px auto;}
 
 li.project {width:315px;margin:10px;position:relative;}
/*.project-width, li.project {width:28%;margin:20px;position:relative;}*/
li.project .portfolio-thumb {width:100%;}
li.project .portfolio-thumb img {width:100%;height:auto;border-radius:8px 8px 0px 0px;/*-webkit-filter: grayscale(100%); filter: grayscale(100%);*/transition:-webkit-filter .3s ease; cursor:pointer;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}
li.project .portfolio-thumb:hover > img {-webkit-filter: grayscale(0%); filter: grayscale(0%);}
.project-text {margin:10px 0px 20px 0px;border-bottom:1px solid #323232;padding-bottom:15px;cursor:pointer;}
.project-category {font-family:'Arapey',serif;font-style:italic;cursor:auto;}


li.project, .project-categories li {list-style-type:none;}
.clear {clear:both;}
.pop-bg {position: fixed;display: none; width:100%; height:100%;top:0;right:0;background:#000000;opacity:.9;z-index:0;}
.pop {position: fixed;display: none;width:100%;height:100%;top:0;right:0;background:transparent;z-index:2;}
.popit {display:block;width:90%;max-width:1180px;min-width:900px;height:700px;margin:40px auto 0px auto;position:relative;
   overflow:visible;}  



.gallery .next, .gallery .prev {color:#ffffff;background:#323232;opacity:.1; width:50px;padding:2px 10px 4px 10px;transition: opacity .3s ease;cursor:pointer;font-weight:900;font-size:2em;text-align:center;border:1px solid #2b2b2b;position:absolute;}
.gallery .next:hover, .gallery .prev:hover {opacity:1;}
.gallery .next {right:0px;margin-top:25%;top:0px;cursor:pointer;}
.gallery .prev {left:0px;margin-top:25%;top:0px;cursor:pointer;}


.gallery-wrap, .project-info {display:table-cell;}
 
.gallery-wrap {height:700px;width:65%;background:#323232;vertical-align:middle;}
.gallery {width:100%; margin:0px auto;position:relative;}
.gallery-images {width:50px;float:left;margin-right:2px;} /*width is width of .gallery-thumb*/
  
  
.gallery-img, .gallery-ft-img {position:absolute;top:0px;left:0px;background:#2b2b2b;height:500px;width:100%;display:inline-flex;} 
.gallery-img img, .gallery-ft-img img {max-height:500px;width:auto;max-width:100%; height:auto;margin:auto;display:block;}
.gallery-thumb { bottom:0px;margin-top:500px;margin-left:20px;}
.gallery-thumb img {max-width:50px;max-height:50px;width:auto:height:auto;opacity:.3;/*-webkit-filter: grayscale(100%); filter: grayscale(100%);*/cursor:pointer;transition:opacity.3s ease;margin-top:20px;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}
.gallery-thumb img:hover {opacity:1;}
 
 
.close {display:block;width:20px;margin-left:auto;position:relative;top:-10px;right:-5px;color:#888888;cursor:pointer;}
.project-info {/*width:350px;*/vertical-align:top;padding:20px;color:#323232;font-weight:300;margin-bottom:10px;background:#eaeaea;}
.project-info-content {height:550px;min-width:250px;overflow-y:scroll;padding-right:10px;margin-bottom:10px;}
.project-info-content::-webkit-scrollbar { width: 10px;}
  
.project-info-content::-webkit-scrollbar-thumb {background:#dddddd;}

.project-info-content-gradient {height:0px;padding-bottom:100px;min-width:250px;width:30%;position:absolute;top:500px;transition: top .5s ease, padding-bottom .5s ease;margin-bottom:0px;
 background: -webkit-linear-gradient(transparent, #eaeaea); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(transparent, #eaeaea); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(transparent, #eaeaea); /* For Firefox 3.6 to 15 */
    background: linear-gradient(rgba(234,234,234,0),rgba(234,234,234,1)); /* Standard syntax (must be last) */
 }
.project-info-content:hover > .project-info-content-gradient {top:600px;padding-bottom:0px;}
 
.project-info .project-category {color:#D8b511;}
.project-info-content ul {list-style-type:circle;margin-left:-10px;}
.project-info-content li { margin-bottom:10px;}




.pop-portfolio-bg {position:fixed; width:100%;height:100%;background:#000000;opacity:.9;top:0px;left:0px;}

/* SERVICES */
.services-content {width:99%;margin:0px auto;text-align:center;}
.services-content ul {text-align:left;}
.service {list-style-type:none;width:28%; background:#ffffff;display:inline-block;padding:10px;vertical-align:top;/*margin:20px;*/margin:0px 10px 10px 0px;height:620px;position:relative;}
.service-title {min-height:60px;}
.service-img {display:block;margin:40px auto;text-align:center;width:100%;height:180px;}
.service-img img {max-width:100%; height:auto;max-height:180px;width:auto;}
.service-content {height:250px;overflow-y:hidden;padding-right:15px;margin-bottom:20px;transition:overflow-y .5s ease;}
.service-content:hover {overflow-y:scroll;}
.service-content::-webkit-scrollbar { width: 10px;}
.service-content::-webkit-scrollbar-thumb {background:#dddddd;}


.service-gradient {height:0px;padding-bottom:50px;width:94%;position:absolute;top:550px;transition: top .5s ease, padding-bottom .5s ease;margin-bottom:0px;
 	background: -webkit-linear-gradient(left,rgba(255,0,0,0),rgba(255,0,0,1)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(transparent, #ffffff); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(transparent, #ffffff); /* For Firefox 3.6 to 15 */
    background: linear-gradient(rgba(255,255,255,0),rgba(255,255,255,1)); /* Standard syntax (must be last) */
 }
.service:hover > .service-gradient {top:600px;padding-bottom:0px;}

/* CLIENTS */
.clients-content li {list-style-type:none;}
.client-logos {text-align:center;margin:80px 0px;}
.client-logos li {display:inline-block;width:15.5%;margin:20px 60px;vertical-align:middle;}
.client-logos li img {/*-webkit-filter: grayscale(0%); filter: grayscale(0%);*/width:100%;height:auto;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%);
}


.client {margin-bottom:80px;width:100%;position:relative;}
.client-cat, .client-name {display:table-cell;}
.client-cat {max-width:250px;min-width:250px;}

.client-name { -webkit-columns: 2;-moz-columns: 2;columns: 2; width:800px;}
.client-name li {margin-bottom:10px;}


/* CONTACT */

.contact-content {width:60%;margin:0px auto;}
.contact-content h1 {text-align:center;}
.contact-content form {height:450px;padding-top:40px;}
.contact-content form p {font-family: 'Roboto', sans-serif;color:#323232;font-weight:800;font-size:1em;text-transform:uppercase;margin:20px 0px;}
.contact-content input, .contact-content textarea{float:right;width:65%;background:#eaeaea;border:1px solid #bbbbbb;color:#323232;padding:5px;font-size:.8em;}

.contact-content input[type="submit"] {clear:both;background:#323232;color:#eaeaea;text-transform:uppercase;width:100px;border-radius:4px;border:1px solid #323232;margin-top:10px;cursor:pointer;transition:background .1s ease, border .1s ease;}
.contact-content input[type="submit"]:hover {background:#D8b511;color:#ffffff;border:1px solid #D8b511;border:1px solid #D8b511;}

.contact-content .contact-info {text-align:center;}
.contact-content .phone, .contact-content .fax {display:inline;}
.contact-content .phone{margin-right:50px;}

footer {background:#323232; position:relative;width:100%;font-size:.8em;}
.foot {width:70%;max-width:1180px;padding:30px 10px;margin:0px auto;text-align:center;}.nkb-ft {display:inline-block;width:32%;color:#f8f8f8;opacity:.4;vertical-align:top;}

.ft-logo {text-align:center;}
.ft-logo img {width:100%; max-width:300px;display:block;margin:0px auto;}
 
.ft-sitemap {text-align:left;}
.ft-sitemap li  {list-style-type:none;}
.ft-sitemap li  a:link {color:#f8f8f8;}
.ft-sitemap li  a:visited {color:#f8f8f8;}

.ft-icons {text-align:right;}
.ft-icons img {height:30px;width:auto;margin-bottom:10px;}

/* SHARE BUTTONS */
.share-icon {display:inline-block;vertical-align:middle;}
.share-icon img {height:20px;width:auto;}


.plink span, .plink .permalink {display:inline-block;vertical-align:middle;}
.permalink {background:transparent;border:none;width:70%;}

.share span {font-size:.8em;}





/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

