
        /* Tabs + Sort Container */
        .tabs-wrapper {
            width: 90%;
            margin: 20px auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .tabs {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .tab {
            padding: 10px 18px;
            background: #ddd;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
        }

        .tab.active {
            background: #007bff;
            color: white;
            font-weight: bold;
        }

        .sort-container {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .sort-select {
            padding: 10px 14px;
            font-size: 16px;
            border-radius: 6px;
            border: 1px solid #aaa;
            background: white;
            cursor: pointer;
            min-width: 180px;
        }

        /* Mobile Responsive Sort */
        @media (max-width: 600px) {
            .sort-container {
                width: 100%;
                justify-content: center;
            }

            .sort-select {
                width: 100%;
            }

            .hero {
                font-size: 16px;
                padding: 20px;
            }

            .image-title {
                font-size: 16px !important;
            }
        }

        .gallery-container {
            width: 90%;
            margin: 20px auto;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
        }

        @media (max-width: 900px) {
            .grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .image-card {
            background: white;
            padding: 6px;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .square-img {
            width: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
        }

        .image-title {
            margin-top: 10px;
            text-align: center;
            font-size: 24px;
            font-family: freeman, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
            /* font-weight: bold; */
            text-transform: uppercase;
        }

        .prompt-btn {
            margin-top: 10px;
            width: 100%;
            padding: 10px;
            border: none;
            background: #444;
            color: white;
            border-radius: 6px;
            cursor: pointer;
        }

        /* Pagination */
        .pagination {
            text-align: center;
            margin: 20px 0;
        }

        .pagination button {
            padding: 8px 14px;
            margin: 3px;
            background: #333;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
.pagination button.active {
    background-color: #007bff;   /* Blue highlight */
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

        /* Modal */
        .modal-overlay {
            position: fixed;
            margin-top: 70px;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.55);
            display: none;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
            overflow-y: auto;
            box-sizing: border-box;
        }

        .modal-box {
            background: white;
            width: 100%;
            max-width: 850px;
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-box img {
            width: 400px;
            height: auto;
            object-fit: cover;
            border-radius: 10px;
        }

        @media (max-width:600px) {
            .modal-box img {
                width: 100%;
                height: auto;
            }
        }

        .modal-right {
            flex: 1;
            min-width: 260px;
            width: 100%;
        }

        .modal-right textarea {
            width: 100%;
            height: 260px;
            padding: 12px;
            border: 1px solid #aaa;
            border-radius: 10px;
            resize: none;
            font-size: 16px;
        }

        @media (max-width:450px) {
            .modal-right textarea {
                height: 150px;
            }
        }

        .copy-btn {
            margin-top: 10px;
            padding: 12px;
            width: 100%;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
        }

        .close-btn {
            position: absolute;
            top: 12px;
            right: 15px;
            background: #ff4444;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
        }
