.categories {
    margin: 30px 0 50px 0;
    text-align: center;
    line-height: 2.7;

    & .categ {
        color: gray;
        background-color: #f9f9f9;
        padding: 7px 17px;
        font-size: 20px;
        margin: 4px;
        border-radius: 5px;
        border: 1px solid transparent;
        white-space: pre;

        &.selected {
            color: #000000;
            background-color: #bce2f8;
        }

        &:hover {
            cursor: pointer;
            border: 1px solid #16b4d1;
        }
    }
}

.gallery-docs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 0 0 5px;
    margin-bottom: 50px;
    --tile-width: 360px;
    --tile-height: 210px;

    & .doc-tile {
        flex: 0 0 var(--tile-width, 360px);
        border: 1px solid #e6e6e6;
        background-color: #fcfcfc;
        border-radius: 5px;
        margin: 0 15px 15px 0;
        cursor: pointer;
        overflow: hidden;

        &:focus,
        &:focus-within {
            outline: none;
            box-shadow: none;
        }

        &:hover {
            border: 1px solid #16b4d1;
            background-color: #f7f7f7;
        }

        & a:focus,
        & img:focus {
            outline: none;
            box-shadow: none;
        }

        & .doc-image {
            width: var(--tile-width, 250px);
            height: var(--tile-height, 200px);
            overflow: hidden;
            padding: 2px 5px;
            background-color: #fff;
            box-sizing: border-box;

            & .image {
                border-top-left-radius: 5px;
                border-top-right-radius: 5px;
                width: 100%;
            }
        }

        & .doc-name {
            display: block;
            color: #626262;
            font-size: 18px;
            padding: 7px;
            width: var(--tile-width, 250px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
            box-sizing: border-box;
        }
    }
}

.w2ui-centered {
    color: gray;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    font-size: 17px;
}
