/*

Template 2085 Neuron

http://www.tooplate.com/view/2085-neuron

*/

body {
		background: #ffffff;
    font-family: 'Lora', serif;
    font-style: normal;
		font-weight: 300;
    overflow-x: hidden;
}


/*---------------------------------------
    Typorgraphy              
-----------------------------------------*/

h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0.5px;
}

h1 {
    font-size: px;
    padding-bottom: 14px;
    margin-bottom: 0px;
}

h2 {
  font-size: 32px;
}

h2,h3 {
  padding-bottom: 6px;
}

h3 {
  font-size: 26px;
}

h4 {
  color: #666;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 2px;
}

p {
    color: #333;
    font-size: 16px;
    font-weight: 300;
    line-height: 25px;
    letter-spacing: 0.3px;
}

.btn-success:focus {
  background-color: #333;
  border-color: transparent;
}

.cleaner { clear: both }

/*---------------------------------------
    General               
-----------------------------------------*/

html{
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4d638c;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}
a:hover, a:active, a:focus {
  color: #4d638c;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#about,
#gallery,
#contact,
#blog, 

/*#about {
  padding-bottom: 0px;
}*/
#blog-single-post {
  padding-top: 60px;
  padding-bottom: 80px;
}
#blog-individual-post {
  padding-top: 0px;
  padding-bottom: 10px;
}

.main-single-post,
.main-gallery,
.main-contact {
  height: 65vh;
}

.overlay {
  background: rgba(0,0,0,0.1);
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.parallax-section {
  background-attachment: fixed !important;
  background-size: cover !important;
  overflow: hidden;
}


/*---------------------------------------
    Preloader section              
-----------------------------------------*/

/*---------------------------------------
    Main Navigation             
-----------------------------------------*/

.navbar-default {
    background: #f6f6f3;
    margin: 0 !important;
    padding: 18px 0;
}

.navbar-default .navbar-brand {
  color: #333;
  font-size: 22px;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  /*text-transform: uppercase;*/
  letter-spacing: 4px;
  margin: 0;
}


.navbar-default .navbar-nav li a {
    color: #333;
    font-size: 18px;
    letter-spacing: 1px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-right: 16px;
    padding-left: 16px;
}

.navbar-default .navbar-nav > li a:hover {
    color: #6e6823 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #606066;
    background-color: transparent;
}

.navbar-default .navbar-nav li a:hover,
 .navbar-default .navbar-nav .active > a {
    color: #6e6823;
  }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #6e6823;
    background-color: transparent;
}

.navbar-default .navbar-toggle {
     border: none;
     padding-top: 10px;
  }

.navbar-default .navbar-toggle .icon-bar {
    background: #6e6823;
    border-color: transparent;
  }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { 
  background-color: transparent;
}



/*---------------------------------------
    Home section              
-----------------------------------------*/

#home {
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
     align-items: end;
    position: relative;
    text-align: left;
}

.main-home {
  /*background: url('../images/lab photo.png') no-repeat;*/
  height: 70vh;
}

.main-about {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: 100%;
    height: auto;
    padding: 30px 28px 0;
}

.centered-image {
    display: block;
    width: 100%;
    max-width: 1140px;
    aspect-ratio: 1.9 / 1;
    object-fit: cover;
    object-position: 50% 52%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

@media (max-width: 700px) {
  .centered-image { aspect-ratio: 4 / 3; }
}

.main-single-post {
  background: url('../images/single-post-bg.jpg') no-repeat;
}

.main-gallery {
  background: url('../images/gallery-bg.jpg') no-repeat;
}

.main-contact {
  background: url('../images/contact-bg.jpg') no-repeat;
}

.lab-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

#home h4 {
  color: #eeeee4;
  padding: 0 0 80px 0;
}

#home .btn {
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 100px;
  color: #444;
  font-family: 'Merriweather', serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 22px;
  margin-top: 42px;
  transition: all 0.4s ease-in-out;
}

#home .btn:hover {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

#video-container  {
  /*position: absolut;*/
  width: 100%;
  height: 70vh;
  /*height: 100%;*/
  overflow: hidden;
  z-index: 1;
}

#video-container video,
.video-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

#video-container .video-overlay {
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  width: 100%;
}

#video-container .video-content {
  z-index: 99999;
  position: absolute;
  height: 100%;
  width: 100%;
}

#video-container .video-content .inner {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
}

#video-container .video-content .inner h1 {
  font-size: 64px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
  font-weight: 500;
  text-align: center;
}

#video-container .video-content .inner em {
  font-style: normal;
  font-weight: 200;
}


#video-container .video-content .inner p {
  color: #fff;
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0px 30px;
}

#video-container .video-content .inner a {
  color: #fff;
  text-decoration: underline;
}

#video-container .video-content .inner .scroll-icon {
  margin-top: 45px;
}


/*---------------------------------------
   About section              
-----------------------------------------*/

#about .col-md-6 {
  padding-top: 0px;
  padding-bottom: 32px;
}

#about .col-md-6 img {
  padding: 0px 0px 0px 0px;
  width:  300px;
}

#about .col-md-6 h4 {
    color: #777;
    font-size: 16px;
}

#about .gallery_bossimg{
  display: inline-block;
  float: left; 
  width: 300px; 
  height: auto;
  overflow: hidden;
  margin: 30px 40px 0px 0px; /****margin 15px 40px 0 0*/
}


#about .gallery_row{
  display: inline-block;
  width: 1050px;
  padding-bottom: 0px; 
  /*border-top: 1px dotted #666; */
}

#about .gallery_row img{
  width: 300px;
}
#about .gallery_row h2{
  /*font-family: 'Times', serif;*/
  color: #6C6C6C;
  font-weight: bold;
  font-size: 30px;
  padding-top: 20px; 
  padding-bottom: 20px; 
}


#about .gallery_box { 
  font-size: 14px;
  display: block; 
  float: left; 
  width: 28%; 
  margin: 10px 40px 0px 0;  
}

#about .gallery_box h3 { 
  color: #333;
  font-size: 20px; 
  padding-bottom: 0px;

}

#about .gallery_box p { 
  font-size: 12px; 
}

#about .gallery_box h4 {
    color: #777;
    font-size: 14px;
    line-height: 20px;
}

#about .gallery_boximg { 
  display: flex; /* Set display to flex to use justify-content */
  height: 220px; 
  width: 100%; /* Set width to 100% or a fixed width as needed */
  overflow: hidden;
  margin: 0px; /* Adjust margin as needed */
  justify-content: center; /* This will horizontally center the child img */
  align-items: center; /* This will vertically center the child img */
}

#about .gallery_boximg img {
  max-height: 100%; /* Ensures the image height does not exceed the container's height */
  max-width: 100%; /* Ensures the image width does not exceed the container's width */
  object-fit: contain; /* Ensures the image is scaled to maintain its aspect ratio without cropping */
}

#about p {
    color: #333;
    font-size: 15px;
    font-weight: 200;
    line-height: 25px;
    letter-spacing: 0.3px;
}


/*---------------------------------------
   Gallery section              
-----------------------------------------*/

#gallery span {
  display: block;
  padding-bottom: 32px;
}

#gallery .col-md-6 {
  padding-left: 0px;
  padding-right: 0px;
}

#gallery .gallery-thumb {
  background-color: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(90, 91, 95, 0.15);
  cursor: pointer;
  display: block;
  position: relative;
  top: 0px;
  transition: all 0.4s ease-in-out;
}

#gallery .gallery-thumb:hover {
  box-shadow: 0px 16px 22px 0px rgba(90, 91, 95, 0.3);
  top: -5px;
}

#gallery .gallery-thumb img {
  width: 100%;
}

#gallery .col-md-12 p {
  padding-top: 0px;
  text-align: center;
}

/* publication */

#tooplate_publication {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.post_box_first { 
  margin-bottom: 30px; 
  padding-bottom: 0px; 
  /*background: url(../images/tooplate_divider.png) repeat-x bottom; */
}

.post_box { 
  margin-bottom: 30px; 
  padding-bottom: 30px; 
  /*background: url(../images/tooplate_divider.png) repeat-x bottom; */
}

/*---------------------------------------
   Contact section              
-----------------------------------------*/

#contact .col-md-4 {
  padding-left: 0px;
}

#contact .col-md-12 {
  padding-left: 0;
}

#contact form {
  padding-top: 32px;
}

#contact .form-control {
  border: 2px solid #f0f0f0;
  box-shadow: none;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:hover {
  border-color: #555;
}

#contact input {
  height: 50px;
}

#contact input[type="submit"] {
  background: #6e6823;
  border-radius: 100px;
  border: none;
  color: #ffffff;
  font-weight: bold;
  transition: all 0.4s ease-in-out;
}

#contact input[type="submit"]:hover {
  background: #333;
}



/*---------------------------------------
   Blog section              
-----------------------------------------*/

.blog-post-thumb {
  border-bottom: 1px solid #f0f0f0;
  padding-top: 0px;
  padding-bottom: 32px;
  margin-bottom: 0px;
  text-align: justify;
}

.blog-post-thumb:last-child {
  border-bottom: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
}
.blog-post-video{
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  text-align: center;
}

.blog-post-video video{
  padding-top: 0px;
  padding-bottom: 0px;
  width: 60%;
}
.blog-post-video h4{
  font-family: 'Arial', serif;
  color: #000;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: 1px;
}


.blog-post-image {
  padding-top: 22px;
  padding-bottom: 22px;
  width: 100%;
}


.blog-post-image img {
  border-radius: 1px;
  width: 500px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-image2 img {
  border-radius: 1px;
  width: 350px;
  /*display: inline-block;*/
  margin-left: auto;
  margin-right: auto;
}

.blog-post-image .btn {
  border-radius: 10px;
  font-family: 'Arial', serif;
  color: #333;
  /*width: 500px;*/
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 1px;
  /*padding: 10px 28px;*/
  /*display: block;*/
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
  transition: all 0.4s ease-in-out;
}


.blog-post-image .btn:hover {
  background: #6e6823;
  border-color: transparent;
  color: #ffffff;
}

.blog-post-des img {
  border-radius: 1px;
  padding-top: 0px;
  padding-bottom: 0px;
  width: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-title {
  padding-bottom: 22px;
}
.blog-post-title a {
  color: #333;
  font-weight: bold;
}

/*.blog-post-title a:hover {
  color: #6e6823;
}*/

.blog-post-row{
  /*width: 100%;*/
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /*padding-bottom: 20px; */
  /*border-top: 1px dotted #666; */
}
.blog-post-row .btn {
  border-radius: 10px;
  font-family: 'Arial', serif;
  color: #333;
  background: #E5EAF1;
  /*width: 500px;*/
  font-weight: bold;
  font-size: 10;
  letter-spacing: 1px;
  /*padding: 10px 28px;*/
  /*display: block;*/
  margin-bottom: 10px;
  margin-left: 5px;
  margin-right: 5px;
  transition: all 0.4s ease-in-out;
}

.blog-post-row .btn:hover {
  background: #6e6823;
  border-color: transparent;
  color: #ffffff;
}

.blog-post-box { 
  font-size: 14px;
  display: block; 
  float: left; 
  width: 300px; 
  margin: 10px 0px 0px 0;  
}

.blog-post-text {
  float: left;
  width: 60%;
  padding-bottom: 22px;
}

.blog-post-text-image-1 {
  float: right;
  width: 35%;
  padding-top: 40px;
  padding-bottom: 22px;
}

.blog-post-text-image-2 {
  float: right;
  width: 35%;
  padding-top: 10px;
  padding-bottom: 22px;
}

.blog-post-text-image span img {
  display: inline-block;
  width: 42px;
  height: 10px;
  margin-right: 4px;
}

.blog-post-text h4 {
    font-family: 'Arial', serif;
    color: #333;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: 1px;
}

.blog-post-text.side {
  width: 70%, 30%;
}

.blog-post-format {
  padding-bottom: 22px;
  display: inline-block;
}

.blog-post-format span {
  letter-spacing: 0.5px;
  padding-right: 12px;
}

.blog-post-format span a {
  color: #333;
}

.blog-post-format span img {
  display: inline-block;
  width: 42px;
  margin-right: 4px;
}

.blog-post-format h4 {
    font-family: 'Arial', serif;
    color: #333;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: 1px;
}

.blog-post-format p {
    font-family: 'Arial', serif;
    color: #333;
    font-size: 13px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 1px;
}
.blog-post-des h4 {
    color: #333;
    font-size: 15px;
    font-weight: 300;
    line-height: 35px;
    letter-spacing: 0.3px;
    text-align: justify
}

.blog-post-des blockquote {
  margin: 22px;
}

.blog-post-des .btn {
  border-radius: 100px;
  color: #333;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 10px 28px;
  margin-top: 26px;
  transition: all 0.4s ease-in-out;
}

.blog-post-des .btn:hover {
  background: #6e6823;
  border-color: transparent;
  color: #ffffff;
}

.blog-author {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 42px;
  margin-bottom: 42px;
}

.blog-author .media img {
  display: inline-block;
  width: 90px;
  margin-right: 12px;
}

.blog-author .media a,
.blog-comment .media h3 {
  color: #444;
  font-size: 18px;
  letter-spacing: 1px;
}

.blog-comment {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 32px;
  margin-bottom: 42px;
}

.blog-comment .media:nth-child(2) {
  padding-top: 22px;
}

.blog-comment .media img {
  width: 82px;
  margin-right: 12px;
}

.blog-comment .media h3 {
  display: inline-block;
  padding-right: 14px;
}


.blog-comment-form h3 {
  padding-bottom: 18px;
}

#about .col-md-6, #about .col-md-4,
.blog-comment-form .col-md-4 {
  padding-left: 0px;
}

.blog-comment-form .form-control {
  box-shadow: none;
  border: 2px solid #f0f0f0;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: all 0.4s ease-in-out;
}

.blog-comment-form .form-control:hover {
  border-color: #555;
}

.blog-comment-form input {
  height: 45px;
}

.blog-comment-form input[type="submit"] {
  background: #6e6823;
  border-radius: 100px;
  border: none;
  color: #ffffff;
  font-weight: bold;
  transition: all 0.4s ease-in-out;
}

.blog-comment-form input[type="submit"]:hover {
  background: #333;
  border-color: transparent;
  color: #ffffff;
}



/*---------------------------------------
   Blog Single Post section              
-----------------------------------------

#blog-single-post .blog-single-post-image {
  padding-top: 22px;
}

#blog-single-post .blog-single-post-image .col-md-4 {
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 22px;
}

#blog-single-post .blog-single-post-image img {
  border-radius: 1px;
  padding-right: 12px;
}

#blog-single-post .blog-post-des h3 {
  padding-top: 16px;
}



/*---------------------------------------
   Footer section              
-----------------------------------------*/

img {
    max-width: 100%;
    height: auto;
}

footer {
    background: #ffffff;
    color: #333;
    padding: 25px 0px 25px;
    position: relative;
    border-top: 1px solid #f0f0f0;

}s

footer .col-md-4 .fa {
  color: #333;
  padding-right: 0px;
}

footer hr {
  border-color: #121212;
  margin-top: 0px;
  margin-bottom: 40px;
}

footer .footer-copyright {
  padding-top: 0px;
}



/* Back top */
.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  transition : all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #333;
  font-size: 24px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border-radius: 100%;
}

.go-top:hover {
    background: #6e6823;
    color: #ffffff;
}



/*---------------------------------------
   Social icon             
-----------------------------------------*/

.social-icon {
    position: relative;
    padding: 0;
    margin: 0;
    text-align: center;
}

.social-icon li {
    display: inline-block;
    list-style: none;
}

.social-icon li a {
    border: 2px solid #292929;
    color: #292929;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    vertical-align: middle;
    position: relative;
    margin: 22px 12px 10px 12px;
}

.social-icon li a:hover {
    border-color: #6e6823;
    color: #6e6823;
    transform: scale(1.1);
}



/*---------------------------------------
   Mobile Responsive         
-----------------------------------------*/

@media (max-width: 980px) {
  .main-single-post,  
  .main-gallery,
  .main-contact {
    height: 35vh;
  }

}


@media (max-width: 768px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 26px;
  }

  #about .col-md-6 img {
    padding-left: 0px;
  }

  #blog-single-post .blog-single-post-image img {
    padding-bottom: 22px;
  }

  footer .col-md-4 {
    padding-top: 0px;
  }

}


@media (max-width: 650px) {
  h1 {
    font-size: 42px;
  }

  #about, #gallery,
  #contact,
  #blog, #blog-single-post {
    padding-top: 60px;
    padding-bottom: 60px;
  }

}

@media (max-width: 768px) {
    .navbar-default .navbar-nav li a {
        font-size: 16px; /* Smaller font size */
        padding: 10px; /* Adjust padding */
    }
    .navbar-brand {
        font-size: 20px; /* Adjust brand logo size */
    }
}

@media (max-width: 768px) {
    .col-md-6, .col-md-4, .col-md-3 {
        width: 100%;
        float: none;
    }
}
/** {box-sizing: border-box}*/

/*img {vertical-align: middle;}*/

/* Slideshow container */
.slideshow-container {
  display: inline-block;
  max-width: 1050px;
  position: relative;
  margin: auto;
  padding: 30px 0px 0px 0px;
}

.slideshow-box { 
  display: block;
  max-width: 470px;
  margin: auto;
  float: left;
}

.slideshow-box {
  padding: 0px 40px 0px 40px;
}

.slideshow-box img{
  padding: 0;
  width: 100%;
  aspect-ratio: 876 / 834;
  object-fit: contain;
  background: #ffffff;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  padding: 16px;
  margin-top: -22px;
  color: black;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 0px;
}

/* Position the "next button" to the right */
.next {
  right: 0px;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  font-family: 'Merriweather', serif;
  color: black;
  font-size: 20px;
  padding: 0, 0, 10, 0px;
  position: relative;
  /*top: 8px;*/
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  position: relatvie;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot:hover {
  background-color: #717171;
}

/* Fading animation */
/*.fadein {
  animation-name: fadein;
  animation-duration: 2s;
}
*/
.fadeout {
  animation-name: fadeout;
  animation-duration: 3s;
}

/*@keyframes fadein {
  from {opacity: 0.2} 
  to {opacity: 1}
}*/

@keyframes fadeout {
  from {opacity: 1} 
  to {opacity: 0.2}
}

@keyframes slide{
    0%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-300%);
    }
    50%{
        transform: translateX(0);
    }
    55%{
        transform: translateX(-200%);
    }
    75%{
        transform: translateX(-200%);
    }
    80%{
        transform: translateX(-300%);
    }
    100%{
        transform: translateX(-300%);
    }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

/* ---------------------------------------------------------------------------
   People page - PI block, member grid, alumni
   Grid replaces the old float layout, which left holes in rows whenever
   cards differed in height.
   --------------------------------------------------------------------------- */

#about .pi {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  background: #f6f6f3;
  border-radius: 14px;
  padding: 38px 44px;
  margin: 46px 0 58px;
}
#about .pi-photo { border-radius: 10px; overflow: hidden; background: #ecece7; line-height: 0; }
#about .pi-photo img { width: 100%; height: auto; display: block; }
#about .pi-bio h3 { font-size: 31px; margin: 0 0 6px; padding-bottom: 0; }
#about .pi-bio .role { color: #6e6823; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
#about .pi-bio .dept { font-size: 15px; color: #5d5d58; margin: 0 0 18px; line-height: 1.6; }
#about .pi-bio ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid #e4e4dc; }
#about .pi-bio li { font-size: 14px; line-height: 1.9; color: #5d5d58; }
#about .pi-contact {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  border-left: 1px solid #e4e4dc; padding-left: 40px; white-space: nowrap;
}
#about .pi-contact a { font-size: 13.5px; color: #4d638c; text-decoration: none; }
#about .pi-contact a:hover { color: #6e6823; }
#about .pi-contact .cv { border: 1px solid #d8d8cd; border-radius: 6px; padding: 8px 16px; color: #6e6823; }
#about .pi-contact .cv:hover { border-color: #6e6823; }

#about .sec-head { font-size: 26px; margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid #e9e9e3; }

#about .people-grid {
  display: grid;
  gap: 30px 26px;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  align-items: stretch;
  margin-bottom: 58px;
}
#about .person {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid #e9e9e3; border-radius: 12px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
#about .person:hover { border-color: #6e6823; box-shadow: 0 6px 20px rgba(60,60,40,.09); transform: translateY(-3px); }
#about .person-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #f0f0ec; }
#about .person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
#about .person-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
#about .person h3 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; padding-bottom: 0; }
#about .person .role { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6e6823; margin: 0 0 12px; }
#about .person .edu { list-style: none; margin: 0 0 12px; padding: 0; flex: 1; width: 100%; }
#about .person .edu li { font-size: 12.5px; line-height: 1.6; color: #79796f; margin-bottom: 4px; }
#about .person .mail {
  font-size: 12.5px; color: #4d638c; text-decoration: none; word-break: break-word;
  border-top: 1px solid #f0f0ea; padding-top: 10px;
}
#about .person .mail:hover { color: #6e6823; }

#about .alumni { padding-bottom: 40px; }
#about .alumni h3 {
  font-size: 15px; margin: 26px 0 10px; padding-bottom: 4px;
  display: inline-block; border-bottom: 2px solid #6e6823;
}
#about .alumni p { margin: 0 0 7px; font-size: 13.5px; line-height: 1.75; color: #79796f; }
#about .alumni p b { font-weight: 400; color: #444; }

@media (max-width: 980px) {
  #about .pi { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; }
  #about .pi-contact {
    grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px;
    border-left: 0; border-top: 1px solid #e4e4dc; padding: 16px 0 0;
  }
}
@media (max-width: 700px) {
  #about .pi { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  #about .pi-photo { max-width: 230px; margin: 0 auto; }
  #about .pi-bio ul { text-align: left; }
  #about .pi-contact { justify-content: center; }
}
@media (max-width: 560px) {
  #about .sec-head { font-size: 22px; }
  #about .people-grid { gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #about .person-body { padding: 12px 13px 14px; }
  #about .person h3 { font-size: 15px; }
}


/* ---------------------------------------------------------------------------
   Dark mode - follows the visitor's OS setting, no toggle required.
   The light accent #6e6823 only reaches 3.20:1 on a dark page, so dark mode
   uses a lighter olive (#c9c05e, 9.76:1) and a lifted link blue.
   --------------------------------------------------------------------------- */


/* Rounded corners on content imagery and video, matching the cards and hero */
.slideshow-box img,
.blog-post-image img,
.blog-post-image2 img,
.blog-post-text-image-1 img,
.blog-post-text-image-2 img,
.blog-post-box img,
.blog-post-thumb img,
#about .col-md-6 img,
.blog-post-video video {
  border-radius: 10px;
  overflow: hidden;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus { color: #6e6823; text-decoration: none; }

/* ---------------------------------------------------------------------------
   Dark theme. Applied via html.theme-dark, which the inline script in each
   page's <head> sets from localStorage, falling back to the OS setting.
   --------------------------------------------------------------------------- */

html.theme-dark,
html.theme-dark body { background: #15150f; color: #dcdcd8; }

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6 { color: #f2f2f0; }

html.theme-dark p,
html.theme-dark li,
html.theme-dark span { color: #dcdcd8; }

html.theme-dark a { color: #a9c2e8; }

html.theme-dark a:hover,
html.theme-dark a:focus { color: #c9c05e; }

html.theme-dark .navbar-default { background-color: #1a1a13; border-color: #30302a; }

html.theme-dark .navbar-default .navbar-brand { color: #f2f2f0; }

html.theme-dark .navbar-default .navbar-nav li a { color: #c9c9c4; }

html.theme-dark .navbar-default .navbar-nav li a:hover,
html.theme-dark .navbar-default .navbar-nav > li > a:hover,
html.theme-dark .navbar-default .navbar-nav > li > a:focus,
html.theme-dark .navbar-default .navbar-nav > .active > a,
html.theme-dark .navbar-default .navbar-nav > .active > a:hover,
html.theme-dark .navbar-default .navbar-nav > .active > a:focus { color: #c9c05e; background-color: transparent; }

html.theme-dark .navbar-default .navbar-toggle .icon-bar { background-color: #dcdcd8; }

html.theme-dark footer { background: #1a1a13; color: #c9c9c4; }

html.theme-dark footer p,
html.theme-dark footer a { color: #c9c9c4; }

html.theme-dark .main-about { background-color: #15150f; }
/* People page */
html.theme-dark #about .pi { background: #1a1a13; }

html.theme-dark #about .pi-bio .role { color: #c9c05e; }

html.theme-dark #about .pi-bio .dept,
html.theme-dark #about .pi-bio li { color: #c4c4be; }

html.theme-dark #about .pi-bio ul { border-top-color: #30302a; }

html.theme-dark #about .pi-contact { border-left-color: #30302a; }

html.theme-dark #about .pi-contact a { color: #a9c2e8; }

html.theme-dark #about .pi-contact .cv { color: #c9c05e; border-color: #3b3b31; }

html.theme-dark #about .pi-contact .cv:hover,
html.theme-dark #about .pi-contact a:hover { color: #c9c05e; border-color: #c9c05e; }

html.theme-dark #about .sec-head { border-bottom-color: #30302a; }

html.theme-dark #about .person { background: #1d1d16; border-color: #30302a; }

html.theme-dark #about .person:hover { border-color: #c9c05e; box-shadow: 0 6px 20px rgba(0,0,0,.45); }

html.theme-dark #about .person-photo { background: #24241c; }

html.theme-dark #about .person .role { color: #c9c05e; }

html.theme-dark #about .person .edu li { color: #b0b0a9; }

html.theme-dark #about .person .mail { color: #a9c2e8; border-top-color: #2a2a22; }

html.theme-dark #about .person .mail:hover { color: #c9c05e; }

html.theme-dark #about .alumni h3 { border-bottom-color: #c9c05e; color: #f2f2f0; }

html.theme-dark #about .alumni p { color: #b0b0a9; }

html.theme-dark #about .alumni p b { color: #dcdcd8; }
/* other pages */
html.theme-dark .post_box,
html.theme-dark .post_box_first,
html.theme-dark .blog-post-thumb,
html.theme-dark .blog-post-format { background: transparent; }

html.theme-dark .go-top { background: #2a2a22; color: #dcdcd8; }
/* page-specific rules that set dark text in light mode and beat the
     generic selectors above on specificity */
html.theme-dark h4 { color: #b0b0a9; }

html.theme-dark #about p { color: #dcdcd8; }

html.theme-dark #about .col-md-6 h4,
html.theme-dark #about .gallery_box h4 { color: #b0b0a9; }

html.theme-dark #about .gallery_box h3 { color: #f2f2f0; }

html.theme-dark .blog-post-format h4,
html.theme-dark .blog-post-format p,
html.theme-dark .blog-post-text h4,
html.theme-dark .blog-post-des h4,
html.theme-dark .blog-post-video h4 { color: #dcdcd8; }

html.theme-dark .blog-post-format span a,
html.theme-dark .blog-post-title a,
html.theme-dark .blog-author .media a,
html.theme-dark .blog-comment .media h3 { color: #a9c2e8; }

html.theme-dark .blog-post-format span a:hover,
html.theme-dark .blog-post-title a:hover { color: #c9c05e; }

html.theme-dark #home .btn,
html.theme-dark .blog-post-image .btn,
html.theme-dark .blog-post-row .btn,
html.theme-dark .blog-post-des .btn { color: #dcdcd8; border-color: #3b3b31; background: transparent; }

html.theme-dark #home .btn:hover,
html.theme-dark .blog-post-image .btn:hover,
html.theme-dark .blog-post-row .btn:hover,
html.theme-dark .blog-post-des .btn:hover { color: #c9c05e; border-color: #c9c05e; }

html.theme-dark footer .col-md-4 .fa,
html.theme-dark footer .fa { color: #c9c9c4; }

html.theme-dark .social-icon li a { color: #c9c9c4; }

html.theme-dark .social-icon li a:hover { color: #c9c05e; }

html.theme-dark .prev,
html.theme-dark .next { color: #f2f2f0; }

html.theme-dark .prev:hover,
html.theme-dark .next:hover { color: #c9c05e; background-color: rgba(0,0,0,.6); }

html.theme-dark .numbertext,
html.theme-dark .slideshow-box .text { color: #f2f2f0; }

html.theme-dark .navbar-default .navbar-brand:hover,
html.theme-dark .navbar-default .navbar-brand:focus { color: #c9c05e; }





/* Theme toggle in the navbar - half-filled contrast icon */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* same vertical box as the nav links (padding: 15px 16px) so the icon
     centres with them instead of relying on a hand-tuned margin */
  height: 50px;
  width: 34px;
  margin: 0 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e6823;
  cursor: pointer;
  transition: opacity .2s ease, color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.theme-toggle:hover { opacity: .68; }
.theme-toggle:focus-visible { outline: 2px solid #6e6823; outline-offset: 3px; border-radius: 50%; }
.theme-toggle svg {
  display: block;
  /* Aligned to the cap-height midpoint of the nav text (top/bottom of a
     capital P), measured from live font metrics. The icon's box centre
     already lands within 0.2px of that, so no nudge is applied. */
  position: relative;
  top: 0;
}
.theme-toggle .icon-contrast-dark { display: none; }

html.theme-dark .theme-toggle { color: #c9c05e; }
html.theme-dark .theme-toggle:focus-visible { outline-color: #c9c05e; }
html.theme-dark .theme-toggle .icon-contrast-light { display: none; }
html.theme-dark .theme-toggle .icon-contrast-dark { display: block; }

@media (max-width: 767px) {
  .theme-toggle { height: 40px; margin: 0 0 6px 15px; }
}


/* Contact icon rows on the People page */
#about .contact {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #f0f0ea;
}
#about .contact a {
  display: inline-flex;
  color: #8d8d80;
  transition: color .2s ease;
}
#about .contact a:hover { color: #6e6823; }
#about .contact svg { display: block; }

#about .pi-contact .contact { border-top: 0; padding-top: 0; margin-top: 0; gap: 16px; }
#about .pi-contact .contact a { color: #6e6823; }
#about .pi-contact .contact a:hover { opacity: .68; }

html.theme-dark #about .contact { border-top-color: #2a2a22; }
html.theme-dark #about .contact a { color: #9a9a90; }
html.theme-dark #about .contact a:hover { color: #c9c05e; }
html.theme-dark #about .pi-contact .contact a { color: #c9c05e; }


/* PI contact block - icons with the address written out */
#about .contact-labelled {
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
#about .contact-labelled a {
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #4d638c;
}
#about .contact-labelled a span { line-height: 1; }
#about .contact-labelled a:hover { color: #6e6823; }
html.theme-dark #about .contact-labelled a { color: #a9c2e8; }
html.theme-dark #about .contact-labelled a:hover { color: #c9c05e; }


/* Unstyled inline link - inherits surrounding text colour, no underline */
/* html.theme-dark a (0,1,2) outranks a.plain-link (0,1,1), so the dark link
   colour was winning. Match that specificity in both themes. */
html a.plain-link,
html a.plain-link:hover,
html a.plain-link:focus,
html a.plain-link:visited,
html.theme-dark a.plain-link,
html.theme-dark a.plain-link:hover,
html.theme-dark a.plain-link:focus,
html.theme-dark a.plain-link:visited {
  color: inherit;
  text-decoration: none;
  border: 0;
}


/* Inline icon glyphs (replaced Font Awesome, which cost ~73 KB for two icons) */
.ico { display: inline-block; vertical-align: -2px; }
footer .ico { margin-right: 7px; vertical-align: -3px; }
.go-top .ico { vertical-align: middle; margin: 0; }


/* ---------------------------------------------------------------------------
   Mobile overflow fixes.
   Bootstrap sets .btn { white-space: nowrap }, so long topic labels could not
   wrap and pushed the page ~267px wider than a phone viewport. Everything that
   looked broken on mobile - stranded navbar background, clipped text, content
   squeezed into a narrow column - was a side effect of that horizontal scroll.
   --------------------------------------------------------------------------- */
.blog-post-row .btn,
.blog-post-image .btn,
.blog-post-image2 .btn,
.blog-post-des .btn,
#home .btn,
.btn-default {
  white-space: normal;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* fixed-width blocks that exceed a narrow viewport */
.blog-post-box,
.blog-post-thumb {
  max-width: 100%;
}
/* NOTE: do not put .slideshow-box here - it has max-width:470px and floats
   two-up on desktop. Overriding it to 100% collapsed the slideshow to one
   full-width image per row. Narrow screens are handled in the media query
   below instead. */
@media (max-width: 700px) {
  .slideshow-container, .slideshow-box { max-width: 100%; }
}

/* the PI contact column must be allowed to wrap once it stacks */
@media (max-width: 980px) {
  #about .pi-contact { white-space: normal; }
  #about .contact-labelled a { word-break: break-word; }
}

/* the wordmark wrapped to two lines and collided with the toggle */
@media (max-width: 560px) {
  .navbar-default .navbar-brand {
    font-size: 17px;
    letter-spacing: 2px;
    white-space: normal;
    line-height: 1.25;
  }
}
@media (max-width: 400px) {
  .navbar-default .navbar-brand { font-size: 15px; letter-spacing: 1.5px; }
}

/* belt and braces: nothing should ever scroll the page sideways */
html, body { overflow-x: hidden; }

/* Stack the two-column research layout on phones. At 35% of 375px the button
   column was ~121px, which forced labels to break mid-word. */
@media (max-width: 700px) {
  .blog-post-text,
  .blog-post-text-image-1,
  .blog-post-text-image-2 {
    float: none;
    width: 100%;
    padding-top: 0;
  }
  .blog-post-text-image-1 img,
  .blog-post-text-image-2 img {
    display: block;
    max-width: 420px;
    margin: 18px auto 4px;
  }
  .blog-post-row .btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 10px;
    text-align: center;
  }
  .blog-post-image2 img { width: 100%; max-width: 420px; }
}

/* On phones show the figure first, then the prose, then the topic buttons.
   display:contents lifts the figure div's children into the flex column so the
   image and the button group can be ordered independently. */
@media (max-width: 700px) {
  .post-split { display: flex; flex-direction: column; }
  .post-split .blog-post-text-image-1,
  .post-split .blog-post-text-image-2 { display: contents; }
  .post-split .blog-post-text-image-1 > img,
  .post-split .blog-post-text-image-2 > img { order: -1; margin-bottom: 18px; }
  .post-split .blog-post-text { order: 0; }
  .post-split .blog-post-row { order: 1; margin-top: 4px; }
}

/* display:contents removes the figure's own box, so the image becomes a flex
   item and loses the container's width constraint. Pin it explicitly. */
@media (max-width: 700px) {
  .post-split .blog-post-text-image-1 > img,
  .post-split .blog-post-text-image-2 > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    align-self: stretch;
  }
  .post-split { min-width: 0; }
  .post-split > *, .post-split .blog-post-text { min-width: 0; max-width: 100%; }
}

/* Two toggle instances: one in the nav row for desktop, one in the header
   beside the wordmark for phones. Only ever one is visible. */
.theme-toggle--header { display: none; }
@media (max-width: 767px) {
  .theme-toggle--nav { display: none !important; }
  .theme-toggle--header {
    display: inline-flex;
    float: left;
    height: auto;
    margin: 14px 2px 0 15px;
  }
  /* the brand sits next to it rather than starting at the edge */
  .navbar-default .navbar-brand { padding-left: 8px; }
}

/* Body copy on Research and the project pages was left-aligned while
   Opportunities (.blog-post-thumb) and .blog-post-des were justified.
   Match them, with hyphenation so justification doesn't open rivers of
   white space in the narrow 35/60 column or on phones. */
.blog-post-format h4,
.blog-post-text h4,
.blog-post-des h4,
.blog-post-thumb,
.blog-post-thumb p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Several figures are RGBA PNGs with transparent regions (GET, Skd3,
   chaperone model, Ribosome figures, Protein folding and aggregation).
   Light mode hid this because the page is white; dark mode showed the
   page through as black stripes. Give them a white backdrop. */
.blog-post-text-image-1 img,
.blog-post-text-image-2 img,
.blog-post-image img,
.blog-post-image2 img,
.blog-post-box img,
.blog-post-thumb img,
.slideshow-box img {
  background: #ffffff;
}
