.post-expand-cards,
.post-expand-card,
.post-expand-card>.post-expand-card-col {
    position: relative;
}

.post-expand-cards {
    /* background-color: rgba(255,255,0,1); */
}
.post-expand-card {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    text-decoration: none !important;
    outline: none !important;
    border-radius: var(--cpn-card-border-radius);
    background-color: rgba(var(--cpn-color-white), 1);
    overflow: hidden;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.post-expand-card .title {
    font-size: var(--cpn-h3-font-size);
    line-height: var(--cpn-h3-line-height);
    font-weight: 600;
    max-height: calc(var(--cpn-h3-line-height) * 3);
}
.post-expand-card .description {
    font-size: var(--cpn-small-font-size);
    line-height: var(--cpn-small-line-height);
    max-height: calc(var(--cpn-small-line-height) * 3);
    color: rgba(var(--cpn-color-gray), 1);
    margin-top: 10px;
}

.post-expand-card {
    --img-width : 300px;
    --img-height : 300px;
    min-width: var(--img-width);
    color: rgba(var(--cpn-color-black), 1);
}

/* col img */
.post-expand-card,
.post-expand-card>.post-expand-card-col.this-col-img {
    width: var(--img-width);
    height: var(--img-height);
}
.post-expand-card>.post-expand-card-col.this-col-img {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    border-radius: var(--cpn-card-border-radius);
    overflow: hidden;
    background-color: rgba(var(--cpn-bg-color-img), 1);
    z-index: 2;
}
.post-expand-card>.post-expand-card-col.this-col-img .cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--cpn-color-black-dark), 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px 50px 40px;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.post-expand-card>.post-expand-card-col.this-col-img .img {
    position: relative;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}
.post-expand-card>.post-expand-card-col.this-col-img .img:before {
    position: relative;
    display: block;
    content: "";
    padding-bottom: 100%;
}
.post-expand-card>.post-expand-card-col.this-col-img .cover,
.post-expand-card>.post-expand-card-col.this-col-img .button-more {
    color: rgba(var(--cpn-color-white), 1) !important;
}
.post-expand-card>.post-expand-card-col.this-col-img .title {
    text-align: center;
}
.post-expand-card>.post-expand-card-col.this-col-img .action {
    position: absolute;
    bottom: 30px;
}

/* col info */
.post-expand-card>.post-expand-card-col.this-col-info {
    display: flex;
    flex-direction: column;
    width: calc(var(--img-width) + 40px);
    padding: 40px 40px 30px 40px;
    z-index: 1;
}
.post-expand-card>.post-expand-card-col.this-col-info .action {
    margin: auto 0 0 0;
}
.post-expand-card.loading>.post-expand-card-col.this-col-info {
    align-items: center;
    justify-content: center;
}

/* hover + active */
.post-expand-card.active {
    width: calc((var(--img-width) * 2) + 40px);
}
.post-expand-card.active>.post-expand-card-col.this-col-img .cover {
    opacity: 0;
}

/* xxl */
@media (min-width: 1400px) {}

/* xxl - 1 */
@media (min-width:1500px) and (max-width: 1599.98px) {

    .post-expand-card {
        --img-width: 441.98px;
        --img-height: 441.98px;
    }

}

/* xxl - 2 */
@media (min-width: 1400px) and (max-width: 1499.98px) {

    .post-expand-card {
        --img-width: 285px;
        --img-height: 285px;
    }

}

/* xl */
@media (min-width: 1200px) and (max-width: 1399.98px) {

    .post-expand-card {
        --img-width: 353.33px;
        --img-height: 353.33px;
    }
    .post-expand-card.active {
        width: calc((var(--img-width) * 2) + 20px);
    }

}

/* lg */
@media (min-width: 992px) and (max-width: 1199.98px) {

    .post-expand-card {
        --img-width: 293.33px;
        --img-height: 293.33px;
    }
    .post-expand-card.active {
        width: calc((var(--img-width) * 2) + 20px);
    }

}

/* md */
@media (min-width: 768px) and (max-width: 991.98px) {

    .post-expand-card {
        --img-width: 335px;
        --img-height: 335px;
        flex-direction: row;
    }
    .post-expand-card,
    .post-expand-card.active {
       width: 100%;
       height: 100%;
    }    
    .post-expand-card>.post-expand-card-col.this-col-img,
    .post-expand-card>.post-expand-card-col.this-col-info {
        position: relative;
    }
    .post-expand-card>.post-expand-card-col.this-col-img .cover {
        display: none;
    }
    .post-expand-card>.post-expand-card-col.this-col-info {
        width: 100%;
        flex: 1 0 0;
        padding: 50px;
    }
    /* .post-expand-card .title {
        font-size: var(--cpn-h4-font-size);
        line-height: var(--cpn-h4-line-height);
        max-height: calc(var(--cpn-h4-line-height) * 3);
    } */

}

/* sm - xs */
@media (max-width: 767.98px) {
    
    .post-expand-card {
        --img-width: 100%;
        --img-height: auto;
        flex-direction: column;
    }
    .post-expand-card,
    .post-expand-card.active {
       width: 100%;
       height: 100%;
    }
    .post-expand-card>.post-expand-card-col.this-col-img,
    .post-expand-card>.post-expand-card-col.this-col-info {
        position: relative;
    }
    .post-expand-card>.post-expand-card-col.this-col-img .cover {
        display: none;
    }
    .post-expand-card>.post-expand-card-col.this-col-info {
        width: 100%;
        flex: 1 0 0;
        padding: 20px;
    }
    .post-expand-card .title {
        font-size: var(--cpn-h4-font-size);
        line-height: var(--cpn-h4-line-height);
        max-height: calc(var(--cpn-h4-line-height) * 3);
    }

}

/* sm */
@media (min-width: 576px) and (max-width: 767.98px) {}

/* xs */
@media (max-width: 575.98px) {}

/* xs custom */
@media (max-width: 399.98px) {}