.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.download-card {
    border: 1px solid #ddd;
    padding: 12px;
    background: #676767;
    border-radius: 7px;
    border-style: groove;
    border-width: 5px;
    border-color: #555;
}

.download-card img {
    width: 100%;
    height: auto;
    display: block;
}

.download-card h2 {
    margin: 10px 0 6px;
    font-size: 1.2rem;
}

.download-button {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.download-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.article-download {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 30px auto;
}

.download-item {
    position: relative;
}

.download-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.download-item figcaption {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #555;
}

.maximize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
}

.article-title {
    text-align: center;
    margin: 30px 0;
}

.download-item figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.maximize-btn {
    position: absolute;
    z-index: 2; /* local only, still under header */
}
