/* ===============================
   GRID WRAPPER
================================ */
.ppg-grid {
    display: grid;
    gap: 20px;
}

/* Kolom desktop & mobile dari shortcode */
@media (min-width: 768px) {
    .ppg-grid {
        grid-template-columns: repeat(
            attr(data-desktop number),
            1fr
        );
    }
}

@media (max-width: 767px) {
    .ppg-grid {
        grid-template-columns: repeat(
            attr(data-mobile number),
            1fr
        );
    }
}

/* ===============================
   GRID ITEM
================================ */
.ppg-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.ppg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ppg-item:hover img {
    transform: scale(1.08);
}

/* Caption */
.ppg-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* ===============================
   POPUP
================================ */
.ppg-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.ppg-popup.active {
    display: block;
}

/* Overlay */
.ppg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

/* Popup box */
.ppg-popup-inner {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 8vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    z-index: 2;
    animation: ppgZoom .3s ease;
}

/* Close button */
.ppg-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 3;
}

/* Video responsive */
.ppg-video-wrap {
    position: relative;
    width: 100%;
    
}

.ppg-video-wrap iframe {
 
    width: 100%;
  min-height:300px;
    border: 0;
}

/* ===============================
   ANIMATION
================================ */
@keyframes ppgZoom {
    from {
        transform: scale(.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ppg-video-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
