.transparent-page {
    background: rgb(29 29 29 / 50%);
    z-index: 1;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
}

.card {
    padding: 15px;
    animation: show .5s forwards;
    opacity:0
}

    .card .card-img {
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: center center;
        height: 270px;
    }

.card-transparent-page {
    height: 0;
    transition: var(--transition-time);
    left: 15px;
    right: 15px;
    top: 15px;
    background: rgb(135 157 31 / 90%) !important;
    text-align: center;
}

.card:hover .card-transparent-page {
    height: 270px;
}

.card-detailes {
    display: flex;
    width: 100%;
    justify-content: center;
    position: absolute;
    z-index: -1;
    top: 0;
    opacity: 0;
}

.card-icon {
    border-radius: 50%;
    background: #23322d;
    width: 48px;
    height: 48px;
    margin: 5px;
    transition: var(--transition-time);
}

    .card-icon:hover {
        filter: brightness(2);
    }

    .card-icon i {
        font-size: 19px;
        padding: 15px;
        color: white;
    }

.card:hover .card-detailes
,.card:focus .card-detailes
/*,.card:active .card-detailes*/ {
    opacity: 1;
    top: calc(50% - 50px);
}

.card-name {
    position: absolute;
    top: 70px;
    font-size: 21px;
    font-weight: 600;
    color: #24272d;
}

@keyframes show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
.grid .element-item {
    position: relative;
    float: left;
    width: calc(33.333% - 0px);
    padding: 15px;
}
@media screen and (max-width: 992px) {
    .grid .element-item {
        width: calc(50% - 0px);
    }
}
@media screen and (max-width: 768px) {
    .grid .element-item {
        width: calc(100% - 0px);
    }
    .card .card-img,
    .card:hover .card-transparent-page {
        height: 370px;
    }
    /*.cards .card:hover .card-transparent-page,
    .cards .card .card-img {
        height: 280px;
    }*/

}

@media screen and (max-width: 600px) {
    .card:hover .card-transparent-page,
    .card .card-img {
        height: 270px;
    }
}
