/* Define CSS variables for the dark theme */
:root {
  --bg-color: #181818;
  /* Very dark background */
  --text-color: #e0e0e0;
  /* Light text */
  --accent-color: #bb86fc;
  /* Accent color (purple) */
  --card-bg: #212121;
  /* Card background */
  --card-border: #333333;
  /* Card border */
  --link-color: #bb86fc;
  /* Link color */
  --link-hover: #d6aefc;
  /* Link hover color */
  --navbar-bg: #1f1f1f;
  /* Navbar background */
}

/* Global styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Links */
a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Navbar adjustments */
.navbar {
  background-color: var(--navbar-bg) !important;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--text-color) !important;
}

/* HERO SECTION */
/* .hero-banner {
  background-image: url("/static/images/banner_left.JPG"), url("/static/images/banner_right.PNG");
  background-size: auto 100%, auto 100%;
  background-position: left center, right center;
  background-repeat: no-repeat;
  margin-top: 50px;
  position: relative;
  color: #F8B525;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.5);
  min-height: 450px;
}
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-banner .hero-text {
  position: relative;
  z-index: 2;
} */

/* New Hero Section Styles */

/* Hero Text Section: This styles the text container that appears above the images */
.hero-text-container {
  text-align: left !important;
  /* Left-justified text */
  padding: 0;
  margin-bottom: 0;
  color: #F8B525;
  /* Yellow text */
}

/* 1) The main grid is .hero-images-grid */
.hero-images-grid {
  width: 100%;
  height: 600px; /* fixed vertical dimension */
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: 1rem;
  margin-bottom: 6rem;
  overflow: hidden; 
}

/* 2) Each .hero-image-container should be position: relative 
      so that overlays can be absolutely placed */
.hero-image-container {
  position: relative; 
  width: 100%;
  height: 100%;
  overflow: hidden; 
  border-radius: 0.5rem;
  /* optionally, background-color: #111; */
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) The right column is a flex container with two .hero-image-containers stacking up */
.hero-images-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
  overflow: hidden;
}

.hero-images-right .hero-image-container {
  height: calc((100% - 1rem) / 2);
}

/* 4) The absolutely positioned overlay circle */
.image-overlay-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px; /* vertically center the symbol */
  font-size: 16px;
  color: #fff;       /* text color */
  z-index: 2;        
}

/* Good (green) or bad (red) circles */
.good-icon {
  background-color: green;
}
.bad-icon {
  background-color: red;
}



/* --------------------------------------------------
   Testimonial Card Styles (New Design)
-------------------------------------------------- */

#testimonials {
  margin-top: 100px;
}

#testimonials h2 {
  margin-left: 0px;
}



/* Testimonial card container */
.testimonial-card {
  position: relative;
  height: 400px;
  /* Fixed height for every testimonial */
  background-color: var(--card-bg);
  /* Slightly lighter than the page background */
  border: 1px solid #333;
  /* Outer border */
  border-top: 3px solid #626EE3;
  /* 3px top border */
  border-radius: 10px;
  box-sizing: border-box;
  margin: 40px 0px 20px;
  /* Top margin allows space for the overlapping logo */
  padding: 0 10px 10px 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo circle that overlaps the card top */
.testimonial-logo {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-logo img {
  max-width: 80%;
  max-height: 80%;
}

/* Header section (top 30% of card height ~105px) */
.testimonial-header {
  height: 30%;
  text-align: center;
  padding-top: 45px;
  font-size: 1.1em;
}

/* text "Student Testimonials" */
#testimonials h2 {
  text-align: center;
}

.testimonial-header .student-name {
  font-size: 1.2em;
  margin: 0;
}

.testimonial-header .grad-year {
  font-size: 1em;
  margin: 0;
}

/* Content section (remaining 70% of the card) */
.testimonial-content {
  height: 70%;
  overflow-y: auto;
  padding: 10px 5px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #757575 transparent;
}

/* WebKit browsers (Chrome, Safari, etc.) */
.testimonial-content::-webkit-scrollbar {
  width: 8px;
  /* Adjust the width as needed */
}

.testimonial-content::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-content::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

/* Styling for each question and answer pair */
.question-answer {
  margin-bottom: 30px;
}

.question {
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid #757575;
  margin-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
  padding-bottom: 10px;
}

.answer {
  font-size: 1em;
  line-height: 1.5em;
  margin-top: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

/* --------------------------------------------------
   Swiper Carousel Styles for Testimonials
-------------------------------------------------- */
.swiper-parent {
  max-width: 1200px;
  margin: 0 auto;
}

.swiper-container.testimonials-carousel {
  width: 100%;
  overflow: hidden;
}

.swiper-slide {
  /* no manual width here */
}

.testimonial-card {
  width: 100%;
}

/* Navigation container: position arrows below the slider and center them */
.swiper-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.swiper-navigation .swiper-button-prev,
.swiper-navigation .swiper-button-next {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #757575;
  position: relative;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.swiper-navigation .swiper-button-prev:hover,
.swiper-navigation .swiper-button-next:hover {
  background-color: #888;
}

/* Pseudo-element for arrow icons */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.swiper-button-prev::after {
  background-image: url("/static/images/left_arrow.svg");
}

.swiper-button-next::after {
  background-image: url("/static/images/right_arrow.svg");
}

/* --------------------------------------------------
   Legacy Testimonial Section Styles (if needed)
-------------------------------------------------- */
.testimonials-box {
  position: relative;
  max-width: 100%;
  height: 750px;
  overflow-y: auto;
  padding: 1rem;
  padding-top: 0;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 5px;
}

.testimonials-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #1e1e1e;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #333;
}

.titles-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

.testimonial-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #e0e0e0;
}

.testimonials-content {
  padding-top: 1rem;
}

.testimonial-row {
  display: flex;
  gap: 1rem;
}

.testimonial-column {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid #333;
  border-radius: 5px;
  padding: 1rem;
  box-sizing: border-box;
  color: var(--text-color);
}

.testimonial-column:last-child {
  margin-right: 0;
}

.testimonial-column p {
  margin: 0;
  white-space: pre-wrap;
}

/* Button primary */
.btn.btn-primary {
  margin-top: 20px;
  background-color: #626EE3;
  border-color: var(--card-border);
  color: #fff;
}

.btn.btn-primary:hover {
  background-color: #7C86E7;
  border-color: var(--card-border);
  text-decoration: none;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------
   CARD STYLES (for other sections)
-------------------------------------------------- */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
}

.card-body {
  color: var(--text-color);
}

/* Override Bootstrap’s default button styles */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--link-hover);
  border-color: var(--link-hover);
}

/* --------------------------------------------------
   GLIGHTBOX CAPTION ADJUSTMENTS
-------------------------------------------------- */
.glightbox-container .gdesc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-size: 1.2em;
  z-index: 9999;
}

/* --------------------------------------------------
   Form Inputs and Buttons for Dark Mode
-------------------------------------------------- */
.form-control {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: var(--text-color);
}

.form-control::placeholder {
  color: #888;
}

/* --------------------------------------------------
   user submissions
-------------------------------------------------- */
.user-submission-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 20px 0;
  overflow: hidden;
}

/* map inside of user submission cards */
.user-submission-card a img {
  width: 90%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 10px auto 0;
}

#user-submissions .upload-section {
  padding-right: 20px;
  border-right: 1px solid #333;
}

#user-submissions .submissions-section {
  padding-left: 20px;
}

#user-submissions h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2em;
  font-weight: normal;
}

#user-submissions h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5em;
  font-weight: normal;
}

#user-submissions>h2 {
  margin-top: 75px;
}

#user-submissions>p {
  text-align: center;
  margin-bottom: 50px;
}

.form-text {
  color: #DFDFDF;
}

/* green border for best testimonials */
.green-border {
  /* box-shadow: inset 0 0 7px 3px #63E396; */
  box-shadow: inset 0 0 7px 3px #F8B525;
}

/* Remove the blue top border if it has green-border */
.testimonial-card.green-border {
  border-top: none !important;
}

/* Make the Student/Alumni label bigger and bolder */
.grad-year {
  font-size: 1.3em;
}

/* background stars animation */
@keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
  }

  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
    transform: translate3d(1000px, 0px, 0px);
  }
}

@-webkit-keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
  }

  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
  }
}

@-moz-keyframes move-background {
  from {
    -moz-transform: translate3d(0px, 0px, 0px);
  }

  to {
    -moz-transform: translate3d(1000px, 0px, 0px);
  }
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.stars {
  background: black url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png) repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  z-index: 0;
}

.twinkling {
  width: 10000px;
  height: 100%;
  background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png") repeat;
  background-size: 1000px 1000px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  -moz-animation: move-background 70s linear infinite;
  -ms-animation: move-background 70s linear infinite;
  -o-animation: move-background 70s linear infinite;
  -webkit-animation: move-background 70s linear infinite;
  animation: move-background 70s linear infinite;
}

/* light pollution information section */
/* Light Pollution Info Section */
#light-pollution-info {
  margin-top: 2rem;
  color: var(--text-color);
}

.definition {
  color: #F8B525;
}

.summary-header {
  color: #F8B525
}

.negative-effects {
  color: #F8B525;
}

.definition-text {
  margin-bottom: 80px;
}

.info-card h2 {
  margin-bottom: 1rem;
  display: inline-block;
  color: #F8B525;
  /* Same as banner color */
  margin: 0.2rem 0.1rem;
  padding: 0.25em 0.5em;
  border: 1px solid #F8B525;
  /* 1px red border */
  border-radius: 5px;
}


/* Citation styling */
.citation {
  position: absolute;
  bottom: 5px;   /* adjust as needed */
  right: 5px;    /* adjust as needed */
  font-size: 0.7em;  /* very small text */
  font-style: italic;
  color: #e0e0e0;  /* a light, academic color */
  background: rgba(0, 0, 0, 0.5); /* optional: semi-transparent background for readability */
  padding: 2px 4px;
  border-radius: 2px;
}

/* Vertical pipe between title and link */
.vertical-pipe {
  display: inline-block;
  width: 1px;
  height: 1em;            /* Approximately matches the text height */
  background-color: #A9A9A9;  /* Same yellow as your banner */
  margin: 0 0.5rem;       /* Adjust spacing as needed */
  vertical-align: middle;
}

.learn-more {
  text-decoration: none;
  position: relative;
  vertical-align: middle;
  font-family: 'Open Sans', sans-serif;
  /* or your chosen font */
  color: #A9A9A9;
  /* a neutral/dark gray text color */
  font-size: 0.6em;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

/* Hover effect: slightly enlarge and increase font size */
.learn-more:hover {
  transform: scale(1.1);
  font-size: 0.7em;
}

/* Container paragraph for the inline bullet list */
.effects {
  margin-top: 0.75rem;
  font-size: 1rem;
  /* Adjust font size as needed */
  line-height: 1.5;
}

/* Each effect bullet */
.effect-bullet {
  display: inline-block;
  padding: 0.3rem 0.4rem;
  margin: 0.2rem 0.1rem;
  border: 1px solid #FF6961;
  /* 1px red border */
  border-radius: 5px;
  /* Rounded corners */
  font-size: 0.9rem;
  /* Slightly adjust the size if desired */
  vertical-align: middle;
}

.lp-flex-container {
  display: flex;
  flex-wrap: nowrap;      /* Prevent wrapping */
  gap: 20px;
  max-width: 1280px;      /* Total width */
  width: 100%;
  margin: 2rem auto;      /* Center horizontally */
}

.lp-column {
  flex: 0 0 50%;
  min-width: 0;           /* Critical to prevent overflow due to large children */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



/* Each "info-card" is a box with a translucent background, some padding, etc. */
.info-card {
  background-color: rgba(42, 42, 42, 0.65);
  /* translucent dark background */
  border-radius: 0.5rem;
  padding: 1rem;
  overflow: hidden;
  /* in case images are slightly larger than the card */
}

/* The card's h2 can match your banner color if desired */
.info-card h2 {
  color: #F8B525;
  /* same yellow as the banner */
  margin-bottom: 0.75rem;
}

/* The paragraph text can be sized as you like */
.info-card p {
  font-size: 1rem;
  /* or 1.1rem if you want it bigger */
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* The container holding images stacked vertically */
.image-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* spacing between images */
}

/* Each image is forced to a max-height, preserving aspect ratio, with rounded corners */
.image-stack img {
  max-width: 100%;  /* Force images to shrink to the column’s width */
  height: auto;      /* Preserve aspect ratio */
  object-fit: cover; /* Or 'contain', if you want no cropping */
  border-radius: 0.5rem;
  display: block;
}








/* 1) Make the Google Photos container scrollable (500px tall).
   If you want to remove the inline style in your index.html,
   you can rely on this class alone. */
.google-photos-container {
  max-height: 900px;
  /* fixed height */
  overflow-y: auto;
  /* scrollbar if rows exceed 500px */
  /* make sure parent container fits all columns without horizontal scroll bar */
  padding-left: 15px;
  padding-right: 15px;
}

#google-photos h3 {
  margin-left: 20px;
}

/* 2) Force all media thumbnails (images & videos) to fill
   the width and keep a uniform height. */
.media-thumbnail {
  width: 100%;
  height: 200px;
  /* you can adjust this if you like */
  object-fit: cover;
  /* crop edges instead of squishing */
}

/* 3) A container for videos to help position the overlay. */
.video-container {
  position: relative;
  /* needed for absolutely-positioned overlay */
  width: 100%;
  height: 200px;
  /* same height as .media-thumbnail */
  overflow: hidden;
}

/* 4) The overlay "play" icon in the center of the video thumbnail. */
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  /* play symbol size */
  color: rgba(255, 255, 255, 0.85);
  /* white with transparency */
  pointer-events: none;
  /* clicks pass through to link */
}


/* Optional: Limit the width of the Flickity carousel and center it */
.testimonial-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 75px;
}

/* Ensure that each Flickity cell displays as desired */
.carousel-cell {
  width: 100%;
  padding: 0 10px;
  /* optional: adjust spacing between cells */
  box-sizing: border-box;
}


/* Flickity cell widths for testimonials */
@media (min-width: 992px) {
  .testimonial-carousel .carousel-cell {
    width: 33.33%;
    /* Three cells per view */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .testimonial-carousel .carousel-cell {
    width: 50%;
    /* Two cells per view on tablet */
  }
}

@media (max-width: 767px) {
  .testimonial-carousel .carousel-cell {
    width: 100%;
    /* One cell per view on mobile */
  }
}

@media (max-width: 767px) {

  /* Increase the bottom padding to provide extra space for the arrows */
  .testimonial-carousel {
    padding-bottom: 100px;
    /* Adjust this value if needed */
  }

  /* Move the Flickity arrows further down on mobile */
  .flickity-prev-next-button {
    bottom: 25px !important;
    /* Adjust this value as needed */
  }
}


/* --- Flickity Prev/Next Button Styling --- */

/* --- Hide Flickity's default arrow icons --- */
.flickity-prev-next-button .flickity-button-icon {
  display: none;
}

/* --- Custom styling for Flickity prev/next buttons --- */
.flickity-prev-next-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #757575;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  /* Position the buttons below the carousel */
  top: auto !important;
  bottom: 15px !important;
  /* Increase negative value to push them further down */
  transform: none !important;
  /* Remove any button text */
  text-indent: -9999px;
}

/* Position the left and right buttons as a centered pair */
.flickity-prev-next-button.previous {
  left: calc(50% - 60px);
  /* Adjust horizontal offset as needed */
}

.flickity-prev-next-button.next {
  right: calc(50% - 60px);
  /* Adjust horizontal offset as needed */
}

/* Change background color on hover */
.flickity-prev-next-button:hover {
  background-color: #888;
}

/* Use pseudo-elements to add custom arrow icons */
.flickity-prev-next-button.previous::before,
.flickity-prev-next-button.next::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.flickity-prev-next-button.previous::before {
  background-image: url("/static/images/left_arrow.svg");
}

.flickity-prev-next-button.next::before {
  background-image: url("/static/images/right_arrow.svg");
}

.text-center.mt-3 {
  margin-top: -10px !important;
}





.text-and-image {
  display: flex;
  gap: 5rem;         /* Adjust gap between text and image */
  align-items: center;  /* Vertically centers content */
  flex-wrap: wrap;      /* Optional: Allows wrapping on smaller screens */
  margin-bottom: 20px;
}

.text-and-image .text-side,
.text-and-image .image-side {
  flex: 0 0 45%;              /* Each side takes up equal space */
  box-sizing: border-box;
}

.text-and-image .image-side img {
  max-width: 100%;
  height: auto;         /* Preserves aspect ratio */
  display: block;
}

#summary {
  max-width: 850px; /* Adjust this value to the desired width */
  margin: 0 auto;   /* Centers the section horizontally */
  padding: 0 1rem;  /* Optional: adds some horizontal padding on smaller screens */
}

.image-with-caption {
  text-align: center;
  margin: 0 auto;
}

.image-with-caption figcaption {
  font-size: 0.9em;  /* Adjust to desired small size */
  color: #999;       /* A light gray or any color you prefer */
  margin-top: 0.5em; /* Space between the image and caption */
}

.two-wide-images {
  display: flex;
  gap: 1rem; /* spacing between images */
  /* If you want them to remain side-by-side, leave this as flex. */
  /* You can remove 'width: 100%' so their container can auto-size. */
}

/* Each "image-with-label" takes half of the row side by side */
.two-wide-images .image-with-label {
  flex: 1 1 0; /* let each one fill half the container */
  position: relative; /* needed for absolute positioning of label */
}

.two-wide-images img {
  display: block;
  max-width: 100%; /* Prevent overflow */
  height: auto;
  /* Remove 'width: 50%;' and 'object-fit: cover;' so they keep normal aspect ratio */
}

/* Remove the black background from the text label by making it transparent */
.image-with-label .image-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none; /* or background-color: transparent; */
  color: #F8B525;   /* your desired text color */
  padding: 4px 8px;
  font-size: 1em;
  z-index: 2;
  border-radius: 4px; /* optional, does nothing if no background color */
  white-space: nowrap;
}



/* research and references section */

/* Resource Card Styles */
.resource-card {
  background-color: rgba(42, 42, 42, 0.8); /* Adjust opacity as needed */
  border: 1px solid #444;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 1300px;  /* Match the width of your hero-images-grid */
}

.resource-card .card-title {
  color: #F8B525;  /* Accent yellow */
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Resource List Styles */
.resource-list {
  list-style: none;  /* Remove default bullets */
  padding: 0;
  margin: 0;
}

.resource-list li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.resource-list a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.resource-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}



/* mobile friendly edits */
@media (max-width: 768px) {
  /* HERO IMAGES: stack them on mobile */
  .hero-images-grid {
    display: block;      /* Switch from grid to block/flow layout */
    height: auto;        /* Let images expand naturally */
    margin-bottom: 2rem; /* A bit of spacing below */
  }
  .hero-image-container.left,
  .hero-images-right {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .hero-images-right {
    display: block;
  }

  .hero-images-right .hero-image-container {
    height: auto; 
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  /* LIGHT-POLLUTION CARDS: stack them all in a single column */
  .lp-flex-container {
    flex-wrap: wrap;
  }
  .lp-column {
    flex: 0 0 100%;  /* each column now occupies full width */
  }
}


@media (max-width: 768px) {
  .text-and-image {
    flex-direction: column;    /* Stack vertically */
    align-items: flex-start;   /* Left-align items instead of center */
    gap: 1rem;                 /* A little breathing room */
  }
  .text-and-image .text-side,
  .text-and-image .image-side {
    flex: none;
    width: 100%;
  }
}


@media (max-width: 768px) {
  #google-photos .row .col-md-6:first-child {
    margin-bottom: 1rem; 
  }
}

@media (max-width: 768px) {
  /* Stacks the two images vertically on mobile */
  .two-wide-images {
    display: block; /* or flex-direction: column; either approach works */
  }
  
  .two-wide-images .image-with-label {
    flex: none;        /* disable the desktop flex sizing */
    width: 100%;       /* each image takes full width */
    margin-bottom: 1rem;  /* optional spacing between images */
  }
}


.btn.btn-primary {
  vertical-align: middle !important;
  line-height: 1;
  margin-top: 0 !important;
  margin-left: 0 !important;
}


/* On smaller screens (below 768px), override to make the button smaller */
@media (max-width: 768px) {
  .hero-lp-btn {
    font-size: 0.85rem;         /* shrink font on mobile */
    padding: 0.3rem 0.6rem;     /* smaller vertical/horizontal padding */
    margin-top: 40px !important;
    line-height: 1;
  }
}


