@charset "utf-8";
/* CSS Document */

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      background-color: #00006a;
    }

    .gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      padding: 20px;
    }

    .thumbnail {
      width: 120px;
      cursor: pointer;
      text-align: center;
    }

    .thumbnail img {
      width: 100%;
      border-radius: 8px;
      transition: transform 0.2s;
    }

    .thumbnail img:hover {
      transform: scale(1.05);
    }

    .caption {
      margin-top: 8px;
      font-size: 14px;
      color: #ff9900;
    }

    /* Modal styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0,0,0,0.8);
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      position: relative;
      max-width: 90%;
      max-height: 90%;
    }

    .modal-content img {
      max-width: 90vw;
      max-height: 90vh;
      width: auto;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .close, .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: white;
      font-size: 36px;
      font-weight: bold;
      background: rgba(0,0,0,0.5);
      border: none;
      cursor: pointer;
      padding: 10px;
      border-radius: 50%;
      user-select: none;
    }

    .close {
      top: 10px;
      right: 20px;
      transform: none;
    }

    .prev {
      left: 10px;
    }

    .next {
      right: 10px;
    }

    .modal-caption {
      color: white;
      text-align: center;
      margin-top: 10px;
      font-size: 14px;
    }

    @media (max-width: 600px) {
      .thumbnail {
        width: 100px;
      }

      .modal-caption {
        font-size: 14px;
      }
    }
