@media only screen and (min-width: 1300px) {
  .section-padding {
    padding: 19.2rem;
  }
  .blog-padding {
    padding: 16rem 19.2rem 0 19.2rem;
  }
}

@media only screen and (min-width: 2000px) {
  .main-margins,
  .nav-main-margins {
    margin-left: 25%;
    margin-right: 25%;
  }
  .main-paddings {
    padding-left: 25%;
    padding-right: 25%;
  }
}

@media only screen and (max-width: 1999px) {
  .main-margins,
  .nav-main-margins {
    margin-left: 15%;
    margin-right: 15%;
  }
  .main-paddings {
    padding-left: 15%;
    padding-right: 15%;
  }
  .circ-image-sm {
    height: 27rem;
    width: 27rem;
  }
}

@media only screen and (max-width: 1747px) {
  .circ-image-sm {
    height: 24rem;
    width: 24rem;
  }
}

@media only screen and (max-width: 1500px) {
  .circ-image-lg {
    height: 27rem;
    width: 27rem;
  }
  .circ-image-sm {
    height: 22rem;
    width: 22rem;
  }
}

@media only screen and (max-width: 1299px) {
  .section-padding {
    padding: 8rem;
  }
  .circ-image-lg {
    height: 27rem;
    width: 27rem;
  }
  .circ-image-sm {
    height: 20rem;
    width: 20rem;
  }
  .blog-padding {
    padding: 16rem 19.2rem 0 19.2rem;
  }
}

@media only screen and (max-width: 1200px) {
  .main-margins,
  .nav-main-margins {
    margin-left: 10%;
    margin-right: 10%;
  }
  .main-paddings {
    padding-left: 10%;
    padding-right: 10%;
  }
  .hero-title {
    padding-bottom: 0;
  }
}

@media only screen and (max-width: 991px) {
  .circ-image-lg {
    height: 24rem;
    width: 24rem;
  }
  .circ-image-sm {
    height: 20rem;
    width: 20rem;
  }
}

@media only screen and (max-width: 768px) {
  h1,
  h2 {
    font-size: 4rem;
  }
  .logo-img {
    height: 5rem;
  }
  .nav-main-margins {
    margin-left: 3%;
    margin-right: 3%;
  }
  .section-our-research,
  .section-our-people,
  .section-about-content,
  .section-principal-investigator,
  .section-publications {
    margin-top: 2rem;
    padding: 2rem 0;
  }
  .hero-title,
  .hero-description {
    padding-bottom: 0;
  }
  .footer-address-box,
  .footer-keith-info-box {
    margin-top: 0;
  }
  .navbar-links-wrapper {
    display: none;
  }
  .hamburger-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .navbar-links-wrapper.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    height: 75vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .navbar-links-wrapper ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
  }
  .navbar-links-wrapper ul li {
    margin: 1rem 0;
    text-align: center;
  }
  .navbar-links-wrapper ul li a {
    font-size: 3rem;
  }
  .close-icon {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }
  .navbar-links-wrapper.mobile-open .close-icon {
    display: block;
  }
  .our-people-img-box,
  .about-img-box {
    padding-bottom: 2rem;
  }
}

@media only screen and (max-width: 767px) {
  .about-append-col {
    padding-left: 0;
    margin-top: 1.6rem;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  h2 {
    font-size: 3rem;
  }
  p {
    font-size: 1.8rem;
  }
  .navbar-links-wrapper ul li a {
    font-size: 2rem;
  }
  .logo-img {
    height: 5rem;
  }
  .section-our-research,
  .section-our-people,
  .section-about-content,
  .section-principal-investigator,
  .section-publications {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
  }
  .our-research-content,
  .our-people-text {
    font-size: 2rem;
    padding-bottom: 1rem;
  }
  .our-people-img-box,
  .about-img-box {
    padding-bottom: 2rem;
  }
  .our-people-text-box {
    padding-left: 0;
  }
  .hero-title,
  .pi-name,
  .staff-header,
  .year-heading {
    font-size: 2.5rem;
    padding-bottom: 0;
  }
  .hero-description {
    font-size: 1.8rem;
    padding-bottom: 0;
  }
  .about-content-heading,
  .pi-description {
    font-size: 1.8rem;
  }

  .blog-padding {
    padding: 8rem;
  }
}

@media only screen and (max-height: 900px) {
  .hero-background {
    height: 52.5vh;
  }
  .hero-description {
    font-size: 2rem;
  }
}

@media only screen and (max-height: 600px) and (orientation: landscape) {

  .hero-background {
    height: 65vh;
  }
  .hero-title {
    font-size: 4rem;
    padding-bottom: 0;
  }

  h1,
  h2 {
    font-size: 3rem;
  }
  p {
    font-size: 1.8rem;
  }
  .logo-img {
    height: 5rem;
  }
  .hero-background {
    height: 80vh;
  }
  .section-our-research,
  .section-our-people,
  .section-about-content,
  .section-principal-investigator,
  .section-publications {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
  }
  .our-research-content,
  .our-people-text {
    font-size: 2rem;
    padding-bottom: 1rem;
  }
  .our-people-img-box,
  .about-img-box {
    padding-bottom: 2rem;
  }
  .hero-title,
  .pi-name,
  .staff-header,
  .year-heading {
    font-size: 2.5rem;
    padding-bottom: 0;
  }
  .hero-description {
    font-size: 1.8rem;
    padding-bottom: 0;
  }
  .about-content-heading,
  .pi-description {
    font-size: 1.8rem;
  }
}

/* Base styles for lab life grid */
.section-lab-life .image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  justify-items: center;
}

.card-img-lab-life {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Wide images span two columns */
.card-img-lab-life.wide {
  grid-column: span 2;
}

/* Medium-wide images get slightly more width */
.card-img-lab-life.medium-wide {
  width: 115%;
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
  .section-lab-life .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .section-lab-life .image-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-img-lab-life,
  .card-img-lab-life.wide,
  .card-img-lab-life.medium-wide {
    grid-column: span 1;
    width: 100%;
  }
}

/* Landscape mode adjustments */
@media only screen and (max-height: 600px) and (orientation: landscape) {
  .section-lab-life .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .card-img-lab-life {
    max-height: 60vh;
    object-fit: contain;
  }

  .card-img-lab-life.wide {
    grid-column: span 2;
  }

  .card-img-lab-life.medium-wide {
    width: 100%;
  }
}