body {
    max-width: 800px;
}

.back {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.back:hover {
    color: var(--accent);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px var(--glow);
}

h1 {
    font-size: 3rem;
    margin-top: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary), var(--tertiary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.date {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
}

article {
    font-size: 1.15rem;
}

article p {
    margin-bottom: 1.5rem;
}

.image-container {
    margin: 3rem 0;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.image-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Lightbox styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-container img,
.grid img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.image-container img:focus,
.grid img:focus {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.image-container img:hover,
.grid img:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}
