.pd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.pd-gallery-item {
    margin: 0;
}
.pd-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.pd-gallery-open img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pd-gallery-open:hover img,
.pd-gallery-open:focus img {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
}
.pd-gallery-item figcaption {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
    color: #555;
}
.pd-gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.pd-gallery-lightbox.is-open {
    display: flex;
}
.pd-gallery-lightbox-inner {
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    text-align: center;
}
.pd-gallery-lightbox img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.pd-gallery-lightbox-caption {
    color: #fff;
    margin: 12px 0 0;
    font-size: 16px;
}
.pd-gallery-close {
    position: fixed;
    top: 16px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.pd-gallery-close:hover,
.pd-gallery-close:focus {
    background: rgba(255,255,255,.3);
}
