.lab4-body {
    background-color: #f8f8f8;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .lab4-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
  }
  
/* Shared video/image visuals */
.media-element {
    display: block;
    max-width: 90%;
    width: 720px;   
    height: auto;
    border-radius: 30px;
    box-shadow:
      0 4px 10px rgba(0, 0, 0, 0.15),
      inset 0 0 20px rgba(0, 0, 0, 0.12);
  }
  

  .media-wrapper {
    width: 100%;
    max-width: 900px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .lab4-copy {
    max-width: 700px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
  }
  
  /* Image grid */
  .image-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }
  
  .image-subheading {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    text-transform: uppercase;
    color: #555;
    margin: 0;
  }
  
  .image-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .image-grid-item {
    width: 100%;
    max-width: 440px;
    height: 300px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
      0 3px 6px rgba(0, 0, 0, 0.12),
      inset 0 0 10px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
  }
  
  /* Lightbox */
  .lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.417);       /* mid-dark transparent background */
    backdrop-filter: blur(4px);             /* blur the page behind */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
    overflow: hidden;
  }
  
  .lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.4),
      inset 0 0 12px rgba(0, 0, 0, 0.1);
    transform: scale(0.1);
    opacity: 0;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
  }
  
  .lightbox-image.active {
    transform: scale(1);
    opacity: 1;
  }
  
  