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

.pdf-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.pdf-modal-content {
    background: #fff;
    width: 95%;
    height: 95%;
    margin: auto;
    padding: 20px;
    overflow-y: auto;
}

#pdf-viewer canvas {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.pdf-close {
    background: red;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    cursor: pointer;
}