* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
  }

  header {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
  }

  main {
    flex: 1;
    padding: 2rem;
    background: #f5f6fa;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .image-box {
    flex: 1 1 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .image-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }

  .image-box .image-2 {
    opacity: 0;
  }

  .image-box:hover .image-1 {
    opacity: 0;
  }

  .image-box:hover .image-2 {
    opacity: 1;
  }

  footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
  }

  @media (max-width: 768px) {
    .image-box {
      flex-basis: calc(50% - 0.5rem);
    }
  }

  @media (max-width: 480px) {
    .image-box {
      flex-basis: 100%;
    }
  }