<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Non-Critical Styles */

/* Chat Box Details */
.chat-box {
    background: #1f2937;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: none;
}
@media (max-width: 600px) {
    .chat-box {
        padding: 8px;
    }
}
#chat-input {
    width: 200px;
    margin-right: 10px;
}
#chat-submit {
    padding: 5px 10px;
    background: #15803d;
    color: white;
    border-radius: 12px;
    transition: background 0.2s;
}
#chat-submit:hover {
    background: #16a34a;
}

/* Spinner Animation */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Generated Image */
.generated-image-container img.generated-image {
    display: block;
    margin-top: 5px;
}

/* Chat Messages */
.chat-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 70%;
}
.chat-message.user {
    background: #4b5563;
    margin-left: auto;
    align-self: flex-end;
}
.chat-message.bot-message {
    background: #374151;
    margin-right: auto;
}
.chat-message.bot-message p {
    margin-bottom: 1rem;
}
.chat-message.bot-message ol {
    margin: 0;
    padding-left: 20px;
    color: #d1d5db;
}
.chat-message.bot-message li {
    margin-bottom: 5px;
}

/* Image List */
#image-list {
    overflow: hidden !important;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Auto-Resizing Textarea */
textarea#image-input {
    min-height: 50px;
    max-height: 200px;
    overflow-y: auto;
    resize: vertical;
}

/* Aspect Ratio Dropdown */
#aspect-ratio {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-down" viewBox="0 0 16 16"&gt;&lt;path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/&gt;&lt;/svg&gt;');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
    padding-right: 2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 120;
    display: none !important;
    justify-content: center;
    align-items: center;
}
.modal:not(.hidden) {
    display: flex !important;
}
.modal.hidden {
    display: none !important;
    visibility: hidden;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    z-index: 121; 
    background: #1f2937;
    color: #d1d5db;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: none;
}
#welcome-modal .modal-content,
#about-popup .modal-content {
    background: #1f2937 !important;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Chat Tabs */
.chat-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    border: none;
}
.chat-tab {
    flex: 1;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    background: #374151;
    color: #d1d5db;
    transition: background 0.2s;
    border-radius: 12px;
    border: none;
}
.chat-tab:hover {
    background: #4b5563;
}
.chat-tab.active {
    background: #15803d;
    color: white;
}
.tab-label {
    display: inline;
}
.tab-label.short-label {
    display: none;
}
.chat-content {
    display: none;
}
.chat-content.active {
    display: block;
}
@media (max-width: 600px) {
    .tab-label.full-label {
        display: none;
    }
    .tab-label.short-label {
        display: inline;
    }
}

/* Sub Tabs */
.sub-tabs {
    display: flex;
    border-bottom: 1px solid #4b5563;
    margin-bottom: 10px;
}
.sub-tab {
    flex: 1;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    background: #374151;
    color: #d1d5db;
    border-radius: 8px;
    margin: 0 2px;
    transition: background 0.2s;
}
.sub-tab:hover {
    background: #4b5563;
}
.sub-tab.active {
    background: #22c55e;
    color: white;
}
.sub-content {
    display: none;
}
.sub-content.active {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sub-content input,
.sub-content textarea {
    flex: 1;
    border-radius: 12px;
    background: #4b5563;
    color: #d1d5db;
    padding: 8px;
    border: none;
}

/* Chat Textarea */
#chat-talk-input {
    resize: none;
    max-height: 150px;
    overflow-y: auto;
    min-height: 40px;
}

/* Modals */
#comments-modal .bg-white {
    max-height: 90vh;
    overflow-y: auto;
}
#modal-image {
    max-height: 70vh;
    object-fit: contain;
}
#modal-prompt-container {
    max-height: 100px;
    overflow-y: auto;
}
#comments-list {
    max-height: 300px;
    overflow-y: auto;
}
@media (max-width: 768px) {
    #comments-modal .bg-white {
        flex-direction: column;
    }
    #comments-modal .md\:w-2\/3,
    #comments-modal .md\:w-1\/3 {
        width: 100%;
    }
}

/* Fullscreen Modal */
#fullscreen-modal {
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999; /* Set to a very high Z-INDEX to ensure it's always on top of all other modals */
}
#fullscreen-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Typing Indicator */
.typing {
    color: #888;
    font-style: italic;
}


/* Image Modal */
.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
}

/* Gallery CSS */
.grid-sizer,
.image-card {
    width: calc(33.333% - 10px);
    margin-bottom: 10px;
}
.image-card {
    float: left;
    margin-right: 10px;
}
.image-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out;
}
.image-card:hover img {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .grid-sizer,
    .image-card {
        width: calc(50% - 10px);
    }
}
@media (max-width: 640px) {
    .grid-sizer,
    .image-card {
        width: calc(100% - 10px);
    }
}

/* Chat History Hover */
.content-item.chat-message[data-chat-id]:hover {
    cursor: pointer;
    background-color: #4a5568;
}

/* Toast Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 300px;
}
.toast-info {
    background-color: #3b82f6;
}
.toast-success {
    background-color: #22c55e;
}
.toast-error {
    background-color: #ef4444;
}
.toast-warning {
    background-color: #f59e0b;
}
#toast-container &gt; div {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}
#toast-container &gt; div button {
    margin-left: 1rem;
    color: white;
    background: none;
    border: none;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
#toast-container &gt; div button:hover {
    opacity: 1;
}

/* Advert Container */
#advert-container {
    background-image: url('/images/advert.png');
}
@media (max-width: 600px) {
    #advert-container {
        background-image: url('/images/mobile-advert.png');
    }
}

/* Chat Messages Area */
#chat-messages {
    padding-bottom: 150px;
}

/* Tab Content */
.tab-content {
    display: none;
}

/* Markdown Spacing */
.message-content p:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* Content Item */
.content-item {
    margin-bottom: 10px;
}

/* Thumbnail */
.thumbnail {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .thumbnail,
    .image-loading {
        max-width: 80px;
        height: auto;
    }
}

/* Styles for the new like button appearance */
.like-container {
    /* Ensures it doesn't interfere with absolute positioning of children if any other styles were added. */
    /* Tailwind classes in JS (top-2 right-2 flex flex-col items-center) handle positioning and layout. */
}

.like-btn {
    background: none !important; /* Ensure no background from other rules */
    border: none !important; /* Ensure no border */
    cursor: pointer;
    outline: none;
    padding: 0; /* Remove padding if icon size is controlled by font-size */
    line-height: 1; /* May help align icon if it has extra space */
}

.like-btn:disabled {
    cursor: not-allowed;
    /* Tailwind opacity-50 can be used directly in JS if needed, or a class here */
}

/* The color of the heart icon is now primarily controlled by Tailwind classes
   (e.g., text-gray-700 or text-red-500) set in the JavaScript.
   The hover:text-red-500 class in JS handles hover.
   The font-size for the icon (text-2xl) is also set in JS.
*/

.like-count {
    /* Tailwind classes in JS (text-xs text-gray-200) handle basic styling. */
    /* Add any additional specific styling for the count if needed below */
    margin-top: -2px; /* Adjust slightly to bring closer to heart, if needed */
    font-weight: 500;
}

  
    .like-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    .like-button:hover {
        background: rgba(0, 0, 0, 0.7);
    }
    .like-button i {
        color: white;
        font-size: 1.2rem;
    }
    .like-button i.liked {
        color: #ef4444;
    }
  


/* Existing styles */

/* Image List (Gallery &amp; Files) */
#image-list, #file-list { /* Ensure both use this structure */
    overflow: hidden !important; /* Keep this if you have it */
    width: 100%;
    margin: 0 auto;
    position: relative;
    /* Optional: Add a subtle min-height to the container itself if desired for initial loading */
    /* min-height: 200px; */
}

/* Image Card &amp; File Card Sizing and Placeholder */
/* Apply this to both image-card (gallery) and file-card (my files) for consistency */
.grid-sizer,
.image-card,
.file-card {
    width: calc(33.333% - 10px); /* Adjust based on your grid setup */
    margin-bottom: 10px;
    float: left; /* Necessary for Masonry */

    /* NEW: Placeholder Styling */
    background-color: #374151; /* A dark placeholder background */
    border-radius: 0.5rem; /* Match img border-radius */
    display: flex; /* Center content */
    align-items: center;
    justify-content: center;
    color: #d1d5db; /* Text color for placeholder */
    font-size: 0.875rem; /* text-sm */
    font-style: italic;

    /* CRITICAL: Fixed aspect ratio for loading items */
    /* You might need to adjust 1 / 1 (square) to 4 / 3, 16 / 9, or a common ratio */
    aspect-ratio: 1 / 1;
    overflow: hidden; /* Ensure image doesn't overflow rounded corners */
}

/* Responsive adjustments for image-card and file-card */
@media (max-width: 1024px) {
    .grid-sizer,
    .image-card,
    .file-card {
        width: calc(50% - 10px);
    }
}
@media (max-width: 640px) {
    .grid-sizer,
    .image-card,
    .file-card {
        width: calc(100% - 10px);
    }
}


/* Ensure the image inside fills its parent card */
.image-card img,
.file-card img {
    display: block;
    width: 100%;
    height: 100%; /* Make image fill the aspect-ratio div */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out;
    opacity: 0; /* NEW: Start hidden, will fade in with JS */
    transition: opacity 0.3s ease-in-out; /* NEW: Fade-in effect */
}

.image-card:hover img,
.file-card:hover img {
    transform: scale(1.02);
}

/* public/css/style.css */

.grid-sizer {
    /* Make it visually invisible */
    background-color: transparent !important; /* Ensure no background color makes it visible */
    border: none !important;                 /* Remove any borders */
    margin: 0 !important;                    /* No external spacing */
    padding: 0 !important;                   /* No internal spacing */
    outline: none !important;                /* Remove any focus outline */
    box-shadow: none !important;             /* Remove any box shadows */
    opacity: 0 !important;                   /* Make it fully transparent */
    pointer-events: none !important;         /* Prevent any interaction */

    /* The critical part: make it take up no vertical space,
       but allow Masonry to calculate its horizontal width based on parent grid */
    height: 0 !important; 
    font-size: 0 !important; /* In case any text/icon accidentally gets inside */
    line-height: 0 !important; /* Prevents line height from adding height */

    /* Ensure it doesn't stretch or influence grid layout negatively */
    flex-shrink: 0 !important; /* Prevent it from shrinking */
    flex-grow: 0 !important;   /* Prevent it from growing */
    min-width: 0 !important;   /* Prevent it from taking minimum width */
    min-height: 0 !important;  /* Prevent it from taking minimum height */
}


#welcome-modal .modal-content,
#about-popup .modal-content {
    background: #1f2937 !important; /* Ensure consistency */
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}



/* --- Styles from image-detail.ejs (NEWLY ADDED) --- */
.image-detail-container {
    padding: 1rem;
    box-sizing: border-box;
    background: transparent;
}
.image-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.btn-primary {
    background: #3B82F6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
}
.btn-primary:hover {
    background: #2563EB;
}
.comments-list {
    max-height: 300px;
    overflow-y: auto;
}
.comment-item {
    border-bottom: 1px solid #4B5563;
}
.comment-item:last-child {
    border-bottom: none;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.share-button {
    background: #374151;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    width: 2.5rem;
    height: 2.5rem;
}
.share-button:hover {
    background: #4b5563;
}
.share-button i {
    font-size: 1.25rem;
}
.share-button.twitter { background: #1DA1F2; }
.share-button.facebook { background: #3B5998; }
.share-button.pinterest { background: #E60023; }
.share-button.instagram { background: #C13584; }
.share-button.twitter:hover { background: #1A91DA; }
.share-button.facebook:hover { background: #344E86; }
.share-button.pinterest:hover { background: #CB2027; }
.share-button.instagram:hover { background: #B02E6F; }
.share-button.copy-link {
    background: #6B7280;
}
.share-button.copy-link:hover {
    background: #4B5563;
}
.back-button {
    background: #374151;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.back-button:hover {
    background: #4B5563;
}
/* --- End of Styles from image-detail.ejs --- */</pre></body></html>