.pbg-grid {
    display: grid;
    gap: 0px;
}

.pbg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pbg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pbg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pbg-grid.cols-1 { grid-template-columns: repeat(1, 1fr); }

@media(max-width: 1024px) {
    .pbg-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media(max-width: 767px) {
    .pbg-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

/* ITEM WRAPPER */
.pbg-item {
    cursor: pointer;
}

/* CARD */
.pbg-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.pbg-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.pbg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: .3s;
}

/* OVERLAY TITLE */
.pbg-title {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #fff;
    font-weight: 600;
    font-size: 32px;
    z-index: 2;
}

/* BELOW TITLE STYLE */
.pbg-title-below {
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    color: #EE6900;
    padding: 12px 5px;
}

.pbg-grid.style-below {
    gap: 20px;
}

.pbg-item.style-below .pbg-card {
    margin-bottom: 0;
}

.pbg-card:hover .pbg-overlay {
    background: rgba(0,0,0,0.35);
}

.pbg-card:hover img {
    transform: scale(1.05);
}

.pbg-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media(max-width: 1200px) {
    .pbg-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .pbg-grid.cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}