.subcategory {
    display: none;
}

.categories .links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .categories .links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.links > a.anchor {
    border: 2px solid #BABABA;
    cursor: pointer;
    display: inline-block;
    height: 165px;
    margin: auto;
    overflow: hidden;
    padding: 10px;
    position: relative;
    text-align: center;
    width: 170px;
}

@media (max-width: 1200px) {
    .links > a.anchor {
        width: 150px;
    }
}

.links > a.anchor:hover {
    border-color: #9E9E9E;
}

.links > a.anchor > div {
    font-weight: bold;
}

.links > a.anchor .anchor-child {
    height: 70px;
    margin-bottom: 13px;
    max-width: 100%;
    position: relative;
}

.links > a.anchor > div img {
    display: block;
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    max-height: 90px;
    max-width: 80%;
    overflow: hidden;
    position: absolute;
    text-overflow: ellipsis;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.links .tile-title {
    font-size: 0.8rem;
    height: 38%;
    line-height: 0.9rem;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    text-align: center;
    text-overflow: ellipsis;
    width: 90%;
}

.links .tile-title::after {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    bottom: 0;
    content: '';
    height: 15%;
    left: 0;
    position: absolute;
    width: 100%;
}

.links > a.anchor:hover > div img {
    opacity: 0.5;
}

.links .anchor .button {
    background-color: transparent;
    border-color: transparent;
    bottom: 0;
    cursor: pointer;
    font-size: 9pt;
    height: 20px;
    padding: 0;
    position: absolute;
    right: 0;
    width: 18px;
    z-index: 2;
}

.links a.anchor .button:after {
    border-bottom: 26px solid transparent;
    border-right: 26px solid #BABABA;
    border-top: 26px solid transparent;
    bottom: 0;
    color: #555555;
    content: '';
    font-size: 0;
    position: absolute;
    right: 0;
    transform: translate(22px, 35px) rotate(-135deg) translate(25px, 0px);
    z-index: -1;
}

.links a.anchor:hover .button:after {
    border-right-color: #9E9E9E;
}

.show {
    display: block;
}

.hide {
    display: none !important;
}

.categories .links:not(.links) {
    display: none;
}
