/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    /* Brand Colors - Polished Premium Palette */
    --primary: #0096C7;         /* Adjusted Cyan for light background */
    --primary-hover: #0077B6;
    --secondary: #E60073;       /* Vibrant Magenta */
    --secondary-hover: #D50065;
    
    /* UI Colors - Light Theme */
    --bg-main: #FFFFFF;         /* Clean White */
    --bg-alt: #F1F5F9;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #FFFFFF;
    --surface-border: rgba(0, 0, 0, 0.1);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-inverse: #FFFFFF;
    
    --success: #10B981;
    --error: #EF4444;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 150, 199, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; }

/* Background Blobs */
.bg-blobs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.15;
    mix-blend-mode: multiply;
}
.blob-1 {
    top: -15%; left: -10%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
    background: var(--primary);
}
.blob-2 {
    bottom: -15%; right: -10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
    background: var(--secondary);
}
.blob-3 {
    top: 30%; left: 40%; width: 40vw; height: 40vw; max-width: 600px; max-height: 600px;
    background: #7C3AED; transform: translate(-50%, -50%); opacity: 0.1;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.container {
    width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
}

.hidden { display: none !important; }
.mt-4 { margin-top: 1.5rem !important; }

/* Status Banner */
.status-banner {
    background: var(--error); color: white; text-align: center; padding: 14px;
    font-weight: 600; font-family: var(--font-body); letter-spacing: 0.5px;
    position: sticky; top: 0; z-index: 100;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
.fade-out { animation: fadeOut 0.3s ease-in forwards; }
.fade-out-fast { animation: fadeOut 0.2s ease-in forwards; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .hero-subtitle { margin: 0 auto; }
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-md);
}

.brand-hero-img {
    border-radius: calc(var(--radius-lg) - 8px);
    display: block;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

.tabs-wrapper {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
    background: var(--surface);
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--text-muted);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: var(--text-main);
    color: var(--bg-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-btn.active svg {
    stroke: var(--bg-main);
}

@media (max-width: 600px) {
    .tabs-wrapper {
        flex-direction: column;
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 100%;
    }
    .tab-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        justify-content: center;
    }
}

/* ==========================================================================
   Cards & Forms
   ========================================================================== */
.card {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--surface-border);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    padding: 60px;
    margin-bottom: 40px;
}

.card-header {
    text-align: center;
    margin-bottom: 48px;
}

.card-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.submission-window {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.form-section {
    max-width: 850px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 28px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-main);
    box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.15);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

/* Select styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
    cursor: pointer;
}

select option {
    background: var(--surface-solid);
    color: var(--text-main);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 4px;
    margin-right: 16px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .card {
        padding: 40px 24px;
        border-radius: 24px;
    }
}

/* ==========================================================================
   File Upload Area
   ========================================================================== */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
    border-color: var(--primary);
    background: rgba(0, 150, 199, 0.05);
}

.file-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-content {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 56px;
    height: 56px;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.file-upload-wrapper:hover .upload-icon {
    color: var(--primary);
}

.upload-text {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.upload-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
}

#file-preview-container {
    position: relative;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

#file-preview-img {
    max-height: 400px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-border);
}

.btn-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface-solid);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.btn-icon:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0077FF 100%);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 150, 199, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 150, 199, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Loader */
.btn-loader { display: inline-block; }
.btn-loader::after {
    content: ''; display: inline-block; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff;
    animation: spin 1s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Alerts & Error Messages
   ========================================================================== */
.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--error);
    color: #B91C1C;
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 500;
}

/* ==========================================================================
   Success & Returning User State
   ========================================================================== */
.success-card {
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-icon svg { width: 44px; height: 44px; }

.success-card h2 { font-size: 2.8rem; margin-bottom: 16px; letter-spacing: -0.5px; }

.success-card p { font-size: 1.1rem; color: var(--text-muted); }

.user-upload-preview {
    margin: 40px auto;
    max-width: 450px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
}

.user-upload-preview img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.caption-text {
    margin-top: 16px;
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Share Panel */
.share-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--surface-border);
}

.share-panel h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.share-input-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.share-input-group input {
    flex: 1;
}

@media (max-width: 600px) {
    .share-input-group { flex-direction: column; }
}

/* ==========================================================================
   Accordion (Rules)
   ========================================================================== */
.rules-section { max-width: 850px; margin: 0 auto; }

.rules-card {
    padding: 40px 50px;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.accordion-btn h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-icon {
    width: 48px;
    height: 48px;
    color: var(--text-main);
    background: var(--surface);
    border-radius: 50%;
    padding: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid var(--surface-border);
}

.accordion-btn:hover .accordion-icon {
    background: rgba(0, 0, 0, 0.05);
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content-wrapper.expanded { grid-template-rows: 1fr; }
.accordion-content-inner { overflow: hidden; }

.rules-text {
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 1.05rem;
    border-top: 1px solid var(--surface-border);
    margin-top: 30px;
}

.rules-text h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 16px;
}

.rules-text h3:first-child { margin-top: 0; }
.rules-text ul { margin-left: 24px; margin-bottom: 24px; }
.rules-text li { margin-bottom: 10px; }

/* ==========================================================================
   Gallery & Voting
   ========================================================================== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.gallery-filters {
    display: flex; justify-content: center; margin-bottom: 50px;
}
.gallery-filters select { max-width: 350px; border-radius: var(--radius-pill); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.gallery-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--surface-border);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.gallery-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-category-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-caption {
    font-size: 1.05rem;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.gallery-author {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--surface-border);
}
.empty-state-icon {
    width: 80px; height: 80px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: var(--text-muted);
}
.empty-state h3 { font-size: 1.8rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }

/* Vote Button */
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
}

.heart-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    stroke: var(--text-main);
}

.vote-btn:hover:not(:disabled) {
    background: rgba(230, 0, 115, 0.1);
    border-color: rgba(230, 0, 115, 0.3);
    color: var(--secondary);
}

.vote-btn:hover:not(:disabled) .heart-icon {
    stroke: var(--secondary);
}

.vote-btn.voted {
    background: linear-gradient(135deg, var(--secondary) 0%, #D50065 100%);
    border-color: transparent;
    color: white;
    cursor: default;
    box-shadow: 0 4px 10px rgba(230, 0, 115, 0.3);
}

.vote-btn.voted .heart-icon {
    stroke: white;
    fill: white;
}

.gallery-actions { text-align: center; }
.loader { color: var(--text-muted); font-weight: 500; padding: 20px; font-size: 1.1rem; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}

.lightbox-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative; z-index: 1001; width: 95%; max-width: 1400px;
    max-height: 90vh; display: flex; flex-direction: column;
    background: var(--surface-solid); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--surface-border);
}

.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.8); color: var(--text-main); border: 1px solid rgba(0, 0, 0, 0.1);
    width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1;
    cursor: pointer; z-index: 1002; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover { background: var(--error); border-color: var(--error); color: white; }

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); color: var(--text-main); border: 1px solid rgba(0, 0, 0, 0.1);
    width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer; z-index: 1002; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary); border-color: var(--primary); color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-img-wrapper {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: #F8FAFC; min-height: 300px; max-height: 70vh;
}

.lightbox-img-wrapper img { max-height: 100%; max-width: 100%; object-fit: contain; }

.lightbox-info { padding: 40px; background: var(--surface-solid); border-top: 1px solid var(--surface-border); }
.lightbox-caption { font-size: 1.15rem; margin-bottom: 24px; color: var(--text-main); }
.lightbox-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.lightbox-author { color: var(--text-muted); font-weight: 500; font-size: 1.05rem; }
.lightbox-share { display: flex; gap: 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 30px; }

@media (min-width: 992px) {
    .lightbox-content { flex-direction: row; height: 85vh; }
    .lightbox-img-wrapper { flex: 2.5; max-height: none; }
    .lightbox-info { flex: 1; min-width: 400px; max-width: 450px; overflow-y: auto; display: flex; flex-direction: column; border-top: none; border-left: 1px solid var(--surface-border); }
    .lightbox-share { margin-top: auto; }
    .lightbox-prev { left: 30px; }
    .lightbox-next { right: auto; left: calc(71% - 90px); } /* Approximate position inside image area */
}

@media (max-width: 991px) {
    .lightbox-prev, .lightbox-next { width: 48px; height: 48px; }
    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }
}

/* ==========================================================================
   Footer / Powered By
   ========================================================================== */
.pb-container { padding: 60px 24px; display: flex; justify-content: center; margin-top: auto; }
