    /* Video */

     .media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

     .gallery img,
.gallery video {
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}


  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
    min-height: 100vh;
    font-family: sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  header {
    background: #444;
    color: white;
    padding: 2rem 5%;
  }

  nav {
    background: #eee;
    padding: 1rem 5%;
  }

  nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #444;
    display: inline-block;
  }

  .container {
    padding: 2rem 5%;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  footer {
    background: #444;
    color: white;
    padding: 1rem;
  }

  /* Gallery styles */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery img,
  .gallery video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .gallery img:hover,
  .gallery video:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .gallery figcaption {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #666;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    nav {
      text-align: center;
    }

    nav a {
      display: block;
      margin: 0.5rem 0;
    }

    .container {
      padding: 1rem 2%;
    }

    header {
      padding: 1.5rem 3%;
    }

    footer {
      font-size: 0.9rem;
      padding: 1rem;
    }

    .gallery img,
    .gallery video {
      max-height: 250px;
    }

    .gallery figcaption {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    header {
      padding: 1.2rem 2%;
    }

    nav {
      padding: 1rem 2%;
    }

    .container {
      padding: 0.5rem 2%;
    }

    footer {
      font-size: 0.8rem;
    }

    .gallery {
      grid-template-columns: 1fr;
    }

    .gallery img,
    .gallery video {
      max-height: 200px;
    }

    .gallery figcaption {
      font-size: 0.85rem;
    }
  }