.gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .popup-img {
      max-width: 200px;
      cursor: pointer;
      border-radius: 8px;
      transition: transform 0.3s;
    }

    .popup-img:hover {
      transform: scale(1.05);
    }

    /* Hide checkboxes */
    input[type="checkbox"] {
      display: none;
    }

    .popup {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }

    input[type="checkbox"]:checked + .popup {
      opacity: 1;
      pointer-events: auto;
    }

    .popup-content {
      position: relative;
      max-width: 90%;
      max-height: 90%;
      animation: zoomIn 0.4s ease;
    }

    .popup-content img {
      width: 100%;
      height: auto;
      border-radius: 10px;
    }

    .close {
      position: absolute;
      top: -15px;
      right: -15px;
      background: red;
      color: white;
      font-weight: bold;
      font-size: 20px;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      cursor: pointer;
    }

    @keyframes zoomIn {
      from {
        transform: scale(0.8);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }