.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: start;
}

@media (min-width: 768px) {
    .docs-grid {
        grid-template-columns: repeat(2, minmax(0, 680px));
    }
}

@media (min-width: 992px) {
    .docs-grid {
        grid-template-columns: repeat(2, minmax(0, 680px));
    }
}

@media (min-width: 1400px) {
    .docs-grid {
        grid-template-columns: repeat(2, minmax(0, 720px));
    }
}

.doc-row-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
    max-width: 720px;
    width: 100%;
    border: 2px solid #0000;
    box-shadow: 0 .125rem .6rem rgba(0, 0, 0, .14);
    height: 100%;
}

.doc-row-card:hover {
    transform: translateY(-2px);
    border-color: var(--menu-hover);
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .18);
}

.doc-thumb-side {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: #f1f3f5;
}

@media (min-width: 768px) {
    .doc-thumb-side {
        height: 100%;
        min-height: 230px;
    }
}

.doc-desc {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-body-flex {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

#divResultados.docs-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.doc-item {
    max-width: 25%;
    margin: 0 14px 18px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.doc-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 10px 15px rgba(0, 0, 0, .22),
        0 10px 10px rgba(0, 0, 0, .32);
    background: #000;
}

.doc-poster {
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.doc-poster .box {
    width: 100%;
    height: 360px;
    background: #000;
}

.doc-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.doc-poster .hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: .35rem .55rem;
    border-radius: .5rem;
    font-size: .85rem;
    pointer-events: none;
}

.doc-details {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
}

.doc-details .card {
    border-radius: 0;
    margin: 0;
    height: 100%;
    border: 0;
}

.doc-item.open {
    flex-basis: 50%;
    max-width: 50%;
}

.doc-item.open .doc-inner {
    grid-template-columns: 1fr 1fr;
    background: #000;
}

.doc-item.open .doc-details {
    display: block;
}

.doc-actions {
    margin-top: auto;
}

.doc-desc {
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    .doc-item {
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }

    .doc-poster .box {
        height: 320px;
    }

    .doc-item.open {
        flex-basis: 66.6666%;
        max-width: 66.6666%;
    }

    .doc-item.open .doc-poster .box {
        height: 320px;
    }
}

@media (max-width: 991.98px) {
    .doc-item {
        flex-basis: 50%;
        max-width: 50%;
    }

    .doc-poster .box {
        height: 280px;
    }

    .doc-item.open {
        flex-basis: 100%;
        max-width: 100%;
    }

    .doc-item.open .doc-inner {
        grid-template-columns: 1fr;
    }

    .doc-item.open .doc-poster .box {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .doc-item {
        flex-basis: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .doc-poster .box {
        height: 260px;
    }

    .doc-item.open .doc-poster .box {
        height: 280px;
    }
}