/* ==========================================================================
   lapalilpup Art Gallery - Stylesheet
   Luxury Aesthetic: Dalmatian Glassmorphism, 3D Cards, Dynamic Lightbox
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Layout
   -------------------------------------------------------------------------- */
.gallery-page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 90px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}



/* --------------------------------------------------------------------------
   2. Gallery Grid & Art Cards
   -------------------------------------------------------------------------- */
.gallery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 1280px;
    margin: 28px auto 60px;
}

@media (max-width: 768px) {
    .gallery-cards-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 20px;
    }
}

/* ==========================================================================
   ZEN LUXURY ART CARD (Matches uploaded reference design)
   ========================================================================== */
.art-item-card {
    position: relative;
    background: #ffffff;
    border-radius: 36px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 
        0 14px 34px -6px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.25s ease;
    animation: cardSpawnFade 0.45s ease var(--spawn-delay, 0.05s) backwards;
    overflow: hidden;
    will-change: transform;
}

@keyframes cardSpawnFade {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.art-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 22px 50px -10px rgba(15, 23, 42, 0.11),
        0 4px 14px rgba(15, 23, 42, 0.03);
    border-color: rgba(189, 73, 83, 0.22);
}

/* 1. Top Row: Left Pill & Right Split Date Capsule */
.zen-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.zen-category-pill,
.zen-date-capsule {
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    background: #1f2228;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    user-select: none;
    vertical-align: middle;
}

.zen-category-pill {
    padding: 0 16px;
    gap: 8px;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}

.zen-date-capsule {
    padding: 0 4px 0 12px;
    gap: 7px;
}

.zen-pill-icon {
    flex-shrink: 0;
    display: inline-block;
}

.zen-pill-icon.patreon-icon {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.zen-pill-icon.calendar-icon {
    width: 12px;
    height: 12px;
    color: #94a3b8;
}

.zen-date-month {
    color: #cbd5e1;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.zen-date-day {
    background: #ffffff;
    color: #0f172a;
    border-radius: 9999px;
    height: 26px;
    min-width: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

/* 2. Middle Typography Block */
.zen-text-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.zen-card-title {
    font-family: 'Shantell Sans', 'Pangolin', cursive, sans-serif;
    font-variation-settings: "BNCE" 15, "INFM" 15;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 10px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-card-title:hover {
    color: #bd4953;
}

.zen-card-desc {
    font-family: 'Outfit', 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.65em;
}

.zen-desc-link {
    color: #bd4953;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.zen-desc-link:hover {
    color: #9e3640;
    text-decoration-color: #9e3640;
}

/* 3. Bottom Media Stage */
.zen-media-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.25 / 1;
    border-radius: 26px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    margin-top: auto;
}

.zen-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.zen-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.zen-media-box:hover .zen-art-img {
    transform: scale(1.035);
}

/* Vignette / Dark Gradient on image bottom */
.zen-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 65%, rgba(15, 23, 42, 0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Floating Actions on Image (Unified Dynamic Glass Capsule) */
.zen-action-capsule {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    background: rgba(18, 20, 28, 0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 3px;
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.zen-action-capsule:hover {
    background: rgba(18, 20, 28, 0.9);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 
        0 10px 28px -4px rgba(0, 0, 0, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.25);
}

.zen-capsule-btn {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    box-sizing: border-box;
    transition: background 0.18s ease, color 0.18s ease;
    color: #e2e8f0;
}

.zen-share-btn {
    width: 28px;
    border-radius: 50%;
    padding: 0;
}

.zen-share-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.zen-share-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

.zen-capsule-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 2px;
    flex-shrink: 0;
}

.zen-like-btn {
    padding: 0 10px 0 8px;
    border-radius: 9999px;
    gap: 6px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}

.zen-like-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.zen-like-btn.liked {
    color: #ffffff;
    background: rgba(225, 29, 72, 0.25);
}

.zen-like-btn .like-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.heart-svg {
    width: 13.5px;
    height: 13.5px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease, fill 0.18s ease;
}

.zen-like-btn:hover .heart-svg {
    transform: scale(1.12);
    color: #ff6b8b;
}

.zen-like-btn.liked .heart-svg {
    color: #ff3366;
    fill: #ff3366;
    stroke: #ff3366;
}

.zen-like-btn:active .heart-svg {
    transform: scale(0.85);
}

/* Hover Inspect Center Overlay */
.zen-hover-inspect {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.22s ease;
}

.zen-media-box:hover .zen-hover-inspect {
    opacity: 1;
}

/* Hide inspect button when hovering the action capsule buttons */
.zen-action-capsule:hover ~ .zen-hover-inspect {
    opacity: 0;
}

.zen-inspect-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(6px);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zen-media-box:hover .zen-inspect-pill {
    transform: translateY(0);
}

/* Bottom Lapa Paw Brand Overlay (Grey Paw Logo + lapalilpup) */
.zen-lapa-brand-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8; /* Grey color for both logo and text */
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
    user-select: none;
}

.zen-paw-logo-svg {
    width: 17px;
    height: 17px;
    color: #94a3b8; /* Grey logo */
    fill: currentColor;
    flex-shrink: 0;
}

.zen-lapa-brand-text {
    font-family: 'Shantell Sans', 'Pangolin', cursive, sans-serif;
    font-variation-settings: "BNCE" 15, "INFM" 15;
    font-size: 15.5px;
    font-weight: 800;
    color: #94a3b8; /* Grey text */
    letter-spacing: 0.01em;
    line-height: 1;
}

@media (max-width: 520px) {
    .art-item-card {
        padding: 18px;
        border-radius: 28px;
    }
    .zen-media-box {
        border-radius: 20px;
    }
    .zen-card-title {
        font-size: 20px;
    }
    .zen-card-desc {
        font-size: 13.5px;
    }
}

/* --------------------------------------------------------------------------
   3. Interactive Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 15, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.lightbox-dialog {
    position: relative;
    z-index: 10;
    width: 84vw;
    max-width: 1100px;
    height: 76vh;
    max-height: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    overflow: hidden;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-modal.open .lightbox-dialog {
    transform: scale(1) translateY(0);
}

/* Native Fullscreen View Mode */
.gallery-lightbox-modal:fullscreen {
    padding: 0;
    background: #000000;
}

.gallery-lightbox-modal:fullscreen .lightbox-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

@media (max-width: 900px) {
    .lightbox-dialog {
        flex-direction: column;
        height: 94vh;
        max-height: none;
        overflow-y: auto;
    }
}

/* Lightbox Image Stage (Edge-to-Edge Full Size Artwork) */
.lightbox-stage {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #07090e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.lightbox-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-main-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
    transition: transform 0.2s ease;
}

/* Stage Navigation Buttons */
.btn-nav-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    z-index: 10;
}

.btn-nav-lightbox:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.btn-nav-prev {
    left: 14px;
}

.btn-nav-next {
    right: 14px;
}

/* Zoom Toolbar */
.lightbox-toolbar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.btn-toolbar-tool {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toolbar-tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lightbox Sidebar Details */
.lightbox-sidebar {
    width: 330px;
    min-width: 290px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    overflow-y: auto;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .lightbox-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        padding: 20px;
    }
}

.lightbox-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lightbox-counter-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    padding: 3px 9px;
    background: #f1f5f9;
    border-radius: 9999px;
}

.btn-lightbox-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lightbox-close:hover {
    background: #0f172a;
    color: #ffffff;
    transform: rotate(90deg);
}

.lightbox-title-wrap {
    margin-bottom: 12px;
}

.lightbox-title {
    font-family: 'Plus Jakarta Sans', var(--font-heading, sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 4px 0;
    text-shadow: none !important;
    filter: none !important;
}

.lightbox-author-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: #bd4953;
}

.lightbox-author-tag .author-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bd4953;
}

.lightbox-lore {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px 0;
    text-shadow: none !important;
    filter: none !important;
}

/* Lightbox Info Table */
.lightbox-meta-table {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    margin-bottom: 14px;
    overflow: hidden;
    font-size: 0.8rem;
}

.meta-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.15s ease;
}

.meta-table-row:last-child {
    border-bottom: none;
}

.meta-table-row:hover {
    background: #f1f5f9;
}

.meta-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.78rem;
}

.meta-value {
    color: #0f172a;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* Lightbox CTA buttons */
.lightbox-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-lightbox-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #d98386 0%, #bd4953 100%);
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(217, 131, 134, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-lightbox-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(217, 131, 134, 0.6);
    filter: brightness(1.05);
    color: #ffffff;
}

.lightbox-secondary-actions {
    display: flex;
    gap: 8px;
}

.btn-lightbox-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lightbox-secondary:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Toast Notification
   -------------------------------------------------------------------------- */
.gallery-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.gallery-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Ensure zero dark text-shadow leakage from cards.css */
.art-item-card,
.art-item-card *,
.gallery-cards-grid,
.gallery-cards-grid *,
.gallery-lightbox-modal,
.gallery-lightbox-modal * {
    text-shadow: none !important;
}

/* --------------------------------------------------------------------------
   5. Luxury Gallery Preloader & Skeleton Cards Grid
   -------------------------------------------------------------------------- */
.gallery-loader-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0 100px;
    min-height: 260px;
}

.gallery-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
    width: auto;
    box-sizing: border-box;
}

.loader-spinner-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.loader-spinner-svg {
    width: 100%;
    height: 100%;
    animation: spinnerSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBreathe 2s ease-in-out infinite alternate;
}

@keyframes iconBreathe {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.loader-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.loader-sub {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 20px 0;
    max-width: 320px;
    line-height: 1.5;
}

/* Animated Progress / Scroll Bar */
.loader-progressbar-track {
    width: 100%;
    max-width: 280px;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.loader-progressbar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #d98386 0%, #bd4953 100%);
    box-shadow: 0 0 10px rgba(217, 131, 134, 0.6);
    animation: progressIndeterminate 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progressIndeterminate {
    0% {
        left: -40%;
        width: 30%;
    }
    50% {
        left: 30%;
        width: 55%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

.loader-status-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #bd4953;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Skeleton Loading Cards Grid */
.gallery-skeletons-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

@media (max-width: 768px) {
    .gallery-skeletons-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.gallery-skeleton-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-media-box {
    width: 100%;
    height: 380px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

@media (max-width: 520px) {
    .skeleton-media-box {
        height: 320px;
    }
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeletonShimmerWave 1.8s infinite;
    transform: translateX(-100%);
}

@keyframes skeletonShimmerWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-details-box {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skeleton-line {
    border-radius: 6px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.skeleton-line-title {
    height: 18px;
    width: 60%;
}

.skeleton-line-badge {
    height: 18px;
    width: 25%;
}

.skeleton-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.skeleton-line-meta {
    height: 14px;
    width: 35%;
}

.skeleton-line-actions {
    height: 24px;
    width: 25%;
    border-radius: 9999px;
}

/* Error State Card */
.gallery-error-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 28px;
    padding: 40px 32px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    max-width: 440px;
    margin: 40px auto;
}

.error-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #ffe4e6;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-retry-gallery {
    margin-top: 18px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.86rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retry-gallery:hover {
    background: #bd4953;
    transform: translateY(-2px);
}


