html {
    box-sizing: border-box;
  }
  
  *, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #f8f8f8;
    color: #333;
    min-height: 100vh;
  }

  header {
    text-align: center;
    padding: 40px 20px;
    background-color: #222;
    color: white;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    }

  .gallery figure {
    margin: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

 
  .gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .gallery figcaption {
    padding: 10px;
    text-align: center;
    font-weight: bold;
  }

  .gallery figure:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  
  .lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }
  