/*   
Theme Name: PathSoft
Theme URI: https://www.templatemonster.com/wordpress-themes/pathsoft-it-solutions-for-your-business-services-wordpress-theme-99496.html
Author: Koval Web
Author URI: https://www.templatemonster.com/vendors/kovalweb
Description: The Template is created for web template
Tags: html5, css3, sass, gulp, bootstrap grid
Version: 1.6.0
*/
.pitem {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.pitem.pitem-flip .pitem-card {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pitem.pitem-flip:hover .pitem-card-front {
    transform: rotateY(180deg);
}

.pitem.pitem-flip:hover .pitem-card-back {
    transform: rotateY(0deg);
    z-index: 3;
}

.pitem.pitem-hover:hover .pitem-card-hover {
    opacity: 0.9;
    visibility: visible;
}

.main-visible .pitem.pitem-flip .pitem-card {
    transition: all 0.6s ease-in-out;
}

.main-visible .pitem-card {
    transition: all 0.3s;
}

.pitem-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--el-border-radius);
    background-color: var(--primary-color);
    overflow: hidden;
}

.pitem-card-front {
    z-index: 2;
}

.pitem-card-front img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.pitem-card-details {
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-align: center;
    padding: 2rem 2.5rem;
    text-decoration: none;
}

.pitem-card-details:hover {
    color: var(--primary-color);
}

.pitem-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.pitem-card-hover {
    opacity: 0;
    visibility: hidden;
    z-index: 3;
}

.pitem-heading {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pitem-heading.pitem-heading-large {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pitem-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 22.5rem;
}

.pitem-desc p {
    margin-bottom: 0;
}

.pitem-btns {
    margin-top: 1.5rem;
}

.pitem-col-carusel {
    width: 23%;
    margin-left: 15px;
}

.pitem-col-carusel.pitem-cc-wide {
    width: 100%;
}

.pitem-col-carusel.pitem-cc-2 {
    width: 40%;
}

.pitem-col-carusel.pitem-cc-3 {
    width: 28%;
}

.pitem-author {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pitem-info {
    position: relative;
    padding-top: 0.625rem;
}

.pitem-info-row {
    display: flex;
    margin-bottom: 1rem;
}

.pitem-info-row:last-child {
    margin-bottom: 0;
}

.pitem-info-label {
    font-weight: bold;
    font-family: var(--heading-font-family);
    margin-right: 1rem;
    min-width: 9.375rem;
}

.pitem-carusel-item {
    height: 31.25rem;
    width: 100%;
    margin-right: 1rem;
}

.pitem-carusel-item img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.pitem-carusel-thumb-item {
    position: relative;
    width: 13.75rem;
    height: 8.75rem;
    margin-right: 1rem;
}

.pitem-carusel-thumb-item img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.pitem-carusel-thumb-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 0;
    width: 100%;
    background-color: var(--text-primary);
    opacity: 0.5;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.pitem-carusel-thumb-item.is-nav-selected::after, .pitem-carusel-thumb-item:hover::after {
    height: 100%;
}

.pitem-carusel-thumb {
    margin-top: 1.5rem;
}

.pitem-full .pitem-desc {
    -webkit-line-clamp: 2;
    max-width: 100%;
}

.pitem-img {
    position: relative;
}

.pitem-img[href*=youtu]:before{
    content: '';
    background: url('../../img/svg-icons/play.webp') no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    opacity: 0.5;
    z-index: 2;
    -webkit-transition:all,ease,.2s;
        transition:all,ease,.2s;    
}

.pitem-img[href*=youtu]:hover:before{
    scale: 1.2;
    opacity: 0.7
}

.pitem-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.pitem-info .item-heading,
.pitem-info-wide .item-heading {
    margin-bottom: 0.625rem;
}

.pitem-info {
    padding: 1.25rem;
}

.pitem-info-wide {
    padding-top: 1.25rem;
}

.pitem-btn-link {
    display: flex;
    margin-top: 0.625rem;
}

@media (max-width: 1199.98px) {
    .pitem-card-details {
        padding: 1.5rem;
    }

    .pitem-col-carusel {
        width: 40%;
    }

    .pitem-col-carusel.pitem-cc-3 {
        width: 40%;
    }

    .pitem-heading.pitem-heading-large {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    .pitem-card-details {
        padding: 1.5rem 2.5rem;
    }

    .pitem-carusel-item {
        height: 25rem;
    }
}

@media only screen and (max-width: 767.98px), only screen and (min-width: 567px) and (max-width: 900px) and (orientation: landscape) {
    .pitem-card-details {
        padding: 1.25rem;
    }

    .pitem-col-carusel {
        width: 50%;
    }

    .pitem-col-carusel.pitem-cc-2, .pitem-col-carusel.pitem-cc-3 {
        width: 50%;
    }

    .pitem-carusel-item {
        height: 18.75rem;
    }

    .pitem-carusel-thumb-item {
        width: 9.375rem;
        height: 6.25rem;
    }
}

@media (max-width: 575.98px) {
    .pitem {
        max-width: 21.875rem;
        margin-left: auto;
        margin-right: auto;
    }

    .pitem-col-carusel {
        width: 100%;
    }

    .pitem-col-carusel.pitem-cc-2, .pitem-col-carusel.pitem-cc-3 {
        width: 100%;
    }
}

@media only screen and (max-width: 370px) {
    .pitem-carusel-item {
        height: 15rem;
    }

    .pitem-carusel-thumb-item {
        width: 7.5rem;
        height: 5rem;
    }
}

@media only screen and (min-width: 1600px) {
    .pitem-col-carusel {
        width: 22%;
    }
}
