#oldc-gallery-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    min-height: 85vh;
}

/* ── Hero Banner ── */
#oldc-gallery-page .gallery-hero {
    background: radial-gradient(circle at 85% 20%, rgba(255, 193, 7, 0.15), transparent 40%),
                radial-gradient(circle at 15% 80%, rgba(147, 51, 234, 0.25), transparent 50%),
                linear-gradient(135deg, #090014 0%, #1e0034 50%, #0d1b2a 100%) !important;
    color: #ffffff;
    padding: 56px 20px 48px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #ffc107 !important;
}

#oldc-gallery-page .gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

#oldc-gallery-page .gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffc107;
    text-transform: uppercase;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

#oldc-gallery-page .gallery-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.5px;
}

#oldc-gallery-page .gallery-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 780px;
    line-height: 1.65;
    margin-bottom: 26px;
}

#oldc-gallery-page .gallery-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

#oldc-gallery-page .gallery-stat-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

/* ── Live Search & Filter Bar ── */
#oldc-gallery-page .gallery-toolbar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

#oldc-gallery-page .gallery-search-wrap {
    position: relative;
    width: 100%;
}

#oldc-gallery-page .gallery-search-input {
    border-radius: 50px;
    padding: 12px 42px 12px 46px;
    font-size: 0.92rem;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    color: #0f172a;
}

#oldc-gallery-page .gallery-search-input:focus {
    background-color: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    outline: none;
}

#oldc-gallery-page .search-icon-box {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.95rem;
}

#oldc-gallery-page .search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

#oldc-gallery-page .search-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* ── Filter Pills ── */
#oldc-gallery-page .filter-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.86rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#oldc-gallery-page .filter-pill-btn:hover {
    background: #ffffff;
    color: #1e0034;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#oldc-gallery-page .filter-pill-btn.active {
    background: linear-gradient(135deg, #190028 0%, #4f0071 100%);
    color: #ffffff;
    border-color: #4f0071;
    box-shadow: 0 6px 18px rgba(79, 0, 113, 0.28);
    transform: scale(1.02);
}

#oldc-gallery-page .filter-pill-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 800;
}

#oldc-gallery-page .filter-pill-btn.active .filter-pill-count {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* ── Custom Styled Sort Dropdown (No native OS select!) ── */
#oldc-gallery-page .custom-sort-dropdown {
    position: relative;
    display: inline-block;
}

#oldc-gallery-page .sort-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

#oldc-gallery-page .sort-trigger-btn:hover {
    border-color: #7c3aed;
    background: #faf5ff;
    color: #4f0071;
}

#oldc-gallery-page .sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 8px;
    min-width: 200px;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: sortFadeIn 0.2s ease-out;
}

#oldc-gallery-page .sort-menu.show {
    display: flex;
}

@keyframes sortFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

#oldc-gallery-page .sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

#oldc-gallery-page .sort-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#oldc-gallery-page .sort-item.active {
    background: #faf5ff;
    color: #6b21a8;
    font-weight: 700;
}

#oldc-gallery-page .sort-item i.check-icon {
    display: none;
    color: #7c3aed;
}

#oldc-gallery-page .sort-item.active i.check-icon {
    display: inline-block;
}

/* ── Album Card ── */
#oldc-gallery-page .album-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

#oldc-gallery-page .album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

#oldc-gallery-page .album-thumb-wrap {
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
}

#oldc-gallery-page .album-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#oldc-gallery-page .album-card:hover .album-thumb-img {
    transform: scale(1.08);
}

#oldc-gallery-page .album-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 0, 20, 0.75) 0%, rgba(9, 0, 20, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

#oldc-gallery-page .album-photo-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#oldc-gallery-page .album-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffc107;
    color: #190028;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#oldc-gallery-page .album-body {
    padding: 22px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#oldc-gallery-page .album-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#oldc-gallery-page .album-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

#oldc-gallery-page .album-card:hover .album-title {
    color: #6b21a8;
}

#oldc-gallery-page .album-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

#oldc-gallery-page .album-footer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    color: #6b21a8;
    transition: all 0.2s ease;
}

#oldc-gallery-page .album-card:hover .album-footer-btn {
    color: #4f0071;
}

#oldc-gallery-page .album-footer-btn i {
    transition: transform 0.25s ease;
}

#oldc-gallery-page .album-card:hover .album-footer-btn i {
    transform: translateX(6px);
}

/* ── Standalone Fullscreen Custom Lightbox ── */
.gallery-custom-lightbox {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important; /* Topmost viewport level */
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 0, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.gallery-custom-lightbox.active {
    display: flex !important;
}

.gallery-custom-lightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: zoom-out;
}

.gallery-custom-lightbox .lightbox-wrapper {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 1320px;
    height: 94vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-custom-lightbox .lightbox-header,
.gallery-custom-lightbox .lightbox-stage,
.gallery-custom-lightbox .lightbox-footer {
    pointer-events: auto;
}

.gallery-custom-lightbox .lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.gallery-custom-lightbox .lightbox-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.gallery-custom-lightbox .lightbox-counter {
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gallery-custom-lightbox .lightbox-close-btn {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5) !important;
    user-select: none !important;
}

.gallery-custom-lightbox .lightbox-close-btn:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.12) rotate(90deg) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
}

.gallery-custom-lightbox .lightbox-close-btn i,
.gallery-custom-lightbox .lightbox-nav-btn i {
    pointer-events: none !important;
}

.gallery-custom-lightbox .lightbox-stage {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    min-height: 0;
}

.gallery-custom-lightbox .lightbox-img-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 86%;
    max-height: 100%;
}

.gallery-custom-lightbox .lightbox-main-img {
    max-height: 62vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    user-select: none;
}

.gallery-custom-lightbox .lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.gallery-custom-lightbox .lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
    user-select: none !important;
}

.gallery-custom-lightbox .lightbox-nav-btn.prev-btn {
    left: 10px;
}

.gallery-custom-lightbox .lightbox-nav-btn.next-btn {
    right: 10px;
}

.gallery-custom-lightbox .lightbox-nav-btn:hover {
    background: #ffc107 !important;
    color: #190028 !important;
    border-color: #ffc107 !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
}

.gallery-custom-lightbox .lightbox-footer {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-custom-lightbox .lightbox-thumb-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    padding: 4px;
    scrollbar-width: thin;
}

.gallery-custom-lightbox .lightbox-strip-thumb {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.45;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-custom-lightbox .lightbox-strip-thumb:hover {
    opacity: 0.85;
}

.gallery-custom-lightbox .lightbox-strip-thumb.active {
    opacity: 1;
    border-color: #ffc107;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.45);
}
