
.bptls-img-wrapper ul, .bptls-img-wrapper li {
    padding-block: 0px!important;
    padding-inline: 0px!important;
    margin-block: 0px!important;
    margin-inline: 0px!important;
}
.bptls-img-wrapper li {
    list-style-type: none!important;
}
.bptls-img-wrapper a {
    text-decoration: none;
}
.bptls-img-wrapper img {
    inline-size: 100%;
    block-size: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    vertical-align: middle;
    -webkit-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
}
.bptls-img-wrapper a img {
    block-size: 100%;
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.bptls-main-wrapper .bptls_thumbnail {
    display: block;
    block-size: 100%;
}
.bptls-main-wrapper {
    max-inline-size: 1170px;
    margin-block: auto;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 10px;
    grid-auto-flow: dense;
    grid-auto-rows: minmax(300px, auto);
    padding-block: 15px;
    padding-inline: 15px;
}
.bptls-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    will-change: transform;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
}
.bptls-content-wrapper {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    -webkit-transform: translateY(65px);
    -ms-transform: translateY(65px);
    transform: translateY(65px);
    padding-block: 15px;
    padding-inline: 15px;
    z-index: 1;
    pointer-events: none;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    will-change: transform;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
}
.bptls-img-wrapper:hover .bptls-content-wrapper {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}
.bptls-pos-main {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}
.bptls-style-one .bptls-img-wrapper:hover img {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}
.bptls-title {
    pointer-events: none;
}
.bptls-img-wrapper .post-categories {
    position: absolute;
    /* inline-size: 100%; */
    inset-inline-end: 20px;
    inset-block-start: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 1;
}
.bptls-img-wrapper .post-categories li .bptls-cat,
.bptls-img-wrapper .post-categories li a {
    color: #fff;
    background: #7209b7;
    padding-block: 5px;
    padding-inline: 10px;
    border-radius: 30px;
    border-top-left-radius: 0;
    font-weight: 500;
    font-size: 13px;
    z-index: 1;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
}
.bptls-style-one .bptls-img-wrapper:hover .post-categories li .bptls-cat,
.bptls-style-one .bptls-img-wrapper:hover .post-categories li a {
    background: #ff0000;
    border-radius: 30px;
    border-top-right-radius: 0;
}
.bptls-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    row-gap: 1px;
}
.bptls-img-wrapper::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-image: -webkit-gradient(linear,left top, left bottom,from(#01284273),to(#012842));
    background-image: -o-linear-gradient(top,#01284273 0%,#012842 100%);
    background-image: linear-gradient(180deg,#01284273 0%,#012842 100%);
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
    z-index: 1;
    pointer-events: none;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
}
:is(.bptls-style-one .bptls-img-wrapper:nth-child(1),
.bptls-style-two .bptls-img-wrapper:nth-child(1)) .bptls-content-wrapper .bptls-title h2 {
    font-size: clamp(1rem, 2vw + 1rem, 1.5rem);
}

.bptls-style-one .bptls-img-wrapper:nth-child(1) .bptls-content-wrapper {
    padding-block: 20px;
    padding-inline: 20px;
    transform: translateY(40px);
    -webkit-transform: translateY(40px);
    -moz-transform: translateY(40px);
    -ms-transform: translateY(40px);
    -o-transform: translateY(40px);
}
.bptls-style-one .bptls-img-wrapper:hover:nth-child(1) .bptls-content-wrapper {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}
.bptls-style-one .bptls-img-wrapper:nth-child(2) .bptls-content-wrapper,
.bptls-style-one .bptls-img-wrapper:nth-child(3) .bptls-content-wrapper,
.bptls-style-one .bptls-img-wrapper:nth-child(4) .bptls-content-wrapper {
    padding-block: 20px;
    padding-inline: 20px;
    transform: translateY(75px);
    -webkit-transform: translateY(75px);
    -moz-transform: translateY(75px);
    -ms-transform: translateY(75px);
    -o-transform: translateY(75px);
}
.bptls-style-one .bptls-img-wrapper:hover:nth-child(2) .bptls-content-wrapper,
.bptls-style-one .bptls-img-wrapper:hover:nth-child(3) .bptls-content-wrapper,
.bptls-style-one .bptls-img-wrapper:hover:nth-child(4) .bptls-content-wrapper {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}
.bptls-title h2 {
    font-size: 22px;
    color: #fff;
    line-height: 1.1;
    font-weight: 600;
    display: inline;
    padding-block-end: 0;
    background-image: -webkit-gradient(linear,left top, left bottom,from(#00ff48),color-stop(98%, #00ff48));
    background-image: -o-linear-gradient(top,#00ff48 0%,#00ff48 98%);
    background-image: linear-gradient(to bottom,#00ff48 0%,#00ff48 98%);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left 100%;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    -webkit-transition-delay: .2s;
    -o-transition-delay: .2s;
    transition-delay: .2s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
}
.bptls-style-one .bptls-img-wrapper:hover .bptls-title h2 {
    background-size: 100% 2px;
    color: #00ff48;
}
.bptls-desc p{
    color: #fff;
    margin-block-end: 15px;
    margin-block-start: 8px;
    font-size: 15px;
    line-height: 1.3;
}
.bptls-meta .bptls-date i {
    color: #fff;
    margin-inline-end: 5px;
    font-size: 12px;
}
.bptls-meta .bptls-date span {
    color: #fff;
    font-size: 12px;
}
.bptls-meta .bptls-author i {
    color: #fff;
    margin-inline-end: 5px;
    font-size: 12px;
}
.bptls-meta .bptls-author span {
    color: #fff;
    font-size: 12px;
}
.bptls-meta .bptls-comment i {
    color: #fff;
    margin-inline-end: 5px;
    font-size: 12px;
}
.bptls-meta .bptls-comment span {
    color: #fff;
    font-size: 12px;
}
.bptls-meta .bptls-tag i {
    color: #fff;
    margin-inline-end: 5px;
    font-size: 12px;
}
.bptls-meta .bptls-tag span, .bptls-meta .bptls-tag span a {
    color: #fff;
    font-size: 12px;
}

/* Style two Start */
.bptls-style-two .bptls-img-wrapper::before {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#FD4D0900), to(#6610f2));
    background-image: -o-linear-gradient(top, #FD4D0900 0%, #6610f2 100%);
    background-image: linear-gradient(180deg, #FD4D0900 0%, #6610f2 100%);
}
.bptls-style-two .bptls-img-wrapper:hover img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}
.bptls-style-two .bptls-content-wrapper {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}
.bptls-style-two .bptls-img-wrapper .bptls-content-wrapper .bptls-title h2 {
    background-image: -webkit-gradient(linear,left top,left bottom,from(#ffb244),to(#ffb244));
    background-image: linear-gradient(#ffb244,#ffb244);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.bptls-style-two .bptls-img-wrapper:hover .bptls-content-wrapper .bptls-title h2 {
    color: #fff;
    background-size: 100% 100%;
}
.bptls-style-two .post-categories li .bptls-cat,
.bptls-style-two .post-categories li a {
    background: #ffb700;
    border-radius: 0;
    -webkit-transform: skewX(-25deg);
    -ms-transform: skewX(-25deg);
    transform: skewX(-25deg);
}
.bptls-style-two .bptls-img-wrapper:hover .post-categories li .bptls-cat,
.bptls-style-two .bptls-img-wrapper:hover .post-categories li a {
    background: #9e0059;
}

/* Responsive Code Start Here */

@media (min-width: 551px) {
    :is(.bptls-style-one, 
    .bptls-style-two) .bptls-img-wrapper:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    :is(.bptls-style-one, 
    .bptls-style-two) .bptls-img-wrapper:nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 3 / 5;
    }
    :is(.bptls-style-one, 
    .bptls-style-two) .bptls-img-wrapper:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
    }
    :is(.bptls-style-one,
     .bptls-style-two) .bptls-img-wrapper:nth-child(4) {
        grid-row: 2 / 3;
        grid-column: 3 / 5;
    }
   
}

@media (min-width: 850px) {
    /* Responsive Style One */
     .bptls-style-one .bptls-img-wrapper:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .bptls-style-one .bptls-img-wrapper:nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 3 / 4;
    }
    .bptls-style-one .bptls-img-wrapper:nth-child(3) {
        grid-row: 1 / 3;
        grid-column: 4 / 5;
    }
     .bptls-style-one .bptls-img-wrapper:nth-child(4) {
        grid-row: 2 / 3;
        grid-column: 3 / 4;
    }
    /* Responsive Style two */
    .bptls-style-two .bptls-img-wrapper:nth-child(1) {
        grid-row: 1 / 3;
        grid-column: 1 / 3;
    }
    .bptls-style-two .bptls-img-wrapper:nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 3 / -1;
    }
    .bptls-style-two .bptls-img-wrapper:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 3 / 4;
    }
    .bptls-style-two .bptls-img-wrapper:nth-child(4) {
        grid-row: 2 / 3;
        grid-column: 4 / 5;
    }
}
@media(max-width: 550px) {
    .bptls-style-one, 
    .bptls-style-two {
        grid-template-columns: 1fr!important;
    }
    .bptls-style-seventeen {
        row-gap: 10px!important;
    }
    .bptls-style-seventeen :is(
    .bptls-img-wrapper:nth-child(1), 
    .bptls-img-wrapper:nth-child(2), 
    .bptls-img-wrapper:nth-child(3),
    .bptls-img-wrapper:nth-child(4), 
    .bptls-img-wrapper:nth-child(5), 
    .bptls-img-wrapper:nth-child(6), 
    .bptls-img-wrapper:nth-child(7), 
    .bptls-img-wrapper:nth-child(8)) {
        grid-column: 1 / -1;
    }
}

/* Ferdaus sk */
.bptls-img-wrapper a img{
    block-size: 100%!important;
}
