.documents-grid{
    display: grid;
    gap: 3rem;
    grid-auto-rows: var(--size-13);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: var(--size-5);
    justify-items: center;
}

.document{
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: var(--size-5);
    gap: var(--size-3);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    border-radius: var(--radius-3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;

    @media (hover: hover) {
        &:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-3);
        }
    }

    .image-preview {
        width: 100%;
        height: 150px;
        overflow: hidden;
        border-radius: 6px;

        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
        }
    }

    .name{
        font-size: 16px;
        color: #333;
        overflow-wrap: anywhere;
    }
}

.document.upload{
    background: var(--indigo-5);
    color: white;
    font-weight: var(--font-weight-6);
    padding: 0;
    font-size: var(--font-size-8);
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center; /* Centers the label both vertically and horizontally */

    label{
        display: flex;
        align-items: center; /* Vertical centering */
        justify-content: center; /* Horizontal centering */
        width: 100%;
        height: 100%;
        text-align: center;
    }
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
