/* =============================================================================
   Gallery — Shared Variables & Base
   ============================================================================= */

.gallery-page,
.gallery-detail-page {
    --gallery-accent: #F71EC7;
    --gallery-accent-light: rgba(247, 30, 199, 0.1);
    --gallery-text-dark: #1a1a2e;
    --gallery-text-muted: #64748b;
    --gallery-bg-light: #ffffff;
    --gallery-border-color: rgba(0, 0, 0, 0.08);
    --gallery-border-radius: 8px;

    /* Glassmorphism tokens */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-medium: rgba(255, 255, 255, 0.6);
    --glass-bg-heavy: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(16px);
    --glass-blur-light: blur(10px);
    --glass-blur-heavy: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-border-dark: 1px solid rgba(0, 0, 0, 0.06);
    --glass-radius: 20px;
    --glass-radius-sm: 12px;
}

/* =============================================================================
   SECTION 1: Hero Banner with Diagonal Image Strips
   ============================================================================= */

.gallery-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    padding-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

@media (max-width: 1024px) {
    .gallery-hero {
        padding-top: 60px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 280px;
    }
}

/* --- Diagonal strip background --- */

.gallery-hero-strips {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gallery-hero-strips-inner {
    position: absolute;
    top: -60%;
    left: -30%;
    right: -30%;
    bottom: -60%;
    transform: rotate(-15deg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
}

.hero-strip {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hero-strip:nth-child(even) {
    margin-left: -140px;
}

.hero-strip img {
    width: 220px;
    height: 155px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-strip img {
        width: 150px;
        height: 105px;
        border-radius: 8px;
    }

    .gallery-hero-strips-inner {
        gap: 8px;
    }

    .hero-strip {
        gap: 8px;
    }

    .hero-strip:nth-child(even) {
        margin-left: -80px;
    }
}

/* --- Dark overlay --- */

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* --- Content (no glass panel — sits directly on overlay) --- */

.gallery-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
}

/* Breadcrumb */
.gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.gallery-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 200ms;
    border-bottom: 1px solid transparent;
}

.gallery-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.gallery-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.gallery-breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* Headline & subtitle */
.gallery-hero-content h1 {
    font-size: 2.25rem;
    font-weight: 400;
    color: white;
    margin: 0 0 8px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .gallery-hero-content h1 {
        font-size: 1.875rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero-content h1 {
        font-size: 1.375rem;
    }
}

.gallery-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-hero-subtitle {
        font-size: 0.9375rem;
    }
}

/* --- Search bar (pill style) --- */

.gallery-search-form {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 20px;
}

.gallery-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    transition: border-color 200ms, background 200ms;
}

.gallery-search-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.28);
}

.search-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    margin-left: 8px;
    background: rgba(247, 30, 199, 0.2);
    border: 1px solid rgba(247, 30, 199, 0.3);
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-category-pill-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.gallery-page .search-category-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: background 150ms;
    box-shadow: none;
}

.gallery-page .search-category-pill-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.gallery-search-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Fix: scoped to .gallery-page to override Foundation's input[type="text"] and button selectors */
.gallery-page .gallery-search-input {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    font-size: 0.9375rem;
    color: white;
    font-family: inherit;
    height: auto;
    margin: 0;
}

/* Fix: override Foundation's input:focus styles that turn background white */
.gallery-page .gallery-search-input:focus,
.gallery-page .gallery-search-input:active,
.gallery-page input[type="text"].gallery-search-input:focus {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: white !important;
    height: auto !important;
    margin: 0 !important;
}

.gallery-page .gallery-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.gallery-page .search-query-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    box-shadow: none;
    flex-shrink: 0;
}

.gallery-page .search-query-clear:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.gallery-page .gallery-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-right: 4px;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 200ms, background 200ms;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.gallery-page .gallery-search-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Trending pills --- */

.gallery-trending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trending-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: background 200ms, border-color 200ms;
    white-space: nowrap;
}

.trending-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.trending-pill svg {
    flex-shrink: 0;
}

/* =============================================================================
   SECTION 2: Tag Band (between hero and grid)
   ============================================================================= */

.gallery-tags-band {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
}

.gallery-tags-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-tags-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-tag-pill {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--gallery-border-color);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gallery-text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background 200ms, border-color 200ms, color 200ms;
}

.gallery-tag-pill:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--gallery-text-dark);
}

.gallery-tag-pill:focus-visible {
    outline: 2px solid var(--gallery-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .gallery-tags-band {
        padding: 12px 16px;
    }
}

/* =============================================================================
   SECTION 3: Masonry Grid with Sticky Filter Bar
   ============================================================================= */

.gallery-grid-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Sticky glass filter bar --- */

.gallery-filter-bar {
    position: sticky;
    top: 80px;
    z-index: 50;
    margin: 0 -24px;
    padding: 0 24px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .gallery-filter-bar {
        top: 60px;
    }
}

.gallery-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-filter-bar-inner::-webkit-scrollbar {
    display: none;
}

.gallery-type-filters {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gallery-category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-category-filters::-webkit-scrollbar {
    display: none;
}

.gallery-tag-filters {
    display: flex;
    gap: 8px;
    padding: 0 0 14px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-tag-filters::-webkit-scrollbar {
    display: none;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Fix: scoped to .gallery-page to override Foundation's button selector */
.gallery-page .filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gallery-text-dark);
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin: 0;
}

.gallery-page .filter-pill:hover {
    border-color: rgba(247, 30, 199, 0.3);
    color: var(--gallery-accent);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gallery-page .filter-pill.active {
    background: var(--gallery-accent);
    color: white;
    border-color: var(--gallery-accent);
    box-shadow: 0 4px 14px rgba(247, 30, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.gallery-page .filter-pill:focus-visible {
    outline: 2px solid var(--gallery-accent);
    outline-offset: 2px;
}

/* --- Masonry Grid (5 columns) --- */

.gallery-content {
    padding-top: 24px;
    padding-bottom: 24px;
}

.masonry-grid {
    display: flex;
    gap: 20px;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1279px) {
    .masonry-col-4 {
        display: none;
    }
}

@media (max-width: 1023px) {
    .masonry-col-3 {
        display: none;
    }
}

@media (max-width: 767px) {
    .masonry-col-2 {
        display: none;
    }
}

@media (max-width: 479px) {
    .masonry-col-1 {
        display: none;
    }
}

/* --- Gallery Card --- */

.gallery-card {
    position: relative;
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}

.gallery-card-link {
    display: block;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 200ms ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-info span {
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Card caption (visible always, below image) */
.gallery-card-caption {
    padding: 8px 10px 4px;
}

.gallery-card-caption span {
    font-size: 0.8125rem;
    color: var(--gallery-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 200ms ease;
}

.gallery-card-download:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-card-download svg {
    width: 18px;
    height: 18px;
}

.gallery-card-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Infinite Scroll Status --- */

.gallery-scroll-status {
    padding: 32px 0 48px;
    text-align: center;
}

.gallery-loading-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: var(--glass-border-dark);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--gallery-text-muted);
}

.gallery-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gallery-border-color);
    border-top-color: var(--gallery-accent);
    border-radius: 50%;
    animation: gallerySpinnerRotate 0.8s linear infinite;
}

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

.gallery-end-message {
    font-size: 0.875rem;
    color: var(--gallery-text-muted);
}

/* --- Skeleton Loading Placeholders --- */

.gallery-card-skeleton {
    border-radius: var(--gallery-border-radius);
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.gallery-card-skeleton .skeleton-img {
    width: 100%;
    display: block;
    background: linear-gradient(110deg, #e2e8f0 30%, #f1f5f9 50%, #e2e8f0 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.gallery-card-skeleton .skeleton-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 50px;
    height: 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card-skeleton .skeleton-img {
        animation: none;
        background: #e2e8f0;
    }
}

/* --- Empty & Error States --- */

.gallery-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.gallery-state-fullpage {
    min-height: 60vh;
}

.state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.gallery-state h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gallery-text-dark);
    margin-bottom: 8px;
}

.gallery-state p {
    font-size: 1rem;
    color: var(--gallery-text-muted);
    margin-bottom: 24px;
}

.state-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--gallery-accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 200ms;
}

.state-btn:hover {
    opacity: 0.9;
    color: white;
}

/* --- Glassmorphism Fallback --- */

@supports not (backdrop-filter: blur(1px)) {
    .gallery-hero-overlay {
        background: rgba(0, 0, 0, 0.65);
    }

    .gallery-search-wrap {
        background: rgba(255, 255, 255, 0.15);
    }

    .gallery-page .filter-pill {
        background: rgba(240, 240, 245, 0.8);
    }

    .gallery-card-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    }

    .gallery-loading-pill {
        background: rgba(255, 255, 255, 0.9);
    }

    /* Detail page fallbacks */
    .gd-topbar {
        background: rgba(240, 242, 245, 0.95);
    }

    .gd-zoom-controls {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* =============================================================================
   DETAIL PAGE — Glassmorphic Theme
   ============================================================================= */

.gallery-detail-page {
    --gd-bg: #f0f2f5;
    --gd-surface: rgba(255, 255, 255, 0.5);
    --gd-surface-solid: #f8fafc;
    --gd-border: rgba(255, 255, 255, 0.4);
    --gd-border-subtle: rgba(0, 0, 0, 0.06);
    --gd-text: #1a1a2e;
    --gd-text-muted: #64748b;
    --gd-text-dim: #94a3b8;
    --gd-media-bg: #0f0f14;
    --gd-glass-bg: rgba(255, 255, 255, 0.55);
    --gd-glass-blur: blur(20px);
    --gd-glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --gd-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --gd-accent: #F71EC7;
    --gd-accent-light: rgba(247, 30, 199, 0.1);
    background: var(--gd-bg);
    color: var(--gd-text);
}

/* --- Not Found --- */

.gd-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 80px 20px;
    padding-top: 160px;
    text-align: center;
}

.gd-not-found .state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.gd-not-found h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gd-text);
    margin-bottom: 8px;
}

.gd-not-found p {
    color: var(--gd-text-muted);
    margin-bottom: 24px;
}

/* --- Top bar (inside media panel) --- */

.gd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    background: transparent;
    width: 100%;
}

.gd-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px 6px 8px;
    border-radius: 8px;
    color: var(--gd-text-muted);
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 200ms ease;
}

.gd-back-link:hover {
    color: var(--gd-text);
    background: rgba(0, 0, 0, 0.05);
}

.gd-back-link:active {
    transform: scale(0.95);
    transition-duration: 100ms;
}

.gd-creator-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gd-text);
}

.gallery-detail-page .gd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--gd-border-subtle);
    color: var(--gd-text);
    background: transparent;
    cursor: pointer;
    transition: all 200ms ease;
}

.gallery-detail-page .gd-action-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gd-text);
}

.gallery-detail-page .gd-action-btn:active {
    transform: scale(0.98);
    transition-duration: 100ms;
}

.gallery-detail-page .gd-download-main.downloading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Main layout: image left, content right --- */

.gd-main {
    display: flex;
    flex-direction: row;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 92px;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}

/* --- Gallery navigation arrows --- */

.gd-nav-arrow {
    position: sticky;
    top: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
    text-decoration: none;
    transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    z-index: 10;
    align-self: flex-start;
    margin-top: calc(50vh - 92px - 22px);
}

.gd-nav-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: scale(1.08);
}

.gd-nav-arrow:active {
    transform: scale(0.95);
    transition-duration: 100ms;
}

.gd-nav-arrow:focus-visible {
    outline: 2px solid var(--primary, #5d5fef);
    outline-offset: 2px;
}

.gd-nav-arrow svg {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .gd-nav-arrow {
        display: none;
    }
}

@media (max-width: 1024px) {
    .gd-main {
        padding-top: 72px;
    }
}

/* --- Media panel (clean, no background, sticky left) --- */

.gd-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    position: sticky;
    top: 100px;
    padding: 24px 0;
    overflow: hidden;
}

.gd-image-wrap {
    position: relative;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

#galleryDetailImage {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 12px;
    transition: transform 300ms ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.gd-video {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* --- Zoom controls (glassmorphic floating) --- */

.gd-zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 2px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.gallery-detail-page .gd-zoom-controls button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.125rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: background 150ms, color 150ms;
    padding: 0;
    margin: 0;
    box-shadow: none;
    line-height: 1;
}

.gallery-detail-page .gd-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gallery-detail-page .gd-zoom-controls button:active {
    transform: scale(0.92);
    transition-duration: 100ms;
}

.gallery-detail-page .gd-zoom-controls button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* --- Content section (right side) --- */

.gd-sidebar {
    width: 440px;
    min-width: 380px;
    flex-shrink: 0;
    padding: 24px 0 48px;
    background: transparent;
}

/* Title */
.gd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gd-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Description */
.gd-description {
    font-size: 0.9375rem;
    color: var(--gd-text-muted);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

/* --- Color palette (glassmorphic dots) --- */

.gd-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
}

.gd-color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gd-color-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* --- Curated lists (glassmorphic badge) --- */

.gd-curated {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--gd-accent-light);
    border: 1px solid rgba(247, 30, 199, 0.15);
    border-radius: 12px;
}

.gd-curated-label {
    font-size: 0.8125rem;
    color: var(--gd-text-muted);
}

.gd-curated-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(247, 30, 199, 0.12);
    border: 1px solid rgba(247, 30, 199, 0.2);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gd-accent);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

/* --- Tags (glassmorphic pills) --- */

.gd-tags-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gd-border-subtle);
}

.gd-tags-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.gd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gd-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--gd-text);
    text-decoration: none;
    transition: all 200ms ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gd-tag:hover {
    background: var(--gd-accent-light);
    border-color: rgba(247, 30, 199, 0.2);
    color: var(--gd-accent);
    transform: translateY(-1px);
}

.gd-tag:active {
    transform: scale(0.97);
    transition-duration: 100ms;
}

/* --- Stats (glassmorphic cards) --- */

.gd-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gd-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    text-align: center;
}

.gd-stat strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gd-text);
    display: block;
}

.gd-stat span {
    font-size: 0.75rem;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- License (glassmorphic banner) --- */

.gd-license {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--gd-text-muted);
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 12px;
}

.gd-license svg {
    color: #10b981;
    flex-shrink: 0;
}

/* --- Collapsible details (glassmorphic) --- */

.gd-details-section {
    margin-top: 8px;
}

.gallery-detail-page .gd-details-section summary {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-text-muted);
    cursor: pointer;
    padding: 10px 14px;
    list-style: none;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-details-section summary::-webkit-details-marker {
    display: none;
}

.gd-details-section summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gd-text-dim);
    flex-shrink: 0;
    transition: all 200ms ease;
}

.gd-details-section[open] summary::before {
    content: '−';
    background: var(--gd-accent-light);
    color: var(--gd-accent);
}

.gallery-detail-page .gd-details-section summary:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--gd-text);
}

.gd-details-section[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.gd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin-top: 0;
}

.gd-info-item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.4);
}

.gd-info-label {
    font-size: 0.6875rem;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.gd-info-value {
    font-size: 0.875rem;
    color: var(--gd-text);
    font-weight: 500;
    margin-top: 2px;
}

/* =============================================================================
   Detail — Similar Images Section
   ============================================================================= */

.gd-similar {
    padding: 48px 24px 60px;
    background: var(--gd-bg);
}

.gd-similar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gd-similar-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gd-text);
    margin: 0;
}

/* Similar section uses same masonry + gallery-card styles from main gallery */
.gd-similar-grid {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .gd-sim-col-2 {
        display: none;
    }
}

/* =============================================================================
   Detail — Mobile Responsive
   ============================================================================= */

@media (max-width: 1024px) {
    .gd-sim-col-2 {
        display: none;
    }
}

@media (max-width: 1024px) {
    .gd-main {
        flex-direction: column;
        gap: 0;
    }

    .gd-media {
        position: static;
    }

    .gd-sidebar {
        width: 100%;
        min-width: 0;
        max-height: none;
        position: static;
    }
}

@media (max-width: 768px) {
    .gd-main {
        padding: 0 16px;
    }

    .gd-media {
        padding: 16px 0;
    }


    .gd-similar {
        padding: 24px 16px 40px;
    }

    .gd-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .gd-zoom-controls {
        bottom: 24px;
        right: 4px;
    }

    .gd-stats {
        flex-direction: column;
        gap: 8px;
    }

    .gd-stat {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =============================================================================
   Reduced Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .gallery-card-overlay,
    .gallery-card img,
    .gallery-card video,
    .gallery-tag-pill,
    .gallery-search-wrap,
    .trending-pill,
    .gallery-spinner,
    #galleryDetailImage,
    .filter-pill,
    .state-btn,
    .gd-action-btn,
    .gd-back-link,
    .gd-tag,
    .gd-color-dot,
    .gd-download-main,
    .gd-details-section summary,
    .gd-generate-btn,
    .gd-share-btn,
    .gd-copy-prompt,
    .gd-metadata-badge,
    .gd-object-item {
        transition: none !important;
    }

    .gallery-spinner {
        animation: none !important;
    }
}

/* =============================================================================
   Detail — Scene Description & Enrichment Sections
   ============================================================================= */

.gd-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px 0;
}

h2.gd-section-title {
    font-size: 0.8125rem;
    margin: 0 0 10px 0;
}

.gd-scene-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.gd-scene-text {
    font-size: 0.9375rem;
    color: var(--gd-text);
    line-height: 1.7;
    margin: 0;
}

.gd-enrichment-section {
    margin-bottom: 16px;
}

.gd-enrichment-grid {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0;
}

.gd-enrichment-grid .gd-info-item {
    background: rgba(255, 255, 255, 0.35);
}

.gd-objects-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-object-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.gd-object-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-text);
}

.gd-object-detail {
    font-size: 0.8125rem;
    color: var(--gd-text-muted);
}

/* =============================================================================
   Detail — Prompt Section
   ============================================================================= */

.gd-prompt-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.gd-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gd-prompt-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-detail-page .gd-copy-prompt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gd-text-muted);
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: none;
    line-height: 1.4;
    margin: 0;
}

.gallery-detail-page .gd-copy-prompt:hover {
    background: var(--gd-accent-light);
    border-color: rgba(247, 30, 199, 0.2);
    color: var(--gd-accent);
}

.gallery-detail-page .gd-copy-prompt:active {
    transform: scale(0.97);
    transition-duration: 100ms;
}

.gd-prompt-text {
    font-size: 0.875rem;
    color: var(--gd-text);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* =============================================================================
   Detail — Generate Similar CTA
   ============================================================================= */

.gd-generate-cta {
    margin-bottom: 20px;
}

.gd-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--gd-accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 16px rgba(247, 30, 199, 0.25);
}

.gd-generate-btn:hover {
    background: #e018b5;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(247, 30, 199, 0.35);
    transform: translateY(-1px);
}

.gd-generate-btn:active {
    transform: scale(0.98);
    transition-duration: 100ms;
}

.gd-generate-btn:focus-visible {
    outline: 2px solid var(--gd-accent);
    outline-offset: 2px;
}

/* Download button (full-width, below Generate Similar) */
.gd-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--gd-text);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
}

.gd-download-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gd-text);
}

.gd-download-btn:active {
    transform: scale(0.98);
    transition-duration: 100ms;
}

.gd-download-btn:focus-visible {
    outline: 2px solid var(--gd-accent);
    outline-offset: 2px;
}

/* =============================================================================
   Detail — Metadata Badges (Style, Mood)
   ============================================================================= */

.gd-metadata-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.gd-metadata-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    transition: all 200ms ease;
}

.gd-style-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

.gd-mood-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

/* =============================================================================
   Detail — Metadata Details (Setting, Lighting)
   ============================================================================= */

.gd-metadata-details {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gd-metadata-item {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.gd-metadata-item-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.gd-metadata-item-value {
    font-size: 0.8125rem;
    color: var(--gd-text);
    font-weight: 500;
    text-transform: capitalize;
}

/* =============================================================================
   Detail — Social Share Buttons
   ============================================================================= */

.gd-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.gd-share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.gallery-detail-page .gd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--gd-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 0;
    margin: 0;
    box-shadow: none;
    line-height: 1;
}

.gallery-detail-page .gd-share-btn:hover {
    background: var(--gd-accent-light);
    border-color: rgba(247, 30, 199, 0.2);
    color: var(--gd-accent);
    transform: translateY(-1px);
}

.gallery-detail-page .gd-share-btn:active {
    transform: scale(0.95);
    transition-duration: 100ms;
}

.gallery-detail-page .gd-share-btn:focus-visible {
    outline: 2px solid var(--gd-accent);
    outline-offset: 2px;
}

/* =============================================================================
   Gallery — Landing Page Hero (Category/Tag/Pack pages)
   ============================================================================= */

.gallery-landing-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding-top: 100px;
    padding-bottom: 48px;
}

@media (max-width: 1024px) {
    .gallery-landing-hero {
        padding-top: 80px;
        padding-bottom: 36px;
    }
}

.gallery-landing-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.gallery-landing-hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .gallery-landing-hero-content h1 {
        font-size: 1.5rem;
    }
}

.gallery-landing-hero-content .gallery-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-landing-hero .gallery-breadcrumb {
    justify-content: center;
    margin-bottom: 16px;
}

.gallery-hero-hidden {
    display: none;
}

/* Pack emoji in hero */
.pack-emoji {
    margin-right: 4px;
}

/* Related packs links */
.gallery-related-packs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.gallery-related-packs-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-related-pack-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 200ms ease;
}

.gallery-related-pack-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* =============================================================================
   Gallery Packs Listing Page
   ============================================================================= */

.gallery-packs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* Packs hero reuses .gallery-landing-hero + .gallery-landing-hero-content */

.gallery-packs-group {
    margin-bottom: 48px;
}

.gallery-packs-group-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gallery-accent);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    background: var(--gallery-accent-light);
    border-radius: 20px;
    display: inline-block;
    border: none;
}

.gallery-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gallery-pack-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.gallery-pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gallery-accent), #4facfe);
    opacity: 0;
    transition: opacity 250ms ease;
}

.gallery-pack-card:hover {
    border-color: rgba(247, 30, 199, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(247, 30, 199, 0.06);
    transform: translateY(-3px);
    color: inherit;
}

.gallery-pack-card:hover::before {
    opacity: 1;
}

.gallery-pack-card:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 100ms;
}

.gallery-pack-card:focus-visible {
    outline: 2px solid var(--gallery-accent);
    outline-offset: 2px;
}

.gallery-pack-emoji {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(247, 30, 199, 0.06), rgba(79, 172, 254, 0.06));
    border-radius: 12px;
    margin-bottom: 0;
}

.gallery-pack-card-info {
    flex: 1;
    min-width: 0;
}

.gallery-pack-name {
    font-size: 1rem;
    font-weight: 650;
    color: var(--gallery-text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.gallery-pack-count {
    font-size: 0.75rem;
    color: var(--gallery-accent);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.gallery-pack-desc {
    font-size: 0.8125rem;
    color: var(--gallery-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .gallery-packs-grid {
        grid-template-columns: 1fr;
    }
    .gallery-packs-hero h1 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-pack-card {
        transition: none;
    }
    .gallery-pack-card:hover {
        transform: none;
    }
    .gallery-pack-card::before {
        transition: none;
    }
}

/* Curated badge as link */
a.gd-curated-badge {
    text-decoration: none;
    transition: all 200ms ease;
}

a.gd-curated-badge:hover {
    background: rgba(247, 30, 199, 0.2);
    border-color: rgba(247, 30, 199, 0.3);
    color: var(--gd-accent);
}
