 /* Reset some default margins */

         *, *::before, *::after {
            box-sizing: border-box;
        }

        body, h1, h2, p, div {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f3f4f6; /* gray-100 */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                         Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
            color: #1f2937; /* gray-800 */
        }

        /* Navigation */
        .nav {
            background-color: #ffffff;
            box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 50;
        }

        .nav__container {
            max-width: 1024px;
            margin: 0 auto;
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav__title {
            font-weight: 600;
            font-size: 1.25rem; /* text-xl */
            color: #111827; /* gray-900 */
        }

        .nav__links {
            display: flex;
            gap: 1.5rem;
        }

        .nav__logo {
            height: 40px;
            width: auto;
        }

        .nav__link {
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            color: #4b5563; /* gray-700 */
            transition: color 0.3s ease;
        }

        .nav__link:hover {
            color: #3b82f6; /* blue-500 */
        }

        .nav__link--active {
            color: #2563eb; /* blue-600 */
            font-weight: 600;
        }

        /* Main container */
        .container {
            max-width: 512px; /* max-w-lg */
            margin: 6rem auto 2rem; /* pt-24 to push below fixed nav */
            background-color: #ffffff;
            padding: 2rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
        }

        .container--gallery{
            max-width: 1024px;
           margin: 6rem auto 3rem;
           padding: 0 1.5rem;
           flex-grow: 1;
        }

        .heading {
            font-weight: 600;
            font-size: 1.5rem; /* text-2xl */
            margin-bottom: 1.5rem;
            text-align: center;
            color: #111827; /* gray-900 */
        }

        /* Alerts */
        .alert {
            margin-bottom: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 0.375rem;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .alert--success {
            background-color: #d1fae5; /* green-100 */
            color: #065f46; /* green-700 */
        }

        .alert--error {
            background-color: #fee2e2; /* red-100 */
            color: #b91c1c; /* red-700 */
        }

        /* Image preview */
        .image-preview {
            margin-bottom: 1.5rem;
            border-radius: 0.375rem;
            box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
            width: 100%;
            border-radius: 12px;
            display: block;
            height: auto;
            object-fit: contain;
            max-height: 40vh;
            margin-left: auto;
            margin-right: auto;
        }

        /* Form */
        .form__label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            font-size: 0.875rem;
            color: #111827; /* gray-900 */
        }

        .form__input-file {
            width: 100%;
            font-size: 0.875rem;
            color: #111827;
            border: 1px solid #d1d5db; /* gray-300 */
            border-radius: 0.5rem;
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            background-color: #f9fafb; /* gray-50 */
            margin-bottom: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .form__input-file:focus {
            outline: none;
            border-color: #3b82f6; /* blue-500 */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
        }

        .form__button {
            width: 100%;
            background-color: #2563eb; /* blue-600 */
            color: white;
            padding: 0.625rem 0;
            border-radius: 0.5rem;
            font-weight: 600;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .form__button:hover {
            background-color: #1d4ed8; /* blue-700 */
        }

               /* Gallery with column-count */
       .gallery {
           column-count: 3;
           column-gap: 1rem;
       }

       /* Responsive fallback: reduce columns on smaller screens */
       @media (max-width: 900px) {
           .gallery {
               column-count: 2;
           }
       }
       @media (max-width: 600px) {
           .gallery {
               column-count: 1;
           }
       }

       .gallery__image {
           width: 100%;
           margin-bottom: 1rem;
           border-radius: 0.5rem;
           box-shadow: 0 4px 6px rgba(0,0,0,0.1);
           object-fit: cover;
           cursor: pointer;
           transition: box-shadow 0.3s ease;
           display: block; /* Important for column layout */
           break-inside: avoid; /* Prevent image breaking between columns */
       }

       .gallery__image:hover {
           box-shadow: 0 8px 15px rgba(0,0,0,0.2);
       }

       .gallery__empty {
           text-align: center;
           color: #4b5563; /* gray-600 */
           font-size: 1rem;
       }

       .upload-link {
           display: inline-block;
           background-color: #2563eb; /* blue-600 */
           color: white;
           padding: 0.5rem 1.5rem;
           border-radius: 0.5rem;
           text-decoration: none;
           font-weight: 600;
           font-size: 1rem;
           transition: background-color 0.3s ease;
           margin-top: 2rem;
           text-align: center;
       }

       .upload-link:hover {
           background-color: #1d4ed8; /* blue-700 */
       }

       .upload-container {
           text-align: center;
           margin-top: 2rem;
       }

       .spinner {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 2px solid white;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 0.6s linear infinite;
            margin-right: 0.5rem;
            vertical-align: middle;
        }

        .hidden {
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }