body.page-template-page-topics-grid .page-article {
    background: transparent;
    box-shadow: none;
}

.ztg-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 50px;
}

.ztg-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--main-radius);
    color: #fff;
    background: var(--muted-bg-color);
    text-decoration: none;
}

.ztg-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ztg-card:hover .ztg-cover {
    transform: scale(1.05);
}

.ztg-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0) 55%);
}

.ztg-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 30px 10px 10px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.ztg-name,
.ztg-count {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ztg-name {
    font-size: 13px;
    font-weight: 600;
}

.ztg-count {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.ztg-name .fa,
.ztg-count .fa {
    margin-right: 5px;
}

.ztg-empty {
    padding: 60px 20px;
    color: var(--muted-color);
    text-align: center;
}

@media (max-width: 1024px) {
    .ztg-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ztg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ztg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
