﻿/* Default.aspx only */

.default-page {
    width: 100%;
}

.default-hero {
    margin: 15px auto 28px;
    text-align: center;
}

    .default-hero h1 {
        margin-bottom: 7px;
        font-size: 30px;
    }

    .default-hero p {
        margin: 0;
        color: var(--snap-text-secondary);
        font-size: 14px;
    }


/* SEARCH */

.default-search {
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--snap-surface);
    border: 1px solid var(--snap-border);
    border-radius: var(--snap-radius);
    box-shadow: var(--snap-shadow);
}

.default-search-text {
    flex: 1 1 auto;
    min-width: 0;
}

.default-search-modality {
    flex: 0 0 180px;
}

.default-search .snap-btn {
    flex: 0 0 auto;
}

.default-results {
    max-width: 1100px;
    margin: 0 auto 10px;
}

.default-result-count {
    color: var(--snap-text-muted);
    font-size: 12px;
}


/* GALLERY */

.default-gallery {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.default-image-card {
    min-width: 0;
    overflow: hidden;
    background: var(--snap-surface);
    border: 1px solid var(--snap-border);
    border-radius: var(--snap-radius);
    box-shadow: var(--snap-shadow);
}

.default-thumbnail {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #e9eef0;
}

    .default-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.default-image-info {
    padding: 11px 12px 13px;
}

.default-image-public-id {
    margin: 0 0 6px;
    color: var(--snap-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

    .default-image-info h3 {
        margin: 0;
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.default-image-meta {
    margin: 5px 0 0;
    color: var(--snap-text-secondary);
    font-size: 12px;
}

.default-image-caption {
    margin: 5px 0 0;
    color: var(--snap-text-muted);
    font-size: 12px;
}

.default-empty {
    padding: 35px 10px;
    color: var(--snap-text-muted);
    text-align: center;
}


/* MOBILE */

@media (max-width: 600px) {

    .default-hero {
        margin: 4px 0 20px;
        text-align: left;
    }

        .default-hero h1 {
            font-size: 25px;
        }

        .default-hero p {
            font-size: 13px;
        }

    .default-search {
        width: 100%;
        margin-bottom: 22px;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .default-search-text,
    .default-search-modality {
        width: 100%;
        grid-column: 1 / -1;
    }

    .default-search .snap-btn {
        width: 100%;
    }

    .default-gallery {
        display: block;
    }

    .default-image-card {
        margin-bottom: 14px;
    }

    .default-thumbnail {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

.default-pagination nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 24px 0; }
.default-pagination [aria-current="page"] { font-weight: bold; background: var(--snap-border, #e6eef2); }
.snap-btn.default-share { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 0; padding: 0; margin-top: 10px; }
.default-share-status { display: block; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }

.default-archive-stats { text-align: center; color: var(--snap-text-secondary); margin: 0 0 20px; font-size: 15px; }
.default-download-count { color: var(--snap-text-muted); font-size: 12px; margin: 0 0 6px; }

.default-top-contributors { width: calc(100% - 40px); max-width: 1180px; margin: 0 auto 20px; text-align: center; color: var(--snap-text-secondary); }
.default-top-contributors h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--snap-text-secondary); }
.default-top-contributors ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.default-top-contributors li { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 600px) { .default-top-contributors { width: calc(100% - 28px); } }
