.template-9803.style-1,
.template-9803.style-1 .template__content {
    position: relative;
    overflow: hidden;
}

.template-9803.style-1,
.template-9803.style-1 img,
.template-9803.style-1 .template__content {
    border-radius: 16px;
}

.template-9803.style-1 .template__content {
    color: #fff;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    z-index: 1;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    transition: all .5s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.template-9803.style-1 .template__description p {
    color: #fff;
}

@media (max-width: 992px) {
    
    .template-9803.style-1:not(.template-9803--hover-always-mobile) .template__description,
    .template-9803.style-1:not(.template-9803--hover-always-mobile) .template__btns_wrapper {
        display: none !important; 
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__content {
        background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__mobile-link {
        display: none;
    }
}

.template-9803.style-1 .template__mobile-link {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 5;
}

@media (min-width: 991.92px) {
    
    .template-9803.style-1 .template__mobile-link {
        display: none;
    }

    .template-9803.style-1.template-9803--whole-card-link .template__mobile-link {
        display: block;
    }
    
    .template-9803.style-1 .template__title {
        display: flex;
        align-items: flex-end;
        max-height: 33px;
        margin-bottom: 0.9rem;
    }

    .template-9803.style-1 .template__subtitle {
        display: flex;
        align-items: flex-end;
        max-height: 18px;
        line-height: 15px;
    }

    .template-9803.style-1 .template__description,
    .template-9803.style-1 .template__btns_wrapper {
        /*height: 0;*/
        transition: opacity .3s;
        opacity: 0;
    }
    
    
    .template-9803.style-1 .template__content_inner {
        transform: translateY(calc(100% - 65px));
        transition: transform .4s;
    }
    
    .template-9803.style-1:hover .template__content_inner {
        transform: translateY(0);
    }

    .template-9803.style-1:hover .template__content {
        background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    }

    .template-9803.style-1:hover .template__description, 
    .template-9803.style-1:hover .template__btns_wrapper {
    /*.template-9803.style-1:hover .template__content_inner {*/
    /*    height: calc-size(auto, size);*/
        opacity: 1;
    }

    .template-9803.style-1:hover .template__btns_wrapper {
        transition: opacity 0.7s ease-out, height 0.3s;
    }
}

@media (min-width: 1199.92px) {

    .template-9803.style-1,
    .template-9803.style-1 img,
    .template-9803.style-1 .template__content {
        border-radius: 30px;
    }
    
    .template-9803.style-1 .template__content {
        padding: 20px 15px;
    }
    
    .template-9803.style-1 .template__title {
        margin-bottom: 10px;
    }
}

/* responsive styles */

.template-9803.style-1 .template__description p:last-child {
    margin-bottom: 0 !important;
}

.template-9803.style-1 .template__description {
    padding: 6px 0;
}

@media (max-width: 374.92px) {

    /*.template-9803.style-1 .template__description,*/
    /*.template-9803.style-1 .template__subtitle {*/
    /*    font-size: 10px !important;*/
    /*}*/
}

/* image overlay style */

.template-9803.style-1 .template__image_overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.template-9803.style-1 .template__link {
    margin-right: 0 !important;
}

.template-9803.style-1.template-9803--whole-card-link .template__mobile-link {
    display: block;
}

.template-9803.style-1.template-9803--whole-card-link .template__link {
    pointer-events: none;
}

@media (max-width: 767.92px) {

    .template-9803.style-1.template-9803--hover-always-mobile .template__btns_wrapper {
        width: 100%;
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__link {
        width: 100%;
    }
}

@media (max-width: 535px) {

    .template-9803.style-1.template-9803--hover-always-mobile .template__btns_wrapper .template__link {
        font-size: 12px;
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__description {
        display: none !important;
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__subtitle {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 400px) and (min-width: 350px) {
    .template-9803.style-1.template-9803--hover-always-mobile .template__btns_wrapper .template__link {
        font-size: 8px;
    }

    .template-9803.style-1.template-9803--hover-always-mobile .template__title {
        font-size: 10px;
    }

    .template-9825.style-1 .js-cat {
        font-size: 10px;
    }
}
