.content-section {
  background-color: #fff;
}

.lab-logo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.lab-logo-row img {
  max-height: 76px;
  width: auto;
}

.landing-photo {
  margin: 1.5rem auto 2rem;
  max-width: 1060px;
}

.landing-photo img {
  border-radius: 18px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}

.kingsbury-section-spacer {
  margin: 145px 0 0;
}

.navbar-custom .navbar-brand-logos {
  align-items: center;
  display: inline-flex;
  max-width: 46vw;
  padding-bottom: 0;
  padding-top: 0;
}

.navbar-custom .navbar-lab-logo {
  height: 70px;
  max-width: 360px;
  object-fit: contain;
  width: auto;
}

.navbar-custom .navbar-nav .nav-link,
.navbar-custom .dropdown-item {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .navbar-custom .navbar-brand-logos {
    max-width: 68vw;
  }

  .navbar-custom .navbar-lab-logo {
    height: 48px;
    max-width: 240px;
  }

}

footer {
  background: #f5f5f5;
  border: 0;
  margin-top: 0;
  padding: 0;
}

.institution-footer {
  background: #f5f5f5;
  padding: 2.5rem 0;
}

.institution-footer-inner {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(180px, 280px) 1fr;
}

.institution-footer-logo img {
  display: block;
  max-width: 260px;
  width: 100%;
}

.institution-footer-info {
  color: #4b5563;
  font-size: 0.95rem;
}

.institution-footer-info p {
  margin: 0 0 0.65rem;
}

.institution-footer-info .institution-name {
  color: #374151;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .institution-footer-inner {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .institution-footer-logo img {
    margin: 0 auto;
    max-width: 220px;
  }
}

.feature-grid,
.people-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid a {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
}

.feature-grid img {
  display: block;
  height: 90px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.landing-research-video {
  display: flex;
  justify-content: center;
  margin: 2rem auto 3rem;
}

.content-section .landing-research-video video {
  display: block;
  height: auto;
  max-width: 640px;
  width: 100%;
}

.gallery-feature {
  margin: 1.5rem auto 3rem;
  max-width: 980px;
}

.gallery-hero-card {
  background: #f5f5f5;
  margin: 0;
  padding: 0 0 1rem;
}

.gallery-hero-card img {
  display: block;
  margin: 0 auto;
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}

.gallery-hero-card figcaption {
  color: #374151;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.8rem;
  padding: 0 1rem;
}

.gallery-thumbnail-strip {
  background: #f5f5f5;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.4rem 0;
}

.gallery-thumb {
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  display: block;
  padding: 0;
}

.gallery-thumb img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  opacity: 0.72;
  width: 100%;
}

.gallery-thumb.is-active {
  border-color: #111827;
}

.gallery-thumb.is-active img {
  opacity: 1;
}

.gallery-thumb:hover img,
.gallery-thumb:focus img {
  opacity: 1;
}

.event-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 2.5rem;
}

.event-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover,
.event-card:focus {
  border-color: #9ca3af;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
  color: inherit;
  text-decoration: none;
}

.event-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.event-card-body {
  padding: 1rem;
}

.event-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.event-card-body p {
  color: #6b7280;
  font-size: 0.92rem;
  margin: 0;
}

.gallery-event-page {
  padding-bottom: 3rem;
}

.gallery-event-date {
  color: #6b7280;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 1.5rem;
  text-align: center;
}

.gallery-event-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-event-grid a {
  break-inside: avoid;
  display: block;
  margin-bottom: 1rem;
}

.gallery-event-grid img {
  border-radius: 4px;
  display: block;
  height: auto;
  width: 100%;
}

.gallery-event-back {
  margin: 2rem 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .event-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-event-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .gallery-thumbnail-strip,
  .event-card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-event-grid {
    column-count: 1;
  }
}

.person-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem;
  text-align: center;
}

.person-card img,
.person-photo-placeholder {
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.85rem;
  max-width: 128px;
  object-fit: cover;
  width: 62%;
}

.person-card h3,
.person-card p {
  margin-top: 0;
  text-align: center;
}

.person-card h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.person-card p {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.profile-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: center;
  margin: 0.6rem 0 0;
}

.profile-icons a {
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: inherit;
  display: inline-flex;
  font-size: 0.9rem;
  height: 1.8rem;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  width: 1.8rem;
}

.profile-icons a:hover,
.profile-icons a:focus {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.pi-profile {
  align-items: start;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(260px, 340px) 1fr;
  margin: 1.5rem 0 2rem;
}

.pi-sidebar {
  text-align: center;
}

.pi-avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.6rem;
  max-width: 270px;
  object-fit: cover;
  width: 82%;
}

.pi-sidebar h1 {
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.pi-role,
.pi-org {
  color: #6b7280;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0.45rem 0;
}

.pi-icons {
  gap: 0.65rem;
  margin-top: 2rem;
}

.pi-icons a {
  border: 0;
  color: #6b7280;
  font-size: 1.65rem;
  height: auto;
  width: auto;
}

.pi-icons a:hover,
.pi-icons a:focus {
  background: transparent;
  color: #111827;
}

.pi-bio {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-top: 0;
}

.pi-details {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr);
  margin-top: 2rem;
}

.pi-details h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pi-details li {
  margin-bottom: 0.45rem;
}

.education-item {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.5rem 1fr;
  margin-bottom: 1rem;
}

.education-item i {
  margin-top: 0.2rem;
}

.education-item span {
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pi-profile,
  .pi-details {
    grid-template-columns: 1fr;
  }

  .pi-profile {
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.publication-entry {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.75rem 0;
}

.publication-entry.has-graphical-abstract {
  align-items: center;
  display: flex;
  gap: 2rem;
}

.publication-entry-content {
  flex: 1 1 62%;
  min-width: 0;
}

.publication-entry h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.publication-authors {
  font-weight: 400;
}

.publication-authors strong {
  font-weight: 700;
}

.publication-date {
  margin-left: 0.25rem;
}

.publication-journal {
  margin-bottom: 0.65rem;
}

.publication-graphical-abstract {
  display: block;
  flex: 0 0 38%;
  margin-left: auto;
  max-width: 420px;
}

.publication-graphical-abstract img {
  display: block;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  width: 100%;
}

.publication-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 2rem 0 1rem;
}

.publication-page-number,
.publication-page-nav {
  align-items: center;
  border: 1px solid #d1d5db;
  color: #333;
  display: inline-flex;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
}

.publication-page-number {
  min-width: 2.25rem;
}

.publication-page-number:hover,
.publication-page-nav:hover,
.publication-page-number:focus,
.publication-page-nav:focus,
.publication-page-number.is-current {
  background: #333;
  border-color: #333;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .publication-entry.has-graphical-abstract {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .publication-graphical-abstract {
    flex-basis: auto;
    margin-left: 0;
    max-width: 520px;
  }

  .publication-page-nav {
    width: 100%;
  }
}

.blog-post video {
  height: auto;
  max-width: 100%;
}

.contact-map {
  margin: 2rem auto 0;
  max-width: 900px;
}

.contact-map iframe {
  border: 0;
  display: block;
  height: 420px;
  width: 100%;
}

@media (max-width: 600px) {
  .contact-map iframe {
    height: 320px;
  }
}

/* News timeline */
.news-page {
  background: #fff;
  padding-bottom: 2.5rem;
  width: 100%;
}

.news-timeline > p:first-child {
  color: #666;
  margin-bottom: 2rem;
}

.news-timeline h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 0.75rem;
}

.news-timeline h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.news-timeline ul {
  border-bottom: 1px solid #777;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-timeline li {
  border-top: 1px solid #777;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 1rem 0;
}

.news-timeline li > p {
  margin: 0;
}

.news-timeline li a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.news-timeline li img {
  display: block;
  height: auto;
  margin: 1.25rem auto 0;
  max-height: 520px;
  max-width: min(100%, 560px);
  object-fit: contain;
}

.news-timeline h3 + p {
  font-style: italic;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .news-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .news-timeline h2 {
    font-size: 1.4rem;
  }

  .news-timeline h3 {
    font-size: 1.15rem;
  }

  .news-timeline li {
    font-size: 1.05rem;
    padding: 0.85rem 0;
  }
}
