body {
    margin: 0;
    padding: 0;
    background-color: #c6c6c6;
    font-family: 'Alegreya Sans', sans-serif;
    color: #333;
  }
  
  section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .scattered-text,
  .scattered-photo,
  .scattered-video {
    position: absolute;
  }
  


.scattered-text p {
  margin: 0.5em 0; /* adds spacing between each paragraph */
}

  .scattered-text {
 
  position: static;
  margin-bottom: 1.5em;
  font-size: 1.5rem;
  font-weight: normal;
  width: 100% !important;
  max-width: none !important;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;

  }
  
  .scattered-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    width: clamp(150px, 20vw, 300px);
  }
  
  .scattered-video iframe {
    width: clamp(300px, 40vw, 640px);
    height: clamp(180px, 22vw, 360px);
  }

  .highlight {
  background-color: white;
  padding: 0.2em 0.4em;
  line-height: 1.5;
}
  
  /* Limit the size of the zoomed image in Lightbox */
.lb-image {
  max-width: 10vw !important; /* Limit width to 90% of viewport */
  max-height: 10vh !important; /* Limit height to 80% of viewport */
  object-fit: contain;
}

.about-page .text-column { width: 75%; }
.about-page .media-column { width: 25%; }


  @media (max-width: 1024px) {
    section {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    section {
      display: block;
      padding: 1rem;
    }
  
    .scattered-text,
    .scattered-photo,
    .scattered-video {
      position: static;
      margin: 1rem auto;
      width: 100% !important;
      max-width: none !important;
    }
  
    .scattered-photo img,
    .scattered-video iframe {
      width: 100% !important;
      height: auto !important;
    }
  }
  
  #close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    padding: 5px 12px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    z-index: 1001; /* Make sure it’s above modal */
    user-select: none;
  }
  
  /* Modal arrows */
  #prev, #next {
    position: absolute;
    top: 50%;
    background: white;
    color: black;
    border: none;
    font-size: 3rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  
  #prev {
    left: 10px;
  }
  
  #next {
    right: 10px;
  }