/* Lens page refresh */
:root {
    --lens-bg: #04070f;
    --lens-layer: rgba(8, 16, 32, 0.85);
    --lens-card: rgba(14, 24, 44, 0.9);
    --lens-border: rgba(255, 255, 255, 0.08);
    --lens-grid: rgba(255, 255, 255, 0.03);
    --lens-accent: #f2d071;
    --lens-cyan: #63e4ff;
    --lens-purple: #c59bff;
    --lens-rose: #ff9fb4;
    --lens-shadow: 0 35px 80px rgba(3, 6, 12, 0.85);
    --lens-font-mono: 'Space Mono', 'IBM Plex Mono', 'Fira Code', monospace;
}

.lens-page {
    background: radial-gradient(circle at 20% 20%, rgba(27, 54, 94, 0.55), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(123, 60, 180, 0.35), transparent 40%),
        #03060d;
    color: #f6f4ec;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.lens-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(transparent 0 24px, var(--lens-grid) 24px),
        linear-gradient(90deg, transparent 0 24px, var(--lens-grid) 24px);
    background-size: 26px 26px;
    opacity: 0.35;
    pointer-events: none;
}

.lens-page::after {
    content: '';
    position: fixed;
    inset: auto auto -120px 50%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(98, 198, 255, 0.25), transparent 70%);
    transform: translateX(-50%);
    filter: blur(40px);
    pointer-events: none;
}

.lens-header {
    padding: 160px 0 40px;
    text-align: center;
    position: relative;
}

.lens-header::after {
    content: '</>';
    position: absolute;
    top: 110px;
    right: 8%;
    font-family: var(--lens-font-mono);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.04);
}

.lens-header .overline {
    letter-spacing: 0.4em;
    color: var(--lens-cyan);
}

.lens-header h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    color: #fefcf6;
}

.lens-header .header-subtitle {
    max-width: 640px;
    margin: 1.25rem auto 1.5rem;
    color: rgba(246, 244, 236, 0.8);
    line-height: 1.7;
    font-size: 1.05rem;
}

.lens-meta {
    display: inline-flex;
    gap: 1.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: rgba(9, 17, 33, 0.8);
    border: 1px solid var(--lens-border);
    font-family: var(--lens-font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(3, 6, 12, 0.35);
    margin-bottom: 0.5rem;
}

.lens-meta span {
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.lens-meta small {
    display: block;
    font-size: 0.6rem;
    color: var(--lens-purple);
    letter-spacing: 0.25em;
    margin-bottom: 0.3rem;
}

.gallery-section {
    padding-top: 10px;
    padding-bottom: 90px;
}

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

.gallery-item {
    position: relative;
    padding: 18px;
    border-radius: 16px;
    background: var(--lens-card);
    border: 1px solid var(--lens-border);
    box-shadow: var(--lens-shadow);
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent, rgba(98, 228, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #05070d;
}

.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-image-wrapper::before {
    opacity: 1;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.08);
}

.gallery-caption {
    margin-top: 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    font-family: var(--lens-font-mono);
}

.gallery-caption h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.gallery-caption .meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--lens-cyan);
    position: relative;
}

.gallery-caption .meta::before {
    content: '#';
    margin-right: 4px;
    color: var(--lens-rose);
}

.gallery-caption .meta::after {
    content: '_';
    margin-left: 4px;
    color: var(--lens-purple);
    animation: cursorBlink 1.4s steps(2) infinite;
}

@keyframes cursorBlink {
    0%, 60% { opacity: 1; }
    61%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
    .lens-meta {
        flex-direction: column;
        align-items: center;
        border-radius: 18px;
    }
    
    .lens-header {
        padding: 145px 0 30px;
    }
}

@media (max-width: 768px) {
    .lens-header {
        padding: 130px 0 25px;
    }
    
    .lens-header h1 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    
    .lens-header .header-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .lens-meta {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
        gap: 1.25rem;
    }
    
    .gallery-section {
        padding-bottom: 60px;
    }
    
    .gallery-grid {
        gap: 20px;
        padding: 0 0.5rem;
    }
}

@media (max-width: 640px) {
    .lens-header {
        padding-top: 90px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item {
        padding: 12px;
    }
    
    .gallery-caption h3 {
        font-size: 1rem;
    }
    
    .gallery-caption .meta {
        font-size: 0.65rem;
    }

    .lens-header::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .lens-header {
        padding: 80px 0 20px;
    }
    
    .lens-header h1 {
        font-size: 1.3rem;
    }
    
    .lens-header .header-subtitle {
        font-size: 0.85rem;
    }
    
    .lens-meta {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        gap: 1rem;
    }
    
    .lens-meta small {
        font-size: 0.55rem;
    }
    
    .gallery-item {
        padding: 10px;
        border-radius: 12px;
    }
    
    .gallery-image-wrapper {
        border-radius: 8px;
    }
    
    .gallery-caption {
        margin-top: 1rem;
    }
    
    .gallery-caption h3 {
        font-size: 0.9rem;
    }
}
