.pgb-gallery-grid { margin-bottom: 40px; }
.pgb-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3;
}
.pgb-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pgb-figure:hover img { transform: scale(1.08); }
.pgb-figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px 12px 12px;
    text-align: center;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
}
.pgb-figure:hover figcaption { opacity: 1; }

/* Lightbox dengan close button jelas */
#pgb-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#pgb-lightbox.active {
    opacity: 1;
    visibility: visible;
}
#pgb-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 10px solid #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
#pgb-lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    line-height: 1;
}
#pgb-lightbox .close:hover {
    color: #ff3b1a;
}
@media (max-width: 768px) {
    #pgb-lightbox .close { top: 20px; right: 20px; font-size: 50px; }
}